published on Thursday, Nov 12, 2026 by Pulumi
published on Thursday, Nov 12, 2026 by Pulumi
Accepted Permissions
User Details ReadUser Details Write
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.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleOrganization = cloudflare.getOrganization({
organizationId: "a7b9c3d2e8f4a1b5c6d0e9f2a3b7c4d8",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_organization = cloudflare.get_organization(organization_id="a7b9c3d2e8f4a1b5c6d0e9f2a3b7c4d8")
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.GetOrganization(ctx, &cloudflare.LookupOrganizationArgs{
OrganizationId: pulumi.StringRef("a7b9c3d2e8f4a1b5c6d0e9f2a3b7c4d8"),
}, 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 exampleOrganization = Cloudflare.GetOrganization.Invoke(new()
{
OrganizationId = "a7b9c3d2e8f4a1b5c6d0e9f2a3b7c4d8",
});
});
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.GetOrganizationArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 exampleOrganization = CloudflareFunctions.getOrganization(GetOrganizationArgs.builder()
.organizationId("a7b9c3d2e8f4a1b5c6d0e9f2a3b7c4d8")
.build());
}
}
variables:
exampleOrganization:
fn::invoke:
function: cloudflare:getOrganization
arguments:
organizationId: a7b9c3d2e8f4a1b5c6d0e9f2a3b7c4d8
terraform {
required_providers {
cloudflare = {
source = "pulumi/cloudflare"
}
}
}
data "cloudflare_organization" "exampleOrganization" {
organization_id = "a7b9c3d2e8f4a1b5c6d0e9f2a3b7c4d8"
}
Using getOrganization
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 getOrganization(args: GetOrganizationArgs, opts?: InvokeOptions): Promise<GetOrganizationResult>
function getOrganizationOutput(args: GetOrganizationOutputArgs, opts?: InvokeOutputOptions): Output<GetOrganizationResult>def get_organization(filter: Optional[GetOrganizationFilter] = None,
organization_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetOrganizationResult
def get_organization_output(filter: pulumi.Input[Optional[GetOrganizationFilterArgs]] = None,
organization_id: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetOrganizationResult]func LookupOrganization(ctx *Context, args *LookupOrganizationArgs, opts ...InvokeOption) (*LookupOrganizationResult, error)
func LookupOrganizationOutput(ctx *Context, args *LookupOrganizationOutputArgs, opts ...InvokeOption) LookupOrganizationResultOutput> Note: This function is named LookupOrganization in the Go SDK.
public static class GetOrganization
{
public static Task<GetOrganizationResult> InvokeAsync(GetOrganizationArgs args, InvokeOptions? opts = null)
public static Output<GetOrganizationResult> Invoke(GetOrganizationInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetOrganizationResult> Invoke(GetOrganizationInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetOrganizationResult> getOrganization(GetOrganizationArgs args, InvokeOptions options)
public static Output<GetOrganizationResult> getOrganization(GetOrganizationArgs args, InvokeOptions options)
public static Output<GetOrganizationResult> getOrganization(GetOrganizationArgs args, InvokeOutputOptions options)
fn::invoke:
function: cloudflare:index/getOrganization:getOrganization
arguments:
# arguments dictionarydata "cloudflare_get_organization" "name" {
# arguments
}The following arguments are supported:
- filter object
- organization_
id string
- filter Property Map
- organization
Id String
getOrganization Result
The following output properties are available:
- Create
Time string - Id string
- The ID of this resource.
- Meta
Get
Organization Meta - Name string
- Parent
Get
Organization Parent - Profile
Get
Organization Profile - Filter
Get
Organization Filter - Organization
Id string
- Create
Time string - Id string
- The ID of this resource.
- Meta
Get
Organization Meta - Name string
- Parent
Get
Organization Parent - Profile
Get
Organization Profile Type - Filter
Get
Organization Filter - Organization
Id string
- create
Time String - id String
- The ID of this resource.
- meta
Get
Organization Meta - name String
- parent
Get
Organization Parent - profile
Get
Organization Profile - filter
Get
Organization Filter - organization
Id String
- create
Time string - id string
- The ID of this resource.
- meta
Get
Organization Meta - name string
- parent
Get
Organization Parent - profile
Get
Organization Profile - filter
Get
Organization Filter - organization
Id string
- create_
time str - id str
- The ID of this resource.
- meta
Get
Organization Meta - name str
- parent
Get
Organization Parent - profile
Get
Organization Profile - filter
Get
Organization Filter - organization_
id str
- create
Time String - id String
- The ID of this resource.
- meta Property Map
- name String
- parent Property Map
- profile Property Map
- filter Property Map
- organization
Id String
Supporting Types
GetOrganizationFilter
- Containing
Get
Organization Filter Containing - Direction string
- Sort direction for the
orderByfield. Defaults toascwhenorderByis specified. Available values: "asc", "desc". - Ids List<string>
- Only return organizations with the specified IDs (ex. id=foo&id=bar). Send multiple elements by repeating the query value.
- Member
Get
Organization Filter Member - Name
Get
Organization Filter Name - Order
By string - Field to order results by. Currently supported values:
name. When not specified, results are ordered by hierarchy. Available values: "name". - Page
Size int - The amount of items to return. Defaults to 10.
- Page
Token string - An opaque token returned from the last list response that when provided will retrieve the next page.
- Parent
Get
Organization Filter Parent
- Containing
Get
Organization Filter Containing - Direction string
- Sort direction for the
orderByfield. Defaults toascwhenorderByis specified. Available values: "asc", "desc". - Ids []string
- Only return organizations with the specified IDs (ex. id=foo&id=bar). Send multiple elements by repeating the query value.
- Member
Get
Organization Filter Member - Name
Get
Organization Filter Name - Order
By string - Field to order results by. Currently supported values:
name. When not specified, results are ordered by hierarchy. Available values: "name". - Page
Size int - The amount of items to return. Defaults to 10.
- Page
Token string - An opaque token returned from the last list response that when provided will retrieve the next page.
- Parent
Get
Organization Filter Parent
- containing object
- direction string
- Sort direction for the
orderByfield. Defaults toascwhenorderByis specified. Available values: "asc", "desc". - ids list(string)
- Only return organizations with the specified IDs (ex. id=foo&id=bar). Send multiple elements by repeating the query value.
- member object
- name object
- order_
by string - Field to order results by. Currently supported values:
name. When not specified, results are ordered by hierarchy. Available values: "name". - page_
size number - The amount of items to return. Defaults to 10.
- page_
token string - An opaque token returned from the last list response that when provided will retrieve the next page.
- parent object
- containing
Get
Organization Filter Containing - direction String
- Sort direction for the
orderByfield. Defaults toascwhenorderByis specified. Available values: "asc", "desc". - ids List<String>
- Only return organizations with the specified IDs (ex. id=foo&id=bar). Send multiple elements by repeating the query value.
- member
Get
Organization Filter Member - name
Get
Organization Filter Name - order
By String - Field to order results by. Currently supported values:
name. When not specified, results are ordered by hierarchy. Available values: "name". - page
Size Integer - The amount of items to return. Defaults to 10.
- page
Token String - An opaque token returned from the last list response that when provided will retrieve the next page.
- parent
Get
Organization Filter Parent
- containing
Get
Organization Filter Containing - direction string
- Sort direction for the
orderByfield. Defaults toascwhenorderByis specified. Available values: "asc", "desc". - ids string[]
- Only return organizations with the specified IDs (ex. id=foo&id=bar). Send multiple elements by repeating the query value.
- member
Get
Organization Filter Member - name
Get
Organization Filter Name - order
By string - Field to order results by. Currently supported values:
name. When not specified, results are ordered by hierarchy. Available values: "name". - page
Size number - The amount of items to return. Defaults to 10.
- page
Token string - An opaque token returned from the last list response that when provided will retrieve the next page.
- parent
Get
Organization Filter Parent
- containing
Get
Organization Filter Containing - direction str
- Sort direction for the
orderByfield. Defaults toascwhenorderByis specified. Available values: "asc", "desc". - ids Sequence[str]
- Only return organizations with the specified IDs (ex. id=foo&id=bar). Send multiple elements by repeating the query value.
- member
Get
Organization Filter Member - name
Get
Organization Filter Name - order_
by str - Field to order results by. Currently supported values:
name. When not specified, results are ordered by hierarchy. Available values: "name". - page_
size int - The amount of items to return. Defaults to 10.
- page_
token str - An opaque token returned from the last list response that when provided will retrieve the next page.
- parent
Get
Organization Filter Parent
- containing Property Map
- direction String
- Sort direction for the
orderByfield. Defaults toascwhenorderByis specified. Available values: "asc", "desc". - ids List<String>
- Only return organizations with the specified IDs (ex. id=foo&id=bar). Send multiple elements by repeating the query value.
- member Property Map
- name Property Map
- order
By String - Field to order results by. Currently supported values:
name. When not specified, results are ordered by hierarchy. Available values: "name". - page
Size Number - The amount of items to return. Defaults to 10.
- page
Token String - An opaque token returned from the last list response that when provided will retrieve the next page.
- parent Property Map
GetOrganizationFilterContaining
- Account string
- Filter the list of organizations to the ones that contain this particular account.
- Organization string
- Filter the list of organizations to the ones that contain this particular organization.
- User string
- Filter the list of organizations to the ones that contain this particular user.
- Account string
- Filter the list of organizations to the ones that contain this particular account.
- Organization string
- Filter the list of organizations to the ones that contain this particular organization.
- User string
- Filter the list of organizations to the ones that contain this particular user.
- account string
- Filter the list of organizations to the ones that contain this particular account.
- organization string
- Filter the list of organizations to the ones that contain this particular organization.
- user string
- Filter the list of organizations to the ones that contain this particular user.
- account String
- Filter the list of organizations to the ones that contain this particular account.
- organization String
- Filter the list of organizations to the ones that contain this particular organization.
- user String
- Filter the list of organizations to the ones that contain this particular user.
- account string
- Filter the list of organizations to the ones that contain this particular account.
- organization string
- Filter the list of organizations to the ones that contain this particular organization.
- user string
- Filter the list of organizations to the ones that contain this particular user.
- account str
- Filter the list of organizations to the ones that contain this particular account.
- organization str
- Filter the list of organizations to the ones that contain this particular organization.
- user str
- Filter the list of organizations to the ones that contain this particular user.
- account String
- Filter the list of organizations to the ones that contain this particular account.
- organization String
- Filter the list of organizations to the ones that contain this particular organization.
- user String
- Filter the list of organizations to the ones that contain this particular user.
GetOrganizationFilterMember
- Email string
- Filter organizations to those where the given user, by email, is an active member of that exact organization. This does not include hierarchy-derived access.
- Email string
- Filter organizations to those where the given user, by email, is an active member of that exact organization. This does not include hierarchy-derived access.
- email string
- Filter organizations to those where the given user, by email, is an active member of that exact organization. This does not include hierarchy-derived access.
- email String
- Filter organizations to those where the given user, by email, is an active member of that exact organization. This does not include hierarchy-derived access.
- email string
- Filter organizations to those where the given user, by email, is an active member of that exact organization. This does not include hierarchy-derived access.
- email str
- Filter organizations to those where the given user, by email, is an active member of that exact organization. This does not include hierarchy-derived access.
- email String
- Filter organizations to those where the given user, by email, is an active member of that exact organization. This does not include hierarchy-derived access.
GetOrganizationFilterName
- Contains string
- (case-insensitive) Filter the list of organizations to where the name contains a particular string.
- Ends
With string - (case-insensitive) Filter the list of organizations to where the name ends with a particular string.
- Starts
With string - (case-insensitive) Filter the list of organizations to where the name starts with a particular string.
- Contains string
- (case-insensitive) Filter the list of organizations to where the name contains a particular string.
- Ends
With string - (case-insensitive) Filter the list of organizations to where the name ends with a particular string.
- Starts
With string - (case-insensitive) Filter the list of organizations to where the name starts with a particular string.
- contains string
- (case-insensitive) Filter the list of organizations to where the name contains a particular string.
- ends_
with string - (case-insensitive) Filter the list of organizations to where the name ends with a particular string.
- starts_
with string - (case-insensitive) Filter the list of organizations to where the name starts with a particular string.
- contains String
- (case-insensitive) Filter the list of organizations to where the name contains a particular string.
- ends
With String - (case-insensitive) Filter the list of organizations to where the name ends with a particular string.
- starts
With String - (case-insensitive) Filter the list of organizations to where the name starts with a particular string.
- contains string
- (case-insensitive) Filter the list of organizations to where the name contains a particular string.
- ends
With string - (case-insensitive) Filter the list of organizations to where the name ends with a particular string.
- starts
With string - (case-insensitive) Filter the list of organizations to where the name starts with a particular string.
- contains str
- (case-insensitive) Filter the list of organizations to where the name contains a particular string.
- ends_
with str - (case-insensitive) Filter the list of organizations to where the name ends with a particular string.
- starts_
with str - (case-insensitive) Filter the list of organizations to where the name starts with a particular string.
- contains String
- (case-insensitive) Filter the list of organizations to where the name contains a particular string.
- ends
With String - (case-insensitive) Filter the list of organizations to where the name ends with a particular string.
- starts
With String - (case-insensitive) Filter the list of organizations to where the name starts with a particular string.
GetOrganizationFilterParent
- Id string
- Filter the list of organizations to the ones that are a sub-organization of the specified organization.
- Id string
- Filter the list of organizations to the ones that are a sub-organization of the specified organization.
- id string
- Filter the list of organizations to the ones that are a sub-organization of the specified organization.
- id String
- Filter the list of organizations to the ones that are a sub-organization of the specified organization.
- id string
- Filter the list of organizations to the ones that are a sub-organization of the specified organization.
- id str
- Filter the list of organizations to the ones that are a sub-organization of the specified organization.
- id String
- Filter the list of organizations to the ones that are a sub-organization of the specified organization.
GetOrganizationMeta
- Are
Child boolAccounts Accessible By Org Members - List<string>
- Ordered chain of organization tags from the root organization down to
(and including) this organization itself. Root organizations return a
single-element array containing their own tag; sub-organizations return
[rootTag, ...intermediateTags, parentTag, selfTag]. Useful for constructing authorization scopes that need to cover every ancestor in the hierarchy. - Managed
By string - Tenant
Flags GetOrganization Meta Tenant Flags - Enable features for Organizations.
- Tenant
Type string
- Are
Child boolAccounts Accessible By Org Members - []string
- Ordered chain of organization tags from the root organization down to
(and including) this organization itself. Root organizations return a
single-element array containing their own tag; sub-organizations return
[rootTag, ...intermediateTags, parentTag, selfTag]. Useful for constructing authorization scopes that need to cover every ancestor in the hierarchy. - Managed
By string - Tenant
Flags GetOrganization Meta Tenant Flags - Enable features for Organizations.
- Tenant
Type string
- are_
child_ boolaccounts_ accessible_ by_ org_ members - list(string)
- Ordered chain of organization tags from the root organization down to
(and including) this organization itself. Root organizations return a
single-element array containing their own tag; sub-organizations return
[rootTag, ...intermediateTags, parentTag, selfTag]. Useful for constructing authorization scopes that need to cover every ancestor in the hierarchy. - managed_
by string - tenant_
flags object - Enable features for Organizations.
- tenant_
type string
- are
Child BooleanAccounts Accessible By Org Members - List<String>
- Ordered chain of organization tags from the root organization down to
(and including) this organization itself. Root organizations return a
single-element array containing their own tag; sub-organizations return
[rootTag, ...intermediateTags, parentTag, selfTag]. Useful for constructing authorization scopes that need to cover every ancestor in the hierarchy. - managed
By String - tenant
Flags GetOrganization Meta Tenant Flags - Enable features for Organizations.
- tenant
Type String
- are
Child booleanAccounts Accessible By Org Members - string[]
- Ordered chain of organization tags from the root organization down to
(and including) this organization itself. Root organizations return a
single-element array containing their own tag; sub-organizations return
[rootTag, ...intermediateTags, parentTag, selfTag]. Useful for constructing authorization scopes that need to cover every ancestor in the hierarchy. - managed
By string - tenant
Flags GetOrganization Meta Tenant Flags - Enable features for Organizations.
- tenant
Type string
- are_
child_ boolaccounts_ accessible_ by_ org_ members - Sequence[str]
- Ordered chain of organization tags from the root organization down to
(and including) this organization itself. Root organizations return a
single-element array containing their own tag; sub-organizations return
[rootTag, ...intermediateTags, parentTag, selfTag]. Useful for constructing authorization scopes that need to cover every ancestor in the hierarchy. - managed_
by str - tenant_
flags GetOrganization Meta Tenant Flags - Enable features for Organizations.
- tenant_
type str
- are
Child BooleanAccounts Accessible By Org Members - List<String>
- Ordered chain of organization tags from the root organization down to
(and including) this organization itself. Root organizations return a
single-element array containing their own tag; sub-organizations return
[rootTag, ...intermediateTags, parentTag, selfTag]. Useful for constructing authorization scopes that need to cover every ancestor in the hierarchy. - managed
By String - tenant
Flags Property Map - Enable features for Organizations.
- tenant
Type String
GetOrganizationMetaTenantFlags
- Account
Creation string - Account
Creation stringApplies Tenant Defaults - Account
Deletion string - Account
Migration string - Account
Mobility string - Enterprise
Capability string - Member
Management string - Sub
Org stringCreation
- Account
Creation string - Account
Creation stringApplies Tenant Defaults - Account
Deletion string - Account
Migration string - Account
Mobility string - Enterprise
Capability string - Member
Management string - Sub
Org stringCreation
- account_
creation string - account_
creation_ stringapplies_ tenant_ defaults - account_
deletion string - account_
migration string - account_
mobility string - enterprise_
capability string - member_
management string - sub_
org_ stringcreation
- account
Creation String - account
Creation StringApplies Tenant Defaults - account
Deletion String - account
Migration String - account
Mobility String - enterprise
Capability String - member
Management String - sub
Org StringCreation
- account
Creation string - account
Creation stringApplies Tenant Defaults - account
Deletion string - account
Migration string - account
Mobility string - enterprise
Capability string - member
Management string - sub
Org stringCreation
- account
Creation String - account
Creation StringApplies Tenant Defaults - account
Deletion String - account
Migration String - account
Mobility String - enterprise
Capability String - member
Management String - sub
Org StringCreation
GetOrganizationParent
GetOrganizationProfile
- Business
Address string - Business
Email string - Business
Name string - Business
Phone string - External
Metadata string
- Business
Address string - Business
Email string - Business
Name string - Business
Phone string - External
Metadata string
- business_
address string - business_
email string - business_
name string - business_
phone string - external_
metadata string
- business
Address String - business
Email String - business
Name String - business
Phone String - external
Metadata String
- business
Address string - business
Email string - business
Name string - business
Phone string - external
Metadata string
- business_
address str - business_
email str - business_
name str - business_
phone str - external_
metadata str
- business
Address String - business
Email String - business
Name String - business
Phone String - external
Metadata String
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflareTerraform Provider.
published on Thursday, Nov 12, 2026 by Pulumi