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.
resource cloudflare_organization
optional
cloudflare_organization
resource "cloudflare_organization" "example_organization" {
name = "x"
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
Sort direction for the order_by field. Defaults to asc when order_by is
specified.
Field to order results by. Currently supported values: name.
When not specified, results are ordered by hierarchy.
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"
}
direction = "asc"
member = {
email = "email"
}
name = {
contains = "contains"
ends_with = "endsWith"
starts_with = "startsWith"
}
order_by = "name"
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.
Legacy offset page number. Must be provided with per_page. Values below 1 are treated as
- Cursor pagination takes precedence when requested.
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.
Legacy offset page size. Must be provided with page. Values are clamped to the range
1-100. Cursor pagination takes precedence when requested.
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"
}
OrganizationsMembers
data cloudflare_organization_members
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.