Sha256: f63bef1e1fac7882b37db63f6ecd953be5a16eec4eca7752b1dd71a019a48625

Contents?: true

Size: 868 Bytes

Versions: 12

Compression:

Stored size: 868 Bytes

Contents

# Create a GCP integration returns "OK" response

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

body = DatadogAPIClient::V1::GCPAccount.new({
  auth_provider_x509_cert_url: "https://www.googleapis.com/oauth2/v1/certs",
  auth_uri: "https://accounts.google.com/o/oauth2/auth",
  client_email: "api-dev@datadog-sandbox.iam.gserviceaccount.com",
  client_id: "123456712345671234567",
  client_x509_cert_url: "https://www.googleapis.com/robot/v1/metadata/x509/$CLIENT_EMAIL",
  errors: [
    "*",
  ],
  host_filters: "key:value,filter:example",
  is_cspm_enabled: true,
  private_key: "private_key",
  private_key_id: "123456789abcdefghi123456789abcdefghijklm",
  project_id: "datadog-apitest",
  token_uri: "https://accounts.google.com/o/oauth2/token",
  type: "service_account",
})
p api_instance.create_gcp_integration(body)

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
datadog_api_client-2.18.0 examples/v1/gcp-integration/CreateGCPIntegration.rb
datadog_api_client-2.17.0 examples/v1/gcp-integration/CreateGCPIntegration.rb
datadog_api_client-2.16.0 examples/v1/gcp-integration/CreateGCPIntegration.rb
datadog_api_client-2.15.0 examples/v1/gcp-integration/CreateGCPIntegration.rb
datadog_api_client-2.14.0 examples/v1/gcp-integration/CreateGCPIntegration.rb
datadog_api_client-2.13.0 examples/v1/gcp-integration/CreateGCPIntegration.rb
datadog_api_client-2.12.0 examples/v1/gcp-integration/CreateGCPIntegration.rb
datadog_api_client-2.11.0 examples/v1/gcp-integration/CreateGCPIntegration.rb
datadog_api_client-2.10.0 examples/v1/gcp-integration/CreateGCPIntegration.rb
datadog_api_client-2.9.0 examples/v1/gcp-integration/CreateGCPIntegration.rb
datadog_api_client-2.8.0 examples/v1/gcp-integration/CreateGCPIntegration.rb
datadog_api_client-2.7.0 examples/v1/gcp-integration/CreateGCPIntegration.rb