Organizations
User API tokens can list and create Organizations, but reading, updating, or deleting an Organization requires a Global API key and your registered email address. The cloudflare_organization Terraform resource therefore requires a Global API key for its full lifecycle.
See Organizations authentication limitations for credential compatibility by operation. Each endpoint’s Security section lists its supported authentication methods, with Accepted Permissions where applicable.
cloudflare_organization
resource "cloudflare_organization" "example_organization" {
name = "name"
parent = {
id = "a7b9c3d2e8f4a1b5c6d0e9f2a3b7c4d8"
}
profile = {
business_address = "business_address"
business_email = "business_email"
business_name = "business_name"
business_phone = "business_phone"
external_metadata = "external_metadata"
}
}
data cloudflare_organizations
optional
An opaque token returned from the last list response that when provided will retrieve the next page.
Parameters used to filter the retrieved list must remain in subsequent requests with a page token.
cloudflare_organizations
data "cloudflare_organizations" "example_organizations" {
id = ["a7b9c3d2e8f4a1b5c6d0e9f2a3b7c4d8"]
containing = {
account = "account"
organization = "organization"
user = "user"
}
name = {
contains = "contains"
ends_with = "endsWith"
starts_with = "startsWith"
}
page_size = 0
page_token = "page_token"
parent = {
id = "a7b9c3d2e8f4a1b5c6d0e9f2a3b7c4d8"
}
}
OrganizationsOrganization Accounts
data cloudflare_organization_accounts
optional
Sort direction for the order_by field. Valid values: asc, desc.
Defaults to asc when order_by is specified.
Field to order results by. Currently supported values: account_name.
When not specified, results are ordered by internal account ID.
An opaque token returned from the last list response that when provided will retrieve the next page.
Parameters used to filter the retrieved list must remain in subsequent requests with a page token.
Whether to calculate and return the exact result_info.total_size for cursor pagination. Defaults to true. When false, total_size is omitted. page_size and include_total may change between pages; next_page_token remains the authoritative continuation signal. Legacy page/per_page requests always calculate total_count.
OrganizationsOrganization Profile
resource cloudflare_organization_profile
cloudflare_organization_profile
resource "cloudflare_organization_profile" "example_organization_profile" {
organization_id = "a7b9c3d2e8f4a1b5c6d0e9f2a3b7c4d8"
business_address = "business_address"
business_email = "business_email"
business_name = "business_name"
business_phone = "business_phone"
external_metadata = "external_metadata"
}
data cloudflare_organization_profile
cloudflare_organization_profile
data "cloudflare_organization_profile" "example_organization_profile" {
organization_id = "a7b9c3d2e8f4a1b5c6d0e9f2a3b7c4d8"
}