Sha256: 856102e4d71c3121c59ae3c844c39958791029928b1738858b2c5fa6ddd2bc6c

Contents?: true

Size: 679 Bytes

Versions: 7

Compression:

Stored size: 679 Bytes

Contents

# Create a new entry for your service account with resource collection enabled 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({
      resource_collection_enabled: true,
      client_email: "Test-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

7 entries across 7 versions & 1 rubygems

Version Path
datadog_api_client-2.28.1 examples/v2/gcp-integration/CreateGCPSTSAccount_130557025.rb
datadog_api_client-2.27.1 examples/v2/gcp-integration/CreateGCPSTSAccount_130557025.rb
datadog_api_client-2.26.1 examples/v2/gcp-integration/CreateGCPSTSAccount_130557025.rb
datadog_api_client-2.26.0 examples/v2/gcp-integration/CreateGCPSTSAccount_130557025.rb
datadog_api_client-2.25.0 examples/v2/gcp-integration/CreateGCPSTSAccount_130557025.rb
datadog_api_client-2.24.0 examples/v2/gcp-integration/CreateGCPSTSAccount_130557025.rb
datadog_api_client-2.22.0 examples/v2/gcp-integration/CreateGCPSTSAccount_130557025.rb