Viewing docs for Cloudflare v6.15.0
published on Saturday, May 2, 2026 by Pulumi
published on Saturday, May 2, 2026 by Pulumi
Viewing docs for Cloudflare v6.15.0
published on Saturday, May 2, 2026 by Pulumi
published on Saturday, May 2, 2026 by Pulumi
Accepted Permissions
Account Firewall Access Rules ReadAccount Firewall Access Rules WriteAccount Settings ReadAccount Settings WriteBilling ReadBilling WriteDDoS Botnet Feed ReadDDoS Botnet Feed WriteDDoS Protection ReadDDoS Protection WriteDNS Firewall ReadDNS Firewall WriteDNS View ReadDNS View WriteLoad Balancers Account ReadLoad Balancers Account WriteLoad Balancing: Monitors and Pools ReadLoad Balancing: Monitors and Pools WriteSCIM ProvisioningTrust and Safety ReadTrust and Safety WriteWorkers KV Storage ReadWorkers KV Storage WriteWorkers R2 Storage ReadWorkers R2 Storage WriteWorkers Scripts ReadWorkers Scripts WriteWorkers Tail ReadZero Trust: PII Read
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleAccount = cloudflare.getAccount({
accountId: "023e105f4ecef8ad9ca31a8372d0c353",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_account = cloudflare.get_account(account_id="023e105f4ecef8ad9ca31a8372d0c353")
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.GetAccount(ctx, &cloudflare.LookupAccountArgs{
AccountId: pulumi.StringRef("023e105f4ecef8ad9ca31a8372d0c353"),
}, 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 exampleAccount = Cloudflare.Index.GetAccount.Invoke(new()
{
AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
});
});
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.GetAccountArgs;
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 exampleAccount = CloudflareFunctions.getAccount(GetAccountArgs.builder()
.accountId("023e105f4ecef8ad9ca31a8372d0c353")
.build());
}
}
variables:
exampleAccount:
fn::invoke:
function: cloudflare:getAccount
arguments:
accountId: 023e105f4ecef8ad9ca31a8372d0c353
Example coming soon!
Using getAccount
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 getAccount(args: GetAccountArgs, opts?: InvokeOptions): Promise<GetAccountResult>
function getAccountOutput(args: GetAccountOutputArgs, opts?: InvokeOptions): Output<GetAccountResult>def get_account(account_id: Optional[str] = None,
filter: Optional[GetAccountFilter] = None,
opts: Optional[InvokeOptions] = None) -> GetAccountResult
def get_account_output(account_id: pulumi.Input[Optional[str]] = None,
filter: pulumi.Input[Optional[GetAccountFilterArgs]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAccountResult]func LookupAccount(ctx *Context, args *LookupAccountArgs, opts ...InvokeOption) (*LookupAccountResult, error)
func LookupAccountOutput(ctx *Context, args *LookupAccountOutputArgs, opts ...InvokeOption) LookupAccountResultOutput> Note: This function is named LookupAccount in the Go SDK.
public static class GetAccount
{
public static Task<GetAccountResult> InvokeAsync(GetAccountArgs args, InvokeOptions? opts = null)
public static Output<GetAccountResult> Invoke(GetAccountInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetAccountResult> getAccount(GetAccountArgs args, InvokeOptions options)
public static Output<GetAccountResult> getAccount(GetAccountArgs args, InvokeOptions options)
fn::invoke:
function: cloudflare:index/getAccount:getAccount
arguments:
# arguments dictionarydata "cloudflare_getaccount" "name" {
# arguments
}The following arguments are supported:
- Account
Id string - Account identifier tag.
- Filter
Get
Account Filter
- Account
Id string - Account identifier tag.
- Filter
Get
Account Filter
- account_
id string - Account identifier tag.
- filter object
- account
Id String - Account identifier tag.
- filter
Get
Account Filter
- account
Id string - Account identifier tag.
- filter
Get
Account Filter
- account_
id str - Account identifier tag.
- filter
Get
Account Filter
- account
Id String - Account identifier tag.
- filter Property Map
getAccount Result
The following output properties are available:
- Created
On string - Timestamp for the creation of the account
- Id string
- Account identifier tag.
- Managed
By GetAccount Managed By - Parent container details
- Name string
- Account name
- Settings
Get
Account Settings - Account settings
- Type string
- Available values: "standard", "enterprise".
- Account
Id string - Account identifier tag.
- Filter
Get
Account Filter
- Created
On string - Timestamp for the creation of the account
- Id string
- Account identifier tag.
- Managed
By GetAccount Managed By - Parent container details
- Name string
- Account name
- Settings
Get
Account Settings - Account settings
- Type string
- Available values: "standard", "enterprise".
- Account
Id string - Account identifier tag.
- Filter
Get
Account Filter
- created_
on string - Timestamp for the creation of the account
- id string
- Account identifier tag.
- managed_
by object - Parent container details
- name string
- Account name
- settings object
- Account settings
- type string
- Available values: "standard", "enterprise".
- account_
id string - Account identifier tag.
- filter object
- created
On String - Timestamp for the creation of the account
- id String
- Account identifier tag.
- managed
By GetAccount Managed By - Parent container details
- name String
- Account name
- settings
Get
Account Settings - Account settings
- type String
- Available values: "standard", "enterprise".
- account
Id String - Account identifier tag.
- filter
Get
Account Filter
- created
On string - Timestamp for the creation of the account
- id string
- Account identifier tag.
- managed
By GetAccount Managed By - Parent container details
- name string
- Account name
- settings
Get
Account Settings - Account settings
- type string
- Available values: "standard", "enterprise".
- account
Id string - Account identifier tag.
- filter
Get
Account Filter
- created_
on str - Timestamp for the creation of the account
- id str
- Account identifier tag.
- managed_
by GetAccount Managed By - Parent container details
- name str
- Account name
- settings
Get
Account Settings - Account settings
- type str
- Available values: "standard", "enterprise".
- account_
id str - Account identifier tag.
- filter
Get
Account Filter
- created
On String - Timestamp for the creation of the account
- id String
- Account identifier tag.
- managed
By Property Map - Parent container details
- name String
- Account name
- settings Property Map
- Account settings
- type String
- Available values: "standard", "enterprise".
- account
Id String - Account identifier tag.
- filter Property Map
Supporting Types
GetAccountFilter
GetAccountManagedBy
- Parent
Org stringId - ID of the parent Organization, if one exists
- Parent
Org stringName - Name of the parent Organization, if one exists
- Parent
Org stringId - ID of the parent Organization, if one exists
- Parent
Org stringName - Name of the parent Organization, if one exists
- parent_
org_ stringid - ID of the parent Organization, if one exists
- parent_
org_ stringname - Name of the parent Organization, if one exists
- parent
Org StringId - ID of the parent Organization, if one exists
- parent
Org StringName - Name of the parent Organization, if one exists
- parent
Org stringId - ID of the parent Organization, if one exists
- parent
Org stringName - Name of the parent Organization, if one exists
- parent_
org_ strid - ID of the parent Organization, if one exists
- parent_
org_ strname - Name of the parent Organization, if one exists
- parent
Org StringId - ID of the parent Organization, if one exists
- parent
Org StringName - Name of the parent Organization, if one exists
GetAccountSettings
- Abuse
Contact stringEmail - Sets an abuse contact email to notify for abuse reports.
- Enforce
Twofactor bool - Indicates whether membership in this account requires that Two-Factor Authentication is enabled
- Abuse
Contact stringEmail - Sets an abuse contact email to notify for abuse reports.
- Enforce
Twofactor bool - Indicates whether membership in this account requires that Two-Factor Authentication is enabled
- abuse_
contact_ stringemail - Sets an abuse contact email to notify for abuse reports.
- enforce_
twofactor bool - Indicates whether membership in this account requires that Two-Factor Authentication is enabled
- abuse
Contact StringEmail - Sets an abuse contact email to notify for abuse reports.
- enforce
Twofactor Boolean - Indicates whether membership in this account requires that Two-Factor Authentication is enabled
- abuse
Contact stringEmail - Sets an abuse contact email to notify for abuse reports.
- enforce
Twofactor boolean - Indicates whether membership in this account requires that Two-Factor Authentication is enabled
- abuse_
contact_ stremail - Sets an abuse contact email to notify for abuse reports.
- enforce_
twofactor bool - Indicates whether membership in this account requires that Two-Factor Authentication is enabled
- abuse
Contact StringEmail - Sets an abuse contact email to notify for abuse reports.
- enforce
Twofactor Boolean - Indicates whether membership in this account requires that Two-Factor Authentication is enabled
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflareTerraform Provider.
Viewing docs for Cloudflare v6.15.0
published on Saturday, May 2, 2026 by Pulumi
published on Saturday, May 2, 2026 by Pulumi
