Skip to main content

Cloudflare/subscriptions

@swamp/cloudflare/subscriptionsv2026.09.29.1· 7d agoMODELS
01README

Cloudflare subscriptions infrastructure models

02Release Notes
  • Updated: subscriptions
03Models1
@swamp/cloudflare/subscriptions/subscriptionsv2026.09.29.1subscriptions.ts

Global Arguments

ArgumentTypeDescription
account_idstringCloudflare account ID
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
app?objectCloudflare Apps Marketplace is sunset. This field is retained for legacy grandfathered app subscriptions only.
component_values?arrayConfigurable component values for the subscription.
currency?stringThe monetary unit in which pricing information is displayed.
current_period_end?stringThe end of the current period and also when the next billing is due.
current_period_start?stringWhen the current billing period started. May match initial_period_start if this is the first period.
frequency?enumHow often the subscription is renewed automatically.
id?stringSubscription identifier tag.
price?numberThe price of the subscription that will be billed, in US dollars.
rate_plan?objectThe rate plan applied to the subscription.
state?enumThe state that the subscription is in.
zone?objectA simple zone object. May have null properties if not a zone subscription.
apiToken?stringCloudflare API token; overrides the CLOUDFLARE_API_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault.
apiKey?stringCloudflare API key for the legacy key+email auth path; overrides the CLOUDFLARE_API_KEY environment variable. Wire with a vault.get(...) expression. Requires email.
email?stringCloudflare account email for the legacy key+email auth path; overrides the CLOUDFLARE_EMAIL environment variable. Requires apiKey.
fn create()
Create a Subscriptions
fn get(id: string)
Get a Subscriptions
ArgumentTypeDescription
idstringThe ID of the Subscriptions
fn lookup()
Look up an existing Subscriptions by matching global argument values and import it into state
fn adopt(id: string)
Import an existing Subscriptions by ID into state for management
ArgumentTypeDescription
idstringThe ID of the Subscriptions to import
fn update(identifier?: string)
Update Subscriptions attributes
ArgumentTypeDescription
identifier?stringTarget a specific Subscriptions by id (e.g. one discovered by list)
fn delete(id: string)
Delete the Subscriptions
ArgumentTypeDescription
idstringThe ID of the Subscriptions
fn sync(identifier?: string)
Sync Subscriptions state from Cloudflare
ArgumentTypeDescription
identifier?stringTarget a specific Subscriptions by id (e.g. one discovered by list)

Resources

state(infinite)— Subscriptions resource state
04Previous Versions2
2026.09.01.1
  • Updated: subscriptions
2026.08.26.1
  • Added: subscriptions
05Stats
A
100 / 100
Downloads
14
Archive size
12.0 KB
Verified by Swamp
  • Has README or module doc2/2earned
  • README has a code example1/1earned
  • README is substantive1/1earned
  • Most symbols documented1/1earned
  • No slow types (deprecated)1/1earned
  • Dependencies pass trust audit2/2earned
  • Has description1/1earned
  • Platform support declared (or universal)2/2earned
  • License declared1/1earned
  • Verified public repository2/2earned
06Platforms
07Labels