1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. getAccountSubscription
Cloudflare v6.0.1 published on Wednesday, Apr 16, 2025 by Pulumi

cloudflare.getAccountSubscription

Explore with Pulumi AI

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";

const exampleAccountSubscription = cloudflare.getAccountSubscription({
    accountId: "023e105f4ecef8ad9ca31a8372d0c353",
});
Copy
import pulumi
import pulumi_cloudflare as cloudflare

example_account_subscription = cloudflare.get_account_subscription(account_id="023e105f4ecef8ad9ca31a8372d0c353")
Copy
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.LookupAccountSubscription(ctx, &cloudflare.LookupAccountSubscriptionArgs{
			AccountId: "023e105f4ecef8ad9ca31a8372d0c353",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;

return await Deployment.RunAsync(() => 
{
    var exampleAccountSubscription = Cloudflare.GetAccountSubscription.Invoke(new()
    {
        AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
    });

});
Copy
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.GetAccountSubscriptionArgs;
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 exampleAccountSubscription = CloudflareFunctions.getAccountSubscription(GetAccountSubscriptionArgs.builder()
            .accountId("023e105f4ecef8ad9ca31a8372d0c353")
            .build());

    }
}
Copy
variables:
  exampleAccountSubscription:
    fn::invoke:
      function: cloudflare:getAccountSubscription
      arguments:
        accountId: 023e105f4ecef8ad9ca31a8372d0c353
Copy

