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. (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. (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 | Get a Fastly account. | |
list_fastly_accounts | select | List Fastly accounts. | ||
create_fastly_account | insert | data | Create a Fastly account. | |
update_fastly_account | update | account_id, data | Update a Fastly account. | |
delete_fastly_account | delete | account_id | 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. |
site | string | The 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_fastly_account
- list_fastly_accounts
Get a Fastly account.
SELECT
id,
attributes,
type
FROM datadog.integrations.fastly_accounts
WHERE account_id = '{{ account_id }}' -- required
;
List Fastly accounts.
SELECT
id,
attributes,
type
FROM datadog.integrations.fastly_accounts
;
INSERT examples
- create_fastly_account
- Manifest
Create a Fastly account.
INSERT INTO datadog.integrations.fastly_accounts (
data
)
SELECT
'{{ data }}' /* required */
RETURNING
data
;
# Description fields are for documentation purposes
- name: fastly_accounts
props:
- name: data
description: |
Data object for creating a Fastly account.
value:
attributes:
api_key: "{{ api_key }}"
name: "{{ name }}"
services:
- id: "{{ id }}"
tags: "{{ tags }}"
type: "{{ type }}"
UPDATE examples
- update_fastly_account
Update a Fastly account.
UPDATE datadog.integrations.fastly_accounts
SET
data = '{{ data }}'
WHERE
account_id = '{{ account_id }}' --required
AND 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
;