Sha256: 06675a576df346cdb133829c56d7386683dba11517fbb4e91cd6b03b5993f577

Contents?: true

Size: 600 Bytes

Versions: 10

Compression:

Stored size: 600 Bytes

Contents

# Create a new entry for your service account returns "OK" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::GCPIntegrationAPI.new

body = DatadogAPIClient::V2::GCPSTSServiceAccountCreateRequest.new({
  data: DatadogAPIClient::V2::GCPSTSServiceAccountData.new({
    attributes: DatadogAPIClient::V2::GCPSTSServiceAccountAttributes.new({
      client_email: "252bf553ef04b351@test-project.iam.gserviceaccount.com",
      host_filters: [],
    }),
    type: DatadogAPIClient::V2::GCPServiceAccountType::GCP_SERVICE_ACCOUNT,
  }),
})
p api_instance.create_gcpsts_account(body)

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
datadog_api_client-2.21.0 examples/v2/gcp-integration/CreateGCPSTSAccount.rb
datadog_api_client-2.20.0 examples/v2/gcp-integration/CreateGCPSTSAccount.rb
datadog_api_client-2.19.0 examples/v2/gcp-integration/CreateGCPSTSAccount.rb
datadog_api_client-2.18.0 examples/v2/gcp-integration/CreateGCPSTSAccount.rb
datadog_api_client-2.17.0 examples/v2/gcp-integration/CreateGCPSTSAccount.rb
datadog_api_client-2.16.0 examples/v2/gcp-integration/CreateGCPSTSAccount.rb
datadog_api_client-2.15.0 examples/v2/gcp-integration/CreateGCPSTSAccount.rb
datadog_api_client-2.14.0 examples/v2/gcp-integration/CreateGCPSTSAccount.rb
datadog_api_client-2.13.0 examples/v2/gcp-integration/CreateGCPSTSAccount.rb
datadog_api_client-2.12.0 examples/v2/gcp-integration/CreateGCPSTSAccount.rb