accounts
Creates, updates, deletes, gets or lists an accounts resource.
Overview
| Name | accounts |
| Type | Resource |
| Id | cloudflare.billing.accounts |
Fields
The following fields are returned by SELECT queries:
- query_pay_per_crawl_zones
| Name | Datatype | Description |
|---|---|---|
errors | array | |
messages | array | |
result | object | |
result_info | object | |
success | boolean |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
query_pay_per_crawl_zones | select | account_id | Provided a list of pay-per-crawl configured zones this method will return whether they can enable PPC or not. | |
set_pay_per_crawl_zones | exec | account_id | Allows an account admin to set the can_be_enabled setting on a list of zones. |
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
- query_pay_per_crawl_zones
Provided a list of pay-per-crawl configured zones this method will return whether they can enable PPC or not.
SELECT
errors,
messages,
result,
result_info,
success
FROM cloudflare.billing.accounts
WHERE account_id = '{{ account_id }}' -- required
;
Lifecycle Methods
- set_pay_per_crawl_zones
Allows an account admin to set the can_be_enabled setting on a list of zones.
EXEC cloudflare.billing.accounts.set_pay_per_crawl_zones
@account_id='{{ account_id }}' --required
@@json=
'{
"zones": "{{ zones }}"
}'
;