Skip to main content

fastly_accounts

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

Overview

Namefastly_accounts
TypeResource
Iddatadog.integrations.fastly_accounts

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe ID of the Fastly account, a hash of the account name. (example: abc123)
attributesobjectAttributes object of a Fastly account.
typestringThe JSON:API type for this API. Should always be fastly-accounts. (default: fastly-accounts, example: fastly-accounts)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_fastly_accountselectaccount_id, regionGet a Fastly account.
list_fastly_accountsselectregionList Fastly accounts.
create_fastly_accountinsertregion, data__dataCreate a Fastly account.
update_fastly_accountupdateaccount_id, region, data__dataUpdate a Fastly account.
delete_fastly_accountdeleteaccount_id, regionDelete a Fastly account.

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_idstringFastly Account id.
regionstring(default: datadoghq.com)

SELECT examples

Get a Fastly account.

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

INSERT examples

Create a Fastly account.

INSERT INTO datadog.integrations.fastly_accounts (
data__data,
region
)
SELECT
'{{ data }}' /* required */,
'{{ region }}'
RETURNING
data
;

UPDATE examples

Update a Fastly account.

UPDATE datadog.integrations.fastly_accounts
SET
data__data = '{{ data }}'
WHERE
account_id = '{{ account_id }}' --required
AND region = '{{ region }}' --required
AND data__data = '{{ data }}' --required
RETURNING
data;

DELETE examples

Delete a Fastly account.

DELETE FROM datadog.integrations.fastly_accounts
WHERE account_id = '{{ account_id }}' --required
AND region = '{{ region }}' --required
;