gcp_accounts
Creates, updates, deletes, gets or lists a gcp_accounts resource.
Overview
| Name | gcp_accounts | 
| Type | Resource | 
| Id | datadog.integrations.gcp_accounts | 
Fields
The following fields are returned by SELECT queries:
- list_gcpstsaccounts
| Name | Datatype | Description | 
|---|---|---|
| id | string | Your service account's unique ID. (example: d291291f-12c2-22g4-j290-123456678897) | 
| attributes | object | Attributes associated with your service account. | 
| meta | object | Additional information related to your service account. | 
| type | string | The type of account. (default: gcp_service_account, example: gcp_service_account) | 
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description | 
|---|---|---|---|---|
| list_gcpstsaccounts | select | region | List all GCP STS-enabled service accounts configured in your Datadog account. | |
| create_gcpstsaccount | insert | region | Create a new entry within Datadog for your STS enabled service account. | |
| update_gcpstsaccount | update | account_id,region | Update an STS enabled service account. | |
| delete_gcpstsaccount | delete | account_id,region | Delete an STS enabled GCP account from within Datadog. | 
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description | 
|---|---|---|
| account_id | string | Your GCP STS enabled service account's unique ID. | 
| region | string | (default: datadoghq.com) | 
SELECT examples
- list_gcpstsaccounts
List all GCP STS-enabled service accounts configured in your Datadog account.
SELECT
id,
attributes,
meta,
type
FROM datadog.integrations.gcp_accounts
WHERE region = '{{ region }}' -- required
;
INSERT examples
- create_gcpstsaccount
- Manifest
Create a new entry within Datadog for your STS enabled service account.
INSERT INTO datadog.integrations.gcp_accounts (
data__data,
region
)
SELECT 
'{{ data }}',
'{{ region }}'
RETURNING
data
;
# Description fields are for documentation purposes
- name: gcp_accounts
  props:
    - name: region
      value: string
      description: Required parameter for the gcp_accounts resource.
    - name: data
      value: object
      description: |
        Additional metadata on your generated service account.
UPDATE examples
- update_gcpstsaccount
Update an STS enabled service account.
UPDATE datadog.integrations.gcp_accounts
SET 
data__data = '{{ data }}'
WHERE 
account_id = '{{ account_id }}' --required
AND region = '{{ region }}' --required
RETURNING
data;
DELETE examples
- delete_gcpstsaccount
Delete an STS enabled GCP account from within Datadog.
DELETE FROM datadog.integrations.gcp_accounts
WHERE account_id = '{{ account_id }}' --required
AND region = '{{ region }}' --required
;