status
Creates, updates, deletes, gets or lists a status resource.
Overview
| Name | status |
| Type | Resource |
| Id | cloudflare.ddos_protection.status |
Fields
The following fields are returned by SELECT queries:
- list
Get protection status response.
| Name | Datatype | Description |
|---|---|---|
enabled | boolean |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | account_id | Get the protection status of the account. | |
edit | update | account_id, enabled | Update the protection status of the 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 | The Cloudflare account ID. |
SELECT examples
- list
Get the protection status of the account.
SELECT
enabled
FROM cloudflare.ddos_protection.status
WHERE account_id = '{{ account_id }}' -- required
;
UPDATE examples
- edit
Update the protection status of the account.
UPDATE cloudflare.ddos_protection.status
SET
enabled = {{ enabled }}
WHERE
account_id = '{{ account_id }}' --required
AND enabled = {{ enabled }} --required
RETURNING
errors,
messages,
result,
success;