Using getAccountSubscription

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 getAccountSubscription(args: GetAccountSubscriptionArgs, opts?: InvokeOptions): Promise<GetAccountSubscriptionResult>
function getAccountSubscriptionOutput(args: GetAccountSubscriptionOutputArgs, opts?: InvokeOptions): Output<GetAccountSubscriptionResult>
Copy
def get_account_subscription(account_id: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetAccountSubscriptionResult
def get_account_subscription_output(account_id: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetAccountSubscriptionResult]
Copy
func LookupAccountSubscription(ctx *Context, args *LookupAccountSubscriptionArgs, opts ...InvokeOption) (*LookupAccountSubscriptionResult, error)
func LookupAccountSubscriptionOutput(ctx *Context, args *LookupAccountSubscriptionOutputArgs, opts ...InvokeOption) LookupAccountSubscriptionResultOutput
Copy

> Note: This function is named LookupAccountSubscription in the Go SDK.

public static class GetAccountSubscription 
{
    public static Task<GetAccountSubscriptionResult> InvokeAsync(GetAccountSubscriptionArgs args, InvokeOptions? opts = null)
    public static Output<GetAccountSubscriptionResult> Invoke(GetAccountSubscriptionInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetAccountSubscriptionResult> getAccountSubscription(GetAccountSubscriptionArgs args, InvokeOptions options)
public static Output<GetAccountSubscriptionResult> getAccountSubscription(GetAccountSubscriptionArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: cloudflare:index/getAccountSubscription:getAccountSubscription
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

AccountId This property is required. string
Identifier
AccountId This property is required. string
Identifier
accountId This property is required. String
Identifier
accountId This property is required. string
Identifier
account_id This property is required. str
Identifier
accountId This property is required. String
Identifier

getAccountSubscription Result

The following output properties are available:

AccountId string
Identifier
Currency string
The monetary unit in which pricing information is displayed.
CurrentPeriodEnd string
The end of the current period and also when the next billing is due.
CurrentPeriodStart string
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 GetAccountSubscriptionRatePlan
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".
AccountId string
Identifier
Currency string
The monetary unit in which pricing information is displayed.
CurrentPeriodEnd string
The end of the current period and also when the next billing is due.
CurrentPeriodStart string
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 GetAccountSubscriptionRatePlan
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".
accountId String
Identifier
currency String
The monetary unit in which pricing information is displayed.
currentPeriodEnd String
The end of the current period and also when the next billing is due.
currentPeriodStart String
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 GetAccountSubscriptionRatePlan
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".
accountId string
Identifier
currency string
The monetary unit in which pricing information is displayed.
currentPeriodEnd string
The end of the current period and also when the next billing is due.
currentPeriodStart string
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 GetAccountSubscriptionRatePlan
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".
account_id str
Identifier
currency str
The monetary unit in which pricing information is displayed.
current_period_end str
The end of the current period and also when the next billing is due.
current_period_start str
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 GetAccountSubscriptionRatePlan
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".
accountId String
Identifier
currency String
The monetary unit in which pricing information is displayed.
currentPeriodEnd String
The end of the current period and also when the next billing is due.
currentPeriodStart String
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".

Supporting Types

GetAccountSubscriptionRatePlan

Currency This property is required. string
The currency applied to the rate plan subscription.
ExternallyManaged This property is required. bool
Whether this rate plan is managed externally from Cloudflare.
Id This property is required. string
The ID of the rate plan. Available values: "free", "lite", "pro", "proplus", "business", "enterprise", "partnersfree", "partnerspro", "partnersbusiness", "partners_enterprise".
IsContract This property is required. bool
Whether a rate plan is enterprise-based (or newly adopted term contract).
PublicName This property is required. string
The full name of the rate plan.
Scope This property is required. string
The scope that this rate plan applies to.
Sets This property is required. List<string>
The list of sets this rate plan applies to.
Currency This property is required. string
The currency applied to the rate plan subscription.
ExternallyManaged This property is required. bool
Whether this rate plan is managed externally from Cloudflare.
Id This property is required. string
The ID of the rate plan. Available values: "free", "lite", "pro", "proplus", "business", "enterprise", "partnersfree", "partnerspro", "partnersbusiness", "partners_enterprise".
IsContract This property is required. bool
Whether a rate plan is enterprise-based (or newly adopted term contract).
PublicName This property is required. string
The full name of the rate plan.
Scope This property is required. string
The scope that this rate plan applies to.
Sets This property is required. []string
The list of sets this rate plan applies to.
currency This property is required. String
The currency applied to the rate plan subscription.
externallyManaged This property is required. Boolean
Whether this rate plan is managed externally from Cloudflare.
id This property is required. String
The ID of the rate plan. Available values: "free", "lite", "pro", "proplus", "business", "enterprise", "partnersfree", "partnerspro", "partnersbusiness", "partners_enterprise".
isContract This property is required. Boolean
Whether a rate plan is enterprise-based (or newly adopted term contract).
publicName This property is required. String
The full name of the rate plan.
scope This property is required. String
The scope that this rate plan applies to.
sets This property is required. List<String>
The list of sets this rate plan applies to.
currency This property is required. string
The currency applied to the rate plan subscription.
externallyManaged This property is required. boolean
Whether this rate plan is managed externally from Cloudflare.
id This property is required. string
The ID of the rate plan. Available values: "free", "lite", "pro", "proplus", "business", "enterprise", "partnersfree", "partnerspro", "partnersbusiness", "partners_enterprise".
isContract This property is required. boolean
Whether a rate plan is enterprise-based (or newly adopted term contract).
publicName This property is required. string
The full name of the rate plan.
scope This property is required. string
The scope that this rate plan applies to.
sets This property is required. string[]
The list of sets this rate plan applies to.
currency This property is required. str
The currency applied to the rate plan subscription.
externally_managed This property is required. bool
Whether this rate plan is managed externally from Cloudflare.
id This property is required. str
The ID of the rate plan. Available values: "free", "lite", "pro", "proplus", "business", "enterprise", "partnersfree", "partnerspro", "partnersbusiness", "partners_enterprise".
is_contract This property is required. bool
Whether a rate plan is enterprise-based (or newly adopted term contract).
public_name This property is required. str
The full name of the rate plan.
scope This property is required. str
The scope that this rate plan applies to.
sets This property is required. Sequence[str]
The list of sets this rate plan applies to.
currency This property is required. String
The currency applied to the rate plan subscription.
externallyManaged This property is required. Boolean
Whether this rate plan is managed externally from Cloudflare.
id This property is required. String
The ID of the rate plan. Available values: "free", "lite", "pro", "proplus", "business", "enterprise", "partnersfree", "partnerspro", "partnersbusiness", "partners_enterprise".
isContract This property is required. Boolean
Whether a rate plan is enterprise-based (or newly adopted term contract).
publicName This property is required. String
The full name of the rate plan.
scope This property is required. String
The scope that this rate plan applies to.
sets This property is required. 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 cloudflare Terraform Provider.