Cloudflare v6.10.1 published on Wednesday, Oct 22, 2025 by Pulumi
cloudflare.getZoneSubscription
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleZoneSubscription = cloudflare.getZoneSubscription({
    zoneId: "506e3185e9c882d175a2d0cb0093d9f2",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_zone_subscription = cloudflare.get_zone_subscription(zone_id="506e3185e9c882d175a2d0cb0093d9f2")
package main
import (
	"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cloudflare.LookupZoneSubscription(ctx, &cloudflare.LookupZoneSubscriptionArgs{
			ZoneId: "506e3185e9c882d175a2d0cb0093d9f2",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() => 
{
    var exampleZoneSubscription = Cloudflare.GetZoneSubscription.Invoke(new()
    {
        ZoneId = "506e3185e9c882d175a2d0cb0093d9f2",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.CloudflareFunctions;
import com.pulumi.cloudflare.inputs.GetZoneSubscriptionArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var exampleZoneSubscription = CloudflareFunctions.getZoneSubscription(GetZoneSubscriptionArgs.builder()
            .zoneId("506e3185e9c882d175a2d0cb0093d9f2")
            .build());
    }
}
variables:
  exampleZoneSubscription:
    fn::invoke:
      function: cloudflare:getZoneSubscription
      arguments:
        zoneId: 506e3185e9c882d175a2d0cb0093d9f2
Using getZoneSubscription
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getZoneSubscription(args: GetZoneSubscriptionArgs, opts?: InvokeOptions): Promise<GetZoneSubscriptionResult>
function getZoneSubscriptionOutput(args: GetZoneSubscriptionOutputArgs, opts?: InvokeOptions): Output<GetZoneSubscriptionResult>def get_zone_subscription(zone_id: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetZoneSubscriptionResult
def get_zone_subscription_output(zone_id: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetZoneSubscriptionResult]func LookupZoneSubscription(ctx *Context, args *LookupZoneSubscriptionArgs, opts ...InvokeOption) (*LookupZoneSubscriptionResult, error)
func LookupZoneSubscriptionOutput(ctx *Context, args *LookupZoneSubscriptionOutputArgs, opts ...InvokeOption) LookupZoneSubscriptionResultOutput> Note: This function is named LookupZoneSubscription in the Go SDK.
public static class GetZoneSubscription 
{
    public static Task<GetZoneSubscriptionResult> InvokeAsync(GetZoneSubscriptionArgs args, InvokeOptions? opts = null)
    public static Output<GetZoneSubscriptionResult> Invoke(GetZoneSubscriptionInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetZoneSubscriptionResult> getZoneSubscription(GetZoneSubscriptionArgs args, InvokeOptions options)
public static Output<GetZoneSubscriptionResult> getZoneSubscription(GetZoneSubscriptionArgs args, InvokeOptions options)
fn::invoke:
  function: cloudflare:index/getZoneSubscription:getZoneSubscription
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ZoneId string
- Subscription identifier tag.
- ZoneId string
- Subscription identifier tag.
- zoneId String
- Subscription identifier tag.
- zoneId string
- Subscription identifier tag.
- zone_id str
- Subscription identifier tag.
- zoneId String
- Subscription identifier tag.
getZoneSubscription Result
The following output properties are available:
- Currency string
- The monetary unit in which pricing information is displayed.
- CurrentPeriod stringEnd 
- The end of the current period and also when the next billing is due.
- CurrentPeriod stringStart 
- When the current billing period started. May match initialperiodstart if this is the first period.
- Frequency string
- How often the subscription is renewed automatically. Available values: "weekly", "monthly", "quarterly", "yearly".
- Id string
- Subscription identifier tag.
- Price double
- The price of the subscription that will be billed, in US dollars.
- RatePlan GetZone Subscription Rate Plan 
- The rate plan applied to the subscription.
- State string
- The state that the subscription is in. Available values: "Trial", "Provisioned", "Paid", "AwaitingPayment", "Cancelled", "Failed", "Expired".
- ZoneId string
- Subscription identifier tag.
- Currency string
- The monetary unit in which pricing information is displayed.
- CurrentPeriod stringEnd 
- The end of the current period and also when the next billing is due.
- CurrentPeriod stringStart 
- When the current billing period started. May match initialperiodstart if this is the first period.
- Frequency string
- How often the subscription is renewed automatically. Available values: "weekly", "monthly", "quarterly", "yearly".
- Id string
- Subscription identifier tag.
- Price float64
- The price of the subscription that will be billed, in US dollars.
- RatePlan GetZone Subscription Rate Plan 
- The rate plan applied to the subscription.
- State string
- The state that the subscription is in. Available values: "Trial", "Provisioned", "Paid", "AwaitingPayment", "Cancelled", "Failed", "Expired".
- ZoneId string
- Subscription identifier tag.
- currency String
- The monetary unit in which pricing information is displayed.
- currentPeriod StringEnd 
- The end of the current period and also when the next billing is due.
- currentPeriod StringStart 
- When the current billing period started. May match initialperiodstart if this is the first period.
- frequency String
- How often the subscription is renewed automatically. Available values: "weekly", "monthly", "quarterly", "yearly".
- id String
- Subscription identifier tag.
- price Double
- The price of the subscription that will be billed, in US dollars.
- ratePlan GetZone Subscription Rate Plan 
- The rate plan applied to the subscription.
- state String
- The state that the subscription is in. Available values: "Trial", "Provisioned", "Paid", "AwaitingPayment", "Cancelled", "Failed", "Expired".
- zoneId String
- Subscription identifier tag.
- currency string
- The monetary unit in which pricing information is displayed.
- currentPeriod stringEnd 
- The end of the current period and also when the next billing is due.
- currentPeriod stringStart 
- When the current billing period started. May match initialperiodstart if this is the first period.
- frequency string
- How often the subscription is renewed automatically. Available values: "weekly", "monthly", "quarterly", "yearly".
- id string
- Subscription identifier tag.
- price number
- The price of the subscription that will be billed, in US dollars.
- ratePlan GetZone Subscription Rate Plan 
- The rate plan applied to the subscription.
- state string
- The state that the subscription is in. Available values: "Trial", "Provisioned", "Paid", "AwaitingPayment", "Cancelled", "Failed", "Expired".
- zoneId string
- Subscription identifier tag.
- currency str
- The monetary unit in which pricing information is displayed.
- current_period_ strend 
- The end of the current period and also when the next billing is due.
- current_period_ strstart 
- When the current billing period started. May match initialperiodstart if this is the first period.
- frequency str
- How often the subscription is renewed automatically. Available values: "weekly", "monthly", "quarterly", "yearly".
- id str
- Subscription identifier tag.
- price float
- The price of the subscription that will be billed, in US dollars.
- rate_plan GetZone Subscription Rate Plan 
- The rate plan applied to the subscription.
- state str
- The state that the subscription is in. Available values: "Trial", "Provisioned", "Paid", "AwaitingPayment", "Cancelled", "Failed", "Expired".
- zone_id str
- Subscription identifier tag.
- currency String
- The monetary unit in which pricing information is displayed.
- currentPeriod StringEnd 
- The end of the current period and also when the next billing is due.
- currentPeriod StringStart 
- When the current billing period started. May match initialperiodstart if this is the first period.
- frequency String
- How often the subscription is renewed automatically. Available values: "weekly", "monthly", "quarterly", "yearly".
- id String
- Subscription identifier tag.
- price Number
- The price of the subscription that will be billed, in US dollars.
- ratePlan Property Map
- The rate plan applied to the subscription.
- state String
- The state that the subscription is in. Available values: "Trial", "Provisioned", "Paid", "AwaitingPayment", "Cancelled", "Failed", "Expired".
- zoneId String
- Subscription identifier tag.
Supporting Types
GetZoneSubscriptionRatePlan    
- Currency string
- The currency applied to the rate plan subscription.
- ExternallyManaged bool
- Whether this rate plan is managed externally from Cloudflare.
- Id string
- The ID of the rate plan. Available values: "free", "lite", "pro", "proplus", "business", "enterprise", "partnersfree", "partnerspro", "partnersbusiness", <span pulumi-lang-nodejs=""partnersEnterprise"" pulumi-lang-dotnet=""PartnersEnterprise"" pulumi-lang-go=""partnersEnterprise"" pulumi-lang-python=""partners_enterprise"" pulumi-lang-yaml=""partnersEnterprise"" pulumi-lang-java=""partnersEnterprise"">"partners_enterprise".
- IsContract bool
- Whether a rate plan is enterprise-based (or newly adopted term contract).
- PublicName string
- The full name of the rate plan.
- Scope string
- The scope that this rate plan applies to.
- Sets List<string>
- The list of sets this rate plan applies to.
- Currency string
- The currency applied to the rate plan subscription.
- ExternallyManaged bool
- Whether this rate plan is managed externally from Cloudflare.
- Id string
- The ID of the rate plan. Available values: "free", "lite", "pro", "proplus", "business", "enterprise", "partnersfree", "partnerspro", "partnersbusiness", <span pulumi-lang-nodejs=""partnersEnterprise"" pulumi-lang-dotnet=""PartnersEnterprise"" pulumi-lang-go=""partnersEnterprise"" pulumi-lang-python=""partners_enterprise"" pulumi-lang-yaml=""partnersEnterprise"" pulumi-lang-java=""partnersEnterprise"">"partners_enterprise".
- IsContract bool
- Whether a rate plan is enterprise-based (or newly adopted term contract).
- PublicName string
- The full name of the rate plan.
- Scope string
- The scope that this rate plan applies to.
- Sets []string
- The list of sets this rate plan applies to.
- currency String
- The currency applied to the rate plan subscription.
- externallyManaged Boolean
- Whether this rate plan is managed externally from Cloudflare.
- id String
- The ID of the rate plan. Available values: "free", "lite", "pro", "proplus", "business", "enterprise", "partnersfree", "partnerspro", "partnersbusiness", <span pulumi-lang-nodejs=""partnersEnterprise"" pulumi-lang-dotnet=""PartnersEnterprise"" pulumi-lang-go=""partnersEnterprise"" pulumi-lang-python=""partners_enterprise"" pulumi-lang-yaml=""partnersEnterprise"" pulumi-lang-java=""partnersEnterprise"">"partners_enterprise".
- isContract Boolean
- Whether a rate plan is enterprise-based (or newly adopted term contract).
- publicName String
- The full name of the rate plan.
- scope String
- The scope that this rate plan applies to.
- sets List<String>
- The list of sets this rate plan applies to.
- currency string
- The currency applied to the rate plan subscription.
- externallyManaged boolean
- Whether this rate plan is managed externally from Cloudflare.
- id string
- The ID of the rate plan. Available values: "free", "lite", "pro", "proplus", "business", "enterprise", "partnersfree", "partnerspro", "partnersbusiness", <span pulumi-lang-nodejs=""partnersEnterprise"" pulumi-lang-dotnet=""PartnersEnterprise"" pulumi-lang-go=""partnersEnterprise"" pulumi-lang-python=""partners_enterprise"" pulumi-lang-yaml=""partnersEnterprise"" pulumi-lang-java=""partnersEnterprise"">"partners_enterprise".
- isContract boolean
- Whether a rate plan is enterprise-based (or newly adopted term contract).
- publicName string
- The full name of the rate plan.
- scope string
- The scope that this rate plan applies to.
- sets string[]
- The list of sets this rate plan applies to.
- currency str
- The currency applied to the rate plan subscription.
- externally_managed bool
- Whether this rate plan is managed externally from Cloudflare.
- id str
- The ID of the rate plan. Available values: "free", "lite", "pro", "proplus", "business", "enterprise", "partnersfree", "partnerspro", "partnersbusiness", <span pulumi-lang-nodejs=""partnersEnterprise"" pulumi-lang-dotnet=""PartnersEnterprise"" pulumi-lang-go=""partnersEnterprise"" pulumi-lang-python=""partners_enterprise"" pulumi-lang-yaml=""partnersEnterprise"" pulumi-lang-java=""partnersEnterprise"">"partners_enterprise".
- is_contract bool
- Whether a rate plan is enterprise-based (or newly adopted term contract).
- public_name str
- The full name of the rate plan.
- scope str
- The scope that this rate plan applies to.
- sets Sequence[str]
- The list of sets this rate plan applies to.
- currency String
- The currency applied to the rate plan subscription.
- externallyManaged Boolean
- Whether this rate plan is managed externally from Cloudflare.
- id String
- The ID of the rate plan. Available values: "free", "lite", "pro", "proplus", "business", "enterprise", "partnersfree", "partnerspro", "partnersbusiness", <span pulumi-lang-nodejs=""partnersEnterprise"" pulumi-lang-dotnet=""PartnersEnterprise"" pulumi-lang-go=""partnersEnterprise"" pulumi-lang-python=""partners_enterprise"" pulumi-lang-yaml=""partnersEnterprise"" pulumi-lang-java=""partnersEnterprise"">"partners_enterprise".
- isContract Boolean
- Whether a rate plan is enterprise-based (or newly adopted term contract).
- publicName String
- The full name of the rate plan.
- scope String
- The scope that this rate plan applies to.
- sets List<String>
- The list of sets this rate plan applies to.
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the cloudflareTerraform Provider.
