1. Packages
  2. Packages
  3. Volcenginecc Provider
  4. API Docs
  5. organization
  6. Unit
Viewing docs for volcenginecc v0.0.32
published on Thursday, Apr 23, 2026 by Volcengine
volcenginecc logo
Viewing docs for volcenginecc v0.0.32
published on Thursday, Apr 23, 2026 by Volcengine

    The administrator account that created the enterprise organization can create organizational units to build the enterprise’s organizational structure and manage accounts by organizational unit. Organizational units can have multiple hierarchical levels, and administrator accounts can belong to any organizational unit node at any level.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as volcenginecc from "@volcengine/pulumi-volcenginecc";
    
    const organizationUnitDemo = new volcenginecc.organization.Unit("OrganizationUnitDemo", {
        parentId: "735281472xxxx3651635",
        name: "OrganizationUnitDemo",
        description: "OrganizationUnitDemo description",
    });
    
    import pulumi
    import pulumi_volcenginecc as volcenginecc
    
    organization_unit_demo = volcenginecc.organization.Unit("OrganizationUnitDemo",
        parent_id="735281472xxxx3651635",
        name="OrganizationUnitDemo",
        description="OrganizationUnitDemo description")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcenginecc/sdk/go/volcenginecc/organization"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := organization.NewUnit(ctx, "OrganizationUnitDemo", &organization.UnitArgs{
    			ParentId:    pulumi.String("735281472xxxx3651635"),
    			Name:        pulumi.String("OrganizationUnitDemo"),
    			Description: pulumi.String("OrganizationUnitDemo description"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcenginecc = Volcengine.Pulumi.Volcenginecc;
    
    return await Deployment.RunAsync(() => 
    {
        var organizationUnitDemo = new Volcenginecc.Organization.Unit("OrganizationUnitDemo", new()
        {
            ParentId = "735281472xxxx3651635",
            Name = "OrganizationUnitDemo",
            Description = "OrganizationUnitDemo description",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.volcengine.volcenginecc.organization.Unit;
    import com.volcengine.volcenginecc.organization.UnitArgs;
    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 organizationUnitDemo = new Unit("organizationUnitDemo", UnitArgs.builder()
                .parentId("735281472xxxx3651635")
                .name("OrganizationUnitDemo")
                .description("OrganizationUnitDemo description")
                .build());
    
        }
    }
    
    resources:
      organizationUnitDemo:
        type: volcenginecc:organization:Unit
        name: OrganizationUnitDemo
        properties:
          parentId: 735281472xxxx3651635
          name: OrganizationUnitDemo
          description: OrganizationUnitDemo description
    

    Create Unit Resource

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

    Constructor syntax

    new Unit(name: string, args: UnitArgs, opts?: CustomResourceOptions);
    @overload
    def Unit(resource_name: str,
             args: UnitArgs,
             opts: Optional[ResourceOptions] = None)
    
    @overload
    def Unit(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             name: Optional[str] = None,
             parent_id: Optional[str] = None,
             description: Optional[str] = None)
    func NewUnit(ctx *Context, name string, args UnitArgs, opts ...ResourceOption) (*Unit, error)
    public Unit(string name, UnitArgs args, CustomResourceOptions? opts = null)
    public Unit(String name, UnitArgs args)
    public Unit(String name, UnitArgs args, CustomResourceOptions options)
    
    type: volcenginecc:organization:Unit
    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 UnitArgs
    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 UnitArgs
    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 UnitArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args UnitArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args UnitArgs
    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 unitResource = new Volcenginecc.Organization.Unit("unitResource", new()
    {
        Name = "string",
        ParentId = "string",
        Description = "string",
    });
    
    example, err := organization.NewUnit(ctx, "unitResource", &organization.UnitArgs{
    	Name:        pulumi.String("string"),
    	ParentId:    pulumi.String("string"),
    	Description: pulumi.String("string"),
    })
    
    var unitResource = new Unit("unitResource", UnitArgs.builder()
        .name("string")
        .parentId("string")
        .description("string")
        .build());
    
    unit_resource = volcenginecc.organization.Unit("unitResource",
        name="string",
        parent_id="string",
        description="string")
    
    const unitResource = new volcenginecc.organization.Unit("unitResource", {
        name: "string",
        parentId: "string",
        description: "string",
    });
    
    type: volcenginecc:organization:Unit
    properties:
        description: string
        name: string
        parentId: string
    

    Unit 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 Unit resource accepts the following input properties:

    Name string
    Organizational unit name.
    ParentId string
    Parent unit ID.
    Description string
    Description.
    Name string
    Organizational unit name.
    ParentId string
    Parent unit ID.
    Description string
    Description.
    name String
    Organizational unit name.
    parentId String
    Parent unit ID.
    description String
    Description.
    name string
    Organizational unit name.
    parentId string
    Parent unit ID.
    description string
    Description.
    name str
    Organizational unit name.
    parent_id str
    Parent unit ID.
    description str
    Description.
    name String
    Organizational unit name.
    parentId String
    Parent unit ID.
    description String
    Description.

    Outputs

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

    CreatedTime string
    Creation time.
    DeleteUk string
    Deletion flag.
    DeletedTime string
    Deletion time.
    Depth int
    Depth.
    Id string
    The provider-assigned unique ID for this managed resource.
    OrgId string
    Organization ID.
    OrgType int
    Organization type. Enterprise organization: 1
    OrgUnitId string
    Organizational unit ID.
    Owner string
    Administrator ID.
    UpdatedTime string
    Update time.
    CreatedTime string
    Creation time.
    DeleteUk string
    Deletion flag.
    DeletedTime string
    Deletion time.
    Depth int
    Depth.
    Id string
    The provider-assigned unique ID for this managed resource.
    OrgId string
    Organization ID.
    OrgType int
    Organization type. Enterprise organization: 1
    OrgUnitId string
    Organizational unit ID.
    Owner string
    Administrator ID.
    UpdatedTime string
    Update time.
    createdTime String
    Creation time.
    deleteUk String
    Deletion flag.
    deletedTime String
    Deletion time.
    depth Integer
    Depth.
    id String
    The provider-assigned unique ID for this managed resource.
    orgId String
    Organization ID.
    orgType Integer
    Organization type. Enterprise organization: 1
    orgUnitId String
    Organizational unit ID.
    owner String
    Administrator ID.
    updatedTime String
    Update time.
    createdTime string
    Creation time.
    deleteUk string
    Deletion flag.
    deletedTime string
    Deletion time.
    depth number
    Depth.
    id string
    The provider-assigned unique ID for this managed resource.
    orgId string
    Organization ID.
    orgType number
    Organization type. Enterprise organization: 1
    orgUnitId string
    Organizational unit ID.
    owner string
    Administrator ID.
    updatedTime string
    Update time.
    created_time str
    Creation time.
    delete_uk str
    Deletion flag.
    deleted_time str
    Deletion time.
    depth int
    Depth.
    id str
    The provider-assigned unique ID for this managed resource.
    org_id str
    Organization ID.
    org_type int
    Organization type. Enterprise organization: 1
    org_unit_id str
    Organizational unit ID.
    owner str
    Administrator ID.
    updated_time str
    Update time.
    createdTime String
    Creation time.
    deleteUk String
    Deletion flag.
    deletedTime String
    Deletion time.
    depth Number
    Depth.
    id String
    The provider-assigned unique ID for this managed resource.
    orgId String
    Organization ID.
    orgType Number
    Organization type. Enterprise organization: 1
    orgUnitId String
    Organizational unit ID.
    owner String
    Administrator ID.
    updatedTime String
    Update time.

    Look up Existing Unit Resource

    Get an existing Unit 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?: UnitState, opts?: CustomResourceOptions): Unit
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            created_time: Optional[str] = None,
            delete_uk: Optional[str] = None,
            deleted_time: Optional[str] = None,
            depth: Optional[int] = None,
            description: Optional[str] = None,
            name: Optional[str] = None,
            org_id: Optional[str] = None,
            org_type: Optional[int] = None,
            org_unit_id: Optional[str] = None,
            owner: Optional[str] = None,
            parent_id: Optional[str] = None,
            updated_time: Optional[str] = None) -> Unit
    func GetUnit(ctx *Context, name string, id IDInput, state *UnitState, opts ...ResourceOption) (*Unit, error)
    public static Unit Get(string name, Input<string> id, UnitState? state, CustomResourceOptions? opts = null)
    public static Unit get(String name, Output<String> id, UnitState state, CustomResourceOptions options)
    resources:  _:    type: volcenginecc:organization:Unit    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.
    The following state arguments are supported:
    CreatedTime string
    Creation time.
    DeleteUk string
    Deletion flag.
    DeletedTime string
    Deletion time.
    Depth int
    Depth.
    Description string
    Description.
    Name string
    Organizational unit name.
    OrgId string
    Organization ID.
    OrgType int
    Organization type. Enterprise organization: 1
    OrgUnitId string
    Organizational unit ID.
    Owner string
    Administrator ID.
    ParentId string
    Parent unit ID.
    UpdatedTime string
    Update time.
    CreatedTime string
    Creation time.
    DeleteUk string
    Deletion flag.
    DeletedTime string
    Deletion time.
    Depth int
    Depth.
    Description string
    Description.
    Name string
    Organizational unit name.
    OrgId string
    Organization ID.
    OrgType int
    Organization type. Enterprise organization: 1
    OrgUnitId string
    Organizational unit ID.
    Owner string
    Administrator ID.
    ParentId string
    Parent unit ID.
    UpdatedTime string
    Update time.
    createdTime String
    Creation time.
    deleteUk String
    Deletion flag.
    deletedTime String
    Deletion time.
    depth Integer
    Depth.
    description String
    Description.
    name String
    Organizational unit name.
    orgId String
    Organization ID.
    orgType Integer
    Organization type. Enterprise organization: 1
    orgUnitId String
    Organizational unit ID.
    owner String
    Administrator ID.
    parentId String
    Parent unit ID.
    updatedTime String
    Update time.
    createdTime string
    Creation time.
    deleteUk string
    Deletion flag.
    deletedTime string
    Deletion time.
    depth number
    Depth.
    description string
    Description.
    name string
    Organizational unit name.
    orgId string
    Organization ID.
    orgType number
    Organization type. Enterprise organization: 1
    orgUnitId string
    Organizational unit ID.
    owner string
    Administrator ID.
    parentId string
    Parent unit ID.
    updatedTime string
    Update time.
    created_time str
    Creation time.
    delete_uk str
    Deletion flag.
    deleted_time str
    Deletion time.
    depth int
    Depth.
    description str
    Description.
    name str
    Organizational unit name.
    org_id str
    Organization ID.
    org_type int
    Organization type. Enterprise organization: 1
    org_unit_id str
    Organizational unit ID.
    owner str
    Administrator ID.
    parent_id str
    Parent unit ID.
    updated_time str
    Update time.
    createdTime String
    Creation time.
    deleteUk String
    Deletion flag.
    deletedTime String
    Deletion time.
    depth Number
    Depth.
    description String
    Description.
    name String
    Organizational unit name.
    orgId String
    Organization ID.
    orgType Number
    Organization type. Enterprise organization: 1
    orgUnitId String
    Organizational unit ID.
    owner String
    Administrator ID.
    parentId String
    Parent unit ID.
    updatedTime String
    Update time.

    Import

    $ pulumi import volcenginecc:organization/unit:Unit example "org_unit_id"
    

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

    Package Details

    Repository
    volcenginecc volcengine/pulumi-volcenginecc
    License
    MPL-2.0
    Notes
    This Pulumi package is based on the volcenginecc Terraform Provider.
    volcenginecc logo
    Viewing docs for volcenginecc v0.0.32
    published on Thursday, Apr 23, 2026 by Volcengine
      Try Pulumi Cloud free. Your team will thank you.