Skip to main content

accounts

Creates, updates, deletes, gets or lists an accounts resource.

Overview

Nameaccounts
TypeResource
Idcloudflare.billing.accounts

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
errorsarray
messagesarray
resultobject
result_infoobject
successboolean

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
query_pay_per_crawl_zonesselectaccount_idProvided a list of pay-per-crawl configured zones this method will return whether they can enable PPC or not.
set_pay_per_crawl_zonesexecaccount_idAllows 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.

NameDatatypeDescription
account_idstringThe Cloudflare account ID.

SELECT examples

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

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 }}"
}'
;