Accounts
resource cloudflare_account
optional
cloudflare_account
resource "cloudflare_account" "example_account" {
name = "name"
standalone = true
type = "standard"
unit = {
id = "f267e341f3dd4697bd3b9f71dd96247f"
}
}
data cloudflare_account
cloudflare_account
data "cloudflare_account" "example_account" {
account_id = "023e105f4ecef8ad9ca31a8372d0c353"
}
AccountsMembers
resource cloudflare_account_member
required
optional
cloudflare_account_member
resource "cloudflare_account_member" "example_account_member" {
account_id = "023e105f4ecef8ad9ca31a8372d0c353"
email = "user@example.com"
roles = ["3536bcfad5faccb999b47003c79917fb"]
status = "accepted"
}
data cloudflare_account_member
cloudflare_account_member
data "cloudflare_account_member" "example_account_member" {
account_id = "023e105f4ecef8ad9ca31a8372d0c353"
member_id = "4536bcfad5faccb111b47003c79917fa"
}
data cloudflare_account_members
optional
cloudflare_account_members
data "cloudflare_account_members" "example_account_members" {
account_id = "023e105f4ecef8ad9ca31a8372d0c353"
direction = "desc"
order = "status"
status = "accepted"
}
AccountsRoles
data cloudflare_account_role
cloudflare_account_role
data "cloudflare_account_role" "example_account_role" {
account_id = "023e105f4ecef8ad9ca31a8372d0c353"
role_id = "3536bcfad5faccb999b47003c79917fb"
}
AccountsSubscriptions
resource cloudflare_account_subscription
optional
cloudflare_account_subscription
resource "cloudflare_account_subscription" "example_account_subscription" {
zone_id = "zone_id"
frequency = "monthly"
rate_plan = {
id = "free"
currency = "USD"
externally_managed = false
is_contract = false
public_name = "Business Plan"
scope = "zone"
sets = ["string"]
}
}
data cloudflare_account_subscription
optional
cloudflare_account_subscription
data "cloudflare_account_subscription" "example_account_subscription" {
account_id = "account_id"
zone_id = "zone_id"
}
AccountsTokens
resource cloudflare_account_token
optional
computed
The email address of the user who created the token at the time of creation. Only present for Account Owned API Tokens when a creator email was available.
The identifier of the service that provisioned the token. For an
OAuth-provisioned token, this is the OAuth client identifier. Present
when provisioner_type is present and null when the identifier is
unavailable.
The type of service that provisioned the token. Only present for provisioned Account Owned API Tokens.
The prefix of the token value, before the first underscore. Use it with
token_suffix to identify a token. Only present for tokens created or
rolled after this field was added.
cloudflare_account_token
resource "cloudflare_account_token" "example_account_token" {
account_id = "023e105f4ecef8ad9ca31a8372d0c353"
name = "readonly token"
policies = [{
effect = "allow"
permission_groups = [{
id = "c8fed203ed3043cba015a93ad1616f1f"
meta = {
category = "category"
deprecated = "deprecated"
description = "description"
editable = "editable"
eol_at = "2019-12-27T18:11:19.117Z"
label = "load_balancer_admin"
scopes = "com.cloudflare.api.account"
visibility = "visibility"
}
}, {
id = "82e64a83756745bbbb1c9c2701bf816b"
meta = {
category = "category"
deprecated = "deprecated"
description = "description"
editable = "editable"
eol_at = "2019-12-27T18:11:19.117Z"
label = "fbm_user"
scopes = "com.cloudflare.api.account"
visibility = "visibility"
}
}]
resources = {
"com.cloudflare.api.account.zone.22b1de5f1c0e4b3ea97bb1e963b06a43" = "*"
}
}]
condition = {
request_ip = {
in = ["123.123.123.0/24", "2606:4700::/32"]
not_in = ["123.123.123.100/24", "2606:4700:4700::/48"]
}
}
expires_on = "2020-01-01T00:00:00Z"
not_before = "2018-07-01T05:20:00Z"
}
data cloudflare_account_token
computed
The email address of the user who created the token at the time of creation. Only present for Account Owned API Tokens when a creator email was available.
The identifier of the service that provisioned the token. For an
OAuth-provisioned token, this is the OAuth client identifier. Present
when provisioner_type is present and null when the identifier is
unavailable.
The type of service that provisioned the token. Only present for provisioned Account Owned API Tokens.
The prefix of the token value, before the first underscore. Use it with
token_suffix to identify a token. Only present for tokens created or
rolled after this field was added.
cloudflare_account_token
data "cloudflare_account_token" "example_account_token" {
account_id = "023e105f4ecef8ad9ca31a8372d0c353"
token_id = "ed17574386854bf78a67040be0a770b0"
}
data cloudflare_account_tokens
optional
cloudflare_account_tokens
data "cloudflare_account_tokens" "example_account_tokens" {
account_id = "023e105f4ecef8ad9ca31a8372d0c353"
direction = "desc"
}
AccountsTokensPermission Groups
data cloudflare_account_api_token_permission_groups
optional
cloudflare_account_api_token_permission_groups
data "cloudflare_account_api_token_permission_groups" "example_account_api_token_permission_groups" {
account_id = "023e105f4ecef8ad9ca31a8372d0c353"
name = "Account%20Settings%20Write"
scope = "com.cloudflare.api.account.zone"
}
data cloudflare_account_api_token_permission_groups_list
optional
cloudflare_account_api_token_permission_groups_list
data "cloudflare_account_api_token_permission_groups_list" "example_account_api_token_permission_groups_list" {
account_id = "023e105f4ecef8ad9ca31a8372d0c353"
name = "Account%20Settings%20Write"
scope = "com.cloudflare.api.account.zone"
}