Skip to main content

plans

Creates, updates, deletes, gets or lists a plans resource.

Overview

Nameplans
TypeResource
Idcloudflare.zones.plans

Fields

The following fields are returned by SELECT queries:

Available Plan Details response

NameDatatypeDescription
idstringIdentifier (example: 023e105f4ecef8ad9ca31a8372d0c353)
namestringThe plan name. (example: Free Plan)
legacy_idstringThe legacy identifier for this rate plan, if any. (example: free)
can_subscribebooleanIndicates whether you can subscribe to this plan.
currencystringThe monetary unit in which pricing information is displayed. (example: USD)
externally_managedbooleanIndicates whether this plan is managed externally.
frequencystringThe frequency at which you will be billed for this plan. (weekly, monthly, quarterly, yearly) (example: monthly)
is_subscribedbooleanIndicates whether you are currently subscribed to this plan.
legacy_discountbooleanIndicates whether this plan has a legacy discount applied.
pricenumberThe amount you will be billed for this plan.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectplan_identifier, zone_idDetails of the available plan that the zone can subscribe to.
listselectzone_idLists available plans the zone can subscribe to.

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
plan_identifierstring
zone_idstringThe Cloudflare zone ID.

SELECT examples

Details of the available plan that the zone can subscribe to.

SELECT
id,
name,
legacy_id,
can_subscribe,
currency,
externally_managed,
frequency,
is_subscribed,
legacy_discount,
price
FROM cloudflare.zones.plans
WHERE plan_identifier = '{{ plan_identifier }}' -- required
AND zone_id = '{{ zone_id }}' -- required
;