fastly_services
Creates, updates, deletes, gets or lists a fastly_services
resource.
Overview
Name | fastly_services |
Type | Resource |
Id | datadog.integrations.fastly_services |
Fields
The following fields are returned by SELECT
queries:
- get_fastly_service
- list_fastly_services
Name | Datatype | Description |
---|---|---|
id | string | The ID of the Fastly service. (example: abc123) |
attributes | object | Attributes object for Fastly service requests. |
type | string | The JSON:API type for this API. Should always be fastly-services . (default: fastly-services, example: fastly-services) |
Name | Datatype | Description |
---|---|---|
id | string | The ID of the Fastly service. (example: abc123) |
attributes | object | Attributes object for Fastly service requests. |
type | string | The JSON:API type for this API. Should always be fastly-services . (default: fastly-services, example: fastly-services) |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get_fastly_service | select | account_id , service_id , region | Get a Fastly service for an account. | |
list_fastly_services | select | account_id , region | List Fastly services for an account. | |
create_fastly_service | insert | account_id , region , data__data | Create a Fastly service for an account. | |
update_fastly_service | update | account_id , service_id , region , data__data | Update a Fastly service for an account. | |
delete_fastly_service | delete | account_id , service_id , region | Delete a Fastly service for an 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) |
service_id | string | Fastly Service ID. |
SELECT
examples
- get_fastly_service
- list_fastly_services
Get a Fastly service for an account.
SELECT
id,
attributes,
type
FROM datadog.integrations.fastly_services
WHERE account_id = '{{ account_id }}' -- required
AND service_id = '{{ service_id }}' -- required
AND region = '{{ region }}' -- required
;
List Fastly services for an account.
SELECT
id,
attributes,
type
FROM datadog.integrations.fastly_services
WHERE account_id = '{{ account_id }}' -- required
AND region = '{{ region }}' -- required
;
INSERT
examples
- create_fastly_service
- Manifest
Create a Fastly service for an account.
INSERT INTO datadog.integrations.fastly_services (
data__data,
account_id,
region
)
SELECT
'{{ data }}' /* required */,
'{{ account_id }}',
'{{ region }}'
RETURNING
data
;
# Description fields are for documentation purposes
- name: fastly_services
props:
- name: account_id
value: string
description: Required parameter for the fastly_services resource.
- name: region
value: string
description: Required parameter for the fastly_services resource.
- name: data
value: object
description: |
Data object for Fastly service requests.
UPDATE
examples
- update_fastly_service
Update a Fastly service for an account.
UPDATE datadog.integrations.fastly_services
SET
data__data = '{{ data }}'
WHERE
account_id = '{{ account_id }}' --required
AND service_id = '{{ service_id }}' --required
AND region = '{{ region }}' --required
AND data__data = '{{ data }}' --required
RETURNING
data;
DELETE
examples
- delete_fastly_service
Delete a Fastly service for an account.
DELETE FROM datadog.integrations.fastly_services
WHERE account_id = '{{ account_id }}' --required
AND service_id = '{{ service_id }}' --required
AND region = '{{ region }}' --required
;