User
resource cloudflare_user
optional
computed
cloudflare_user
resource "cloudflare_user" "example_user" {
country = "US"
first_name = "John"
last_name = "Appleseed"
telephone = "+1 123-123-1234"
zipcode = "12345"
}
data cloudflare_user
computed
cloudflare_user
data "cloudflare_user" "example_user" {
}
UserTokens
resource cloudflare_api_token
optional
computed
creator_email_at_creation: String
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.
provisioner_id: String
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.
cloudflare_api_token
resource "cloudflare_api_token" "example_api_token" {
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_api_token
computed
creator_email_at_creation: String
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.
provisioner_id: String
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.
cloudflare_api_token
data "cloudflare_api_token" "example_api_token" {
token_id = "ed17574386854bf78a67040be0a770b0"
}
data cloudflare_api_tokens
optional
cloudflare_api_tokens
data "cloudflare_api_tokens" "example_api_tokens" {
direction = "desc"
}
UserTokensPermission Groups
data cloudflare_api_token_permission_groups_list
optional
cloudflare_api_token_permission_groups_list
data "cloudflare_api_token_permission_groups_list" "example_api_token_permission_groups_list" {
name = "Account%20Settings%20Write"
scope = "com.cloudflare.api.account.zone"
}