Skip to main content

web_integration_accounts

Creates, updates, deletes, gets or lists a web_integration_accounts resource.

Overview

Nameweb_integration_accounts
TypeResource
Iddatadog.integrations.web_integration_accounts

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe unique identifier of the web integration account. (example: abc123def456)
attributesobjectAttributes object of a web integration account. Secrets are never returned.
typestringAccount resource type. (Account) (default: Account, example: Account)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_web_integration_accountselectintegration_name, account_idGet a single account for a given web integration.
list_web_integration_accountsselectintegration_nameList accounts for a given web integration.
create_web_integration_accountinsertintegration_name, dataCreate a new account for a given web integration.
update_web_integration_accountupdateintegration_name, account_id, dataUpdate an existing account for a given web integration.
delete_web_integration_accountdeleteintegration_name, account_idDelete an account for a given web integration.

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.

NameDatatypeDescription
account_idstringThe unique identifier of the web integration account.
integration_namestringThe name of the integration (for example, databricks).
sitestringThe Datadog site (region) for your organization, for example datadoghq.com, us3.datadoghq.com, us5.datadoghq.com, ap1.datadoghq.com, ap2.datadoghq.com, datadoghq.eu, ddog-gov.com. Resolved from the DD_SITE environment variable when set. Optional: defaults to datadoghq.com, or the value of the DD_SITE environment variable when set; a WHERE value overrides both.

SELECT examples

Get a single account for a given web integration.

SELECT
id,
attributes,
type
FROM datadog.integrations.web_integration_accounts
WHERE integration_name = '{{ integration_name }}' -- required
AND account_id = '{{ account_id }}' -- required
;

INSERT examples

Create a new account for a given web integration.

INSERT INTO datadog.integrations.web_integration_accounts (
data,
integration_name
)
SELECT
'{{ data }}' /* required */,
'{{ integration_name }}'
RETURNING
data
;

UPDATE examples

Update an existing account for a given web integration.

UPDATE datadog.integrations.web_integration_accounts
SET
data = '{{ data }}'
WHERE
integration_name = '{{ integration_name }}' --required
AND account_id = '{{ account_id }}' --required
AND data = '{{ data }}' --required
RETURNING
data;

DELETE examples

Delete an account for a given web integration.

DELETE FROM datadog.integrations.web_integration_accounts
WHERE integration_name = '{{ integration_name }}' --required
AND account_id = '{{ account_id }}' --required
;