This endpoint is deprecated – use the V2 endpoints instead. List all Datadog-GCP integrations configured in your Datadog account.
This endpoint requires the gcp_configuration_read permission.
Should be https://www.googleapis.com/oauth2/v1/certs.
auth_uri
string
Should be https://accounts.google.com/o/oauth2/auth.
automute
boolean
Silence monitors for expected GCE instance shutdowns.
client_email
string
Your email found in your JSON service account key.
client_id
string
Your ID found in your JSON service account key.
client_x509_cert_url
string
Should be https://www.googleapis.com/robot/v1/metadata/x509/$CLIENT_EMAIL
where $CLIENT_EMAIL is the email found in your JSON service account key.
cloud_run_revision_filters
[string]
DEPRECATED: List of filters to limit the Cloud Run revisions that are pulled into Datadog by using tags.
Only Cloud Run revision resources that apply to specified filters are imported into Datadog.
Note: This field is deprecated. Instead, use monitored_resource_configs with type=cloud_run_revision
errors
[string]
An array of errors.
host_filters
string
DEPRECATED: A comma-separated list of filters to limit the VM instances that are pulled into Datadog by using tags.
Only VM instance resources that apply to specified filters are imported into Datadog.
Note: This field is deprecated. Instead, use monitored_resource_configs with type=gce_instance
is_cspm_enabled
boolean
When enabled, Datadog will activate the Cloud Security Monitoring product for this service account. Note: This requires resource_collection_enabled to be set to true.
is_resource_change_collection_enabled
boolean
When enabled, Datadog scans for all resource change data in your Google Cloud environment.
is_security_command_center_enabled
boolean
When enabled, Datadog will attempt to collect Security Command Center Findings. Note: This requires additional permissions on the service account.
monitored_resource_configs
[object]
Configurations for GCP monitored resources.
filters
[string]
List of filters to limit the monitored resources that are pulled into Datadog by using tags.
Only monitored resources that apply to specified filters are imported into Datadog.
type
enum
The GCP monitored resource type. Only a subset of resource types are supported.
Allowed enum values: cloud_function,cloud_run_revision,gce_instance
private_key
string
Your private key name found in your JSON service account key.
private_key_id
string
Your private key ID found in your JSON service account key.
project_id
string
Your Google Cloud project ID found in your JSON service account key.
resource_collection_enabled
boolean
When enabled, Datadog scans for all resources in your GCP environment.
token_uri
string
Should be https://accounts.google.com/o/oauth2/token.
type
string
The value for service_account found in your JSON service account key.
"""
List all GCP integrations returns "OK" response
"""fromdatadog_api_clientimportApiClient,Configurationfromdatadog_api_client.v1.api.gcp_integration_apiimportGCPIntegrationApiconfiguration=Configuration()withApiClient(configuration)asapi_client:api_instance=GCPIntegrationApi(api_client)response=api_instance.list_gcp_integration()print(response)
# List all GCP integrations returns "OK" responserequire"datadog_api_client"api_instance=DatadogAPIClient::V1::GCPIntegrationAPI.newpapi_instance.list_gcp_integration()
// List all GCP integrations returns "OK" responsepackagemainimport("context""encoding/json""fmt""os""github.com/DataDog/datadog-api-client-go/v2/api/datadog""github.com/DataDog/datadog-api-client-go/v2/api/datadogV1")funcmain(){ctx:=datadog.NewDefaultContext(context.Background())configuration:=datadog.NewConfiguration()apiClient:=datadog.NewAPIClient(configuration)api:=datadogV1.NewGCPIntegrationApi(apiClient)resp,r,err:=api.ListGCPIntegration(ctx)iferr!=nil{fmt.Fprintf(os.Stderr,"Error when calling `GCPIntegrationApi.ListGCPIntegration`: %v\n",err)fmt.Fprintf(os.Stderr,"Full HTTP response: %v\n",r)}responseContent,_:=json.MarshalIndent(resp,""," ")fmt.Fprintf(os.Stdout,"Response from `GCPIntegrationApi.ListGCPIntegration`:\n%s\n",responseContent)}
// List all GCP integrations returns "OK" response
usedatadog_api_client::datadog;usedatadog_api_client::datadogV1::api_gcp_integration::GCPIntegrationAPI;#[tokio::main]asyncfnmain(){letconfiguration=datadog::Configuration::new();letapi=GCPIntegrationAPI::with_config(configuration);letresp=api.list_gcp_integration().await;ifletOk(value)=resp{println!("{:#?}",value);}else{println!("{:#?}",resp.unwrap_err());}}
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comap2.datadoghq.comddog-gov.comus2.ddog-gov.com"DD_API_KEY="<API-KEY>"DD_APP_KEY="<APP-KEY>"cargo run
/**
* List all GCP integrations returns "OK" response
*/import{client,v1}from"@datadog/datadog-api-client";constconfiguration=client.createConfiguration();constapiInstance=newv1.GCPIntegrationApi(configuration);apiInstance.listGCPIntegration().then((data: v1.GCPAccount[])=>{console.log("API called successfully. Returned data: "+JSON.stringify(data));}).catch((error: any)=>console.error(error));