fastly_accounts
Creates, updates, deletes, gets or lists a fastly_accounts resource.
Overview
| Name | fastly_accounts | 
| Type | Resource | 
| Id | datadog.integrations.fastly_accounts | 
Fields
The following fields are returned by SELECT queries:
- get_fastly_account
- list_fastly_accounts
| Name | Datatype | Description | 
|---|---|---|
| id | string | The ID of the Fastly account, a hash of the account name. (example: abc123) | 
| attributes | object | Attributes object of a Fastly account. | 
| type | string | The JSON:API type for this API. Should always be fastly-accounts. (default: fastly-accounts, example: fastly-accounts) | 
| Name | Datatype | Description | 
|---|---|---|
| id | string | The ID of the Fastly account, a hash of the account name. (example: abc123) | 
| attributes | object | Attributes object of a Fastly account. | 
| type | string | The 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:
| Name | Accessible by | Required Params | Optional Params | Description | 
|---|---|---|---|---|
| get_fastly_account | select | account_id,region | Get a Fastly account. | |
| list_fastly_accounts | select | region | List Fastly accounts. | |
| create_fastly_account | insert | region,data__data | Create a Fastly account. | |
| update_fastly_account | update | account_id,region,data__data | Update a Fastly account. | |
| delete_fastly_account | delete | account_id,region | Delete 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.
| Name | Datatype | Description | 
|---|---|---|
| account_id | string | Fastly Account id. | 
| region | string | (default: datadoghq.com) | 
SELECT examples
- get_fastly_account
- list_fastly_accounts
Get a Fastly account.
SELECT
id,
attributes,
type
FROM datadog.integrations.fastly_accounts
WHERE account_id = '{{ account_id }}' -- required
AND region = '{{ region }}' -- required
;
List Fastly accounts.
SELECT
id,
attributes,
type
FROM datadog.integrations.fastly_accounts
WHERE region = '{{ region }}' -- required
;
INSERT examples
- create_fastly_account
- Manifest
Create a Fastly account.
INSERT INTO datadog.integrations.fastly_accounts (
data__data,
region
)
SELECT 
'{{ data }}' /* required */,
'{{ region }}'
RETURNING
data
;
# Description fields are for documentation purposes
- name: fastly_accounts
  props:
    - name: region
      value: string
      description: Required parameter for the fastly_accounts resource.
    - name: data
      value: object
      description: |
        Data object for creating a Fastly account.
UPDATE examples
- update_fastly_account
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_fastly_account
Delete a Fastly account.
DELETE FROM datadog.integrations.fastly_accounts
WHERE account_id = '{{ account_id }}' --required
AND region = '{{ region }}' --required
;