1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. Organization
Cloudflare v6.11.0 published on Friday, Oct 31, 2025 by Pulumi

cloudflare.Organization

Get Started
cloudflare logo
Cloudflare v6.11.0 published on Friday, Oct 31, 2025 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleOrganization = new cloudflare.Organization("example_organization", {
        name: "name",
        parent: {
            id: "a7b9c3d2e8f4g1h5i6j0k9l2m3n7o4p8",
        },
        profile: {
            businessAddress: "business_address",
            businessEmail: "business_email",
            businessName: "business_name",
            businessPhone: "business_phone",
            externalMetadata: "external_metadata",
        },
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_organization = cloudflare.Organization("example_organization",
        name="name",
        parent={
            "id": "a7b9c3d2e8f4g1h5i6j0k9l2m3n7o4p8",
        },
        profile={
            "business_address": "business_address",
            "business_email": "business_email",
            "business_name": "business_name",
            "business_phone": "business_phone",
            "external_metadata": "external_metadata",
        })
    
    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.NewOrganization(ctx, "example_organization", &cloudflare.OrganizationArgs{
    			Name: pulumi.String("name"),
    			Parent: &cloudflare.OrganizationParentArgs{
    				Id: pulumi.String("a7b9c3d2e8f4g1h5i6j0k9l2m3n7o4p8"),
    			},
    			Profile: &cloudflare.OrganizationProfileTypeArgs{
    				BusinessAddress:  pulumi.String("business_address"),
    				BusinessEmail:    pulumi.String("business_email"),
    				BusinessName:     pulumi.String("business_name"),
    				BusinessPhone:    pulumi.String("business_phone"),
    				ExternalMetadata: pulumi.String("external_metadata"),
    			},
    		})
    		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 = new Cloudflare.Organization("example_organization", new()
        {
            Name = "name",
            Parent = new Cloudflare.Inputs.OrganizationParentArgs
            {
                Id = "a7b9c3d2e8f4g1h5i6j0k9l2m3n7o4p8",
            },
            Profile = new Cloudflare.Inputs.OrganizationProfileArgs
            {
                BusinessAddress = "business_address",
                BusinessEmail = "business_email",
                BusinessName = "business_name",
                BusinessPhone = "business_phone",
                ExternalMetadata = "external_metadata",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudflare.Organization;
    import com.pulumi.cloudflare.OrganizationArgs;
    import com.pulumi.cloudflare.inputs.OrganizationParentArgs;
    import com.pulumi.cloudflare.inputs.OrganizationProfileArgs;
    import java.util.List;
    import java.util.ArrayList;
    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) {
            var exampleOrganization = new Organization("exampleOrganization", OrganizationArgs.builder()
                .name("name")
                .parent(OrganizationParentArgs.builder()
                    .id("a7b9c3d2e8f4g1h5i6j0k9l2m3n7o4p8")
                    .build())
                .profile(OrganizationProfileArgs.builder()
                    .businessAddress("business_address")
                    .businessEmail("business_email")
                    .businessName("business_name")
                    .businessPhone("business_phone")
                    .externalMetadata("external_metadata")
                    .build())
                .build());
    
        }
    }
    
    resources:
      exampleOrganization:
        type: cloudflare:Organization
        name: example_organization
        properties:
          name: name
          parent:
            id: a7b9c3d2e8f4g1h5i6j0k9l2m3n7o4p8
          profile:
            businessAddress: business_address
            businessEmail: business_email
            businessName: business_name
            businessPhone: business_phone
            externalMetadata: external_metadata
    

    Create Organization Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Organization(name: string, args: OrganizationArgs, opts?: CustomResourceOptions);
    @overload
    def Organization(resource_name: str,
                     args: OrganizationArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def Organization(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     name: Optional[str] = None,
                     parent: Optional[OrganizationParentArgs] = None,
                     profile: Optional[OrganizationProfileArgs] = None)
    func NewOrganization(ctx *Context, name string, args OrganizationArgs, opts ...ResourceOption) (*Organization, error)
    public Organization(string name, OrganizationArgs args, CustomResourceOptions? opts = null)
    public Organization(String name, OrganizationArgs args)
    public Organization(String name, OrganizationArgs args, CustomResourceOptions options)
    
    type: cloudflare:Organization
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args OrganizationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args OrganizationArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args OrganizationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args OrganizationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args OrganizationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var organizationResource = new Cloudflare.Organization("organizationResource", new()
    {
        Name = "string",
        Parent = new Cloudflare.Inputs.OrganizationParentArgs
        {
            Id = "string",
            Name = "string",
        },
        Profile = new Cloudflare.Inputs.OrganizationProfileArgs
        {
            BusinessAddress = "string",
            BusinessEmail = "string",
            BusinessName = "string",
            BusinessPhone = "string",
            ExternalMetadata = "string",
        },
    });
    
    example, err := cloudflare.NewOrganization(ctx, "organizationResource", &cloudflare.OrganizationArgs{
    	Name: pulumi.String("string"),
    	Parent: &cloudflare.OrganizationParentArgs{
    		Id:   pulumi.String("string"),
    		Name: pulumi.String("string"),
    	},
    	Profile: &cloudflare.OrganizationProfileTypeArgs{
    		BusinessAddress:  pulumi.String("string"),
    		BusinessEmail:    pulumi.String("string"),
    		BusinessName:     pulumi.String("string"),
    		BusinessPhone:    pulumi.String("string"),
    		ExternalMetadata: pulumi.String("string"),
    	},
    })
    
    var organizationResource = new Organization("organizationResource", OrganizationArgs.builder()
        .name("string")
        .parent(OrganizationParentArgs.builder()
            .id("string")
            .name("string")
            .build())
        .profile(OrganizationProfileArgs.builder()
            .businessAddress("string")
            .businessEmail("string")
            .businessName("string")
            .businessPhone("string")
            .externalMetadata("string")
            .build())
        .build());
    
    organization_resource = cloudflare.Organization("organizationResource",
        name="string",
        parent={
            "id": "string",
            "name": "string",
        },
        profile={
            "business_address": "string",
            "business_email": "string",
            "business_name": "string",
            "business_phone": "string",
            "external_metadata": "string",
        })
    
    const organizationResource = new cloudflare.Organization("organizationResource", {
        name: "string",
        parent: {
            id: "string",
            name: "string",
        },
        profile: {
            businessAddress: "string",
            businessEmail: "string",
            businessName: "string",
            businessPhone: "string",
            externalMetadata: "string",
        },
    });
    
    type: cloudflare:Organization
    properties:
        name: string
        parent:
            id: string
            name: string
        profile:
            businessAddress: string
            businessEmail: string
            businessName: string
            businessPhone: string
            externalMetadata: string
    

    Organization Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Organization resource accepts the following input properties:

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Organization resource produces the following output properties:

    CreateTime string
    Id string
    The provider-assigned unique ID for this managed resource.
    Meta OrganizationMeta
    CreateTime string
    Id string
    The provider-assigned unique ID for this managed resource.
    Meta OrganizationMeta
    createTime String
    id String
    The provider-assigned unique ID for this managed resource.
    meta OrganizationMeta
    createTime string
    id string
    The provider-assigned unique ID for this managed resource.
    meta OrganizationMeta
    create_time str
    id str
    The provider-assigned unique ID for this managed resource.
    meta OrganizationMeta
    createTime String
    id String
    The provider-assigned unique ID for this managed resource.
    meta Property Map

    Look up Existing Organization Resource

    Get an existing Organization resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: OrganizationState, opts?: CustomResourceOptions): Organization
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            create_time: Optional[str] = None,
            meta: Optional[OrganizationMetaArgs] = None,
            name: Optional[str] = None,
            parent: Optional[OrganizationParentArgs] = None,
            profile: Optional[OrganizationProfileArgs] = None) -> Organization
    func GetOrganization(ctx *Context, name string, id IDInput, state *OrganizationState, opts ...ResourceOption) (*Organization, error)
    public static Organization Get(string name, Input<string> id, OrganizationState? state, CustomResourceOptions? opts = null)
    public static Organization get(String name, Output<String> id, OrganizationState state, CustomResourceOptions options)
    resources:  _:    type: cloudflare:Organization    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.

    Supporting Types

    OrganizationMeta, OrganizationMetaArgs

    Flags OrganizationMetaFlags
    Enable features for Organizations.
    ManagedBy string
    Flags OrganizationMetaFlags
    Enable features for Organizations.
    ManagedBy string
    flags OrganizationMetaFlags
    Enable features for Organizations.
    managedBy String
    flags OrganizationMetaFlags
    Enable features for Organizations.
    managedBy string
    flags OrganizationMetaFlags
    Enable features for Organizations.
    managed_by str
    flags Property Map
    Enable features for Organizations.
    managedBy String

    OrganizationMetaFlags, OrganizationMetaFlagsArgs

    OrganizationParent, OrganizationParentArgs

    Id string
    Name string
    Id string
    Name string
    id String
    name String
    id string
    name string
    id str
    name str
    id String
    name String

    OrganizationProfile, OrganizationProfileArgs

    Import

    $ pulumi import cloudflare:index/organization:Organization example '<organization_id>'
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Cloudflare pulumi/pulumi-cloudflare
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the cloudflare Terraform Provider.
    cloudflare logo
    Cloudflare v6.11.0 published on Friday, Oct 31, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate