published on Thursday, Apr 23, 2026 by Volcengine
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)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.
- Parent
Id string - Parent unit ID.
- Description string
- Description.
- Name string
- Organizational unit name.
- Parent
Id string - Parent unit ID.
- Description string
- Description.
- name String
- Organizational unit name.
- parent
Id String - Parent unit ID.
- description String
- Description.
- name string
- Organizational unit name.
- parent
Id 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.
- parent
Id 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:
- Created
Time string - Creation time.
- Delete
Uk string - Deletion flag.
- Deleted
Time string - Deletion time.
- Depth int
- Depth.
- Id string
- The provider-assigned unique ID for this managed resource.
- Org
Id string - Organization ID.
- Org
Type int - Organization type. Enterprise organization: 1
- Org
Unit stringId - Organizational unit ID.
- Owner string
- Administrator ID.
- Updated
Time string - Update time.
- Created
Time string - Creation time.
- Delete
Uk string - Deletion flag.
- Deleted
Time string - Deletion time.
- Depth int
- Depth.
- Id string
- The provider-assigned unique ID for this managed resource.
- Org
Id string - Organization ID.
- Org
Type int - Organization type. Enterprise organization: 1
- Org
Unit stringId - Organizational unit ID.
- Owner string
- Administrator ID.
- Updated
Time string - Update time.
- created
Time String - Creation time.
- delete
Uk String - Deletion flag.
- deleted
Time String - Deletion time.
- depth Integer
- Depth.
- id String
- The provider-assigned unique ID for this managed resource.
- org
Id String - Organization ID.
- org
Type Integer - Organization type. Enterprise organization: 1
- org
Unit StringId - Organizational unit ID.
- owner String
- Administrator ID.
- updated
Time String - Update time.
- created
Time string - Creation time.
- delete
Uk string - Deletion flag.
- deleted
Time string - Deletion time.
- depth number
- Depth.
- id string
- The provider-assigned unique ID for this managed resource.
- org
Id string - Organization ID.
- org
Type number - Organization type. Enterprise organization: 1
- org
Unit stringId - Organizational unit ID.
- owner string
- Administrator ID.
- updated
Time 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_ strid - Organizational unit ID.
- owner str
- Administrator ID.
- updated_
time str - Update time.
- created
Time String - Creation time.
- delete
Uk String - Deletion flag.
- deleted
Time String - Deletion time.
- depth Number
- Depth.
- id String
- The provider-assigned unique ID for this managed resource.
- org
Id String - Organization ID.
- org
Type Number - Organization type. Enterprise organization: 1
- org
Unit StringId - Organizational unit ID.
- owner String
- Administrator ID.
- updated
Time 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) -> Unitfunc 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.
- Created
Time string - Creation time.
- Delete
Uk string - Deletion flag.
- Deleted
Time string - Deletion time.
- Depth int
- Depth.
- Description string
- Description.
- Name string
- Organizational unit name.
- Org
Id string - Organization ID.
- Org
Type int - Organization type. Enterprise organization: 1
- Org
Unit stringId - Organizational unit ID.
- Owner string
- Administrator ID.
- Parent
Id string - Parent unit ID.
- Updated
Time string - Update time.
- Created
Time string - Creation time.
- Delete
Uk string - Deletion flag.
- Deleted
Time string - Deletion time.
- Depth int
- Depth.
- Description string
- Description.
- Name string
- Organizational unit name.
- Org
Id string - Organization ID.
- Org
Type int - Organization type. Enterprise organization: 1
- Org
Unit stringId - Organizational unit ID.
- Owner string
- Administrator ID.
- Parent
Id string - Parent unit ID.
- Updated
Time string - Update time.
- created
Time String - Creation time.
- delete
Uk String - Deletion flag.
- deleted
Time String - Deletion time.
- depth Integer
- Depth.
- description String
- Description.
- name String
- Organizational unit name.
- org
Id String - Organization ID.
- org
Type Integer - Organization type. Enterprise organization: 1
- org
Unit StringId - Organizational unit ID.
- owner String
- Administrator ID.
- parent
Id String - Parent unit ID.
- updated
Time String - Update time.
- created
Time string - Creation time.
- delete
Uk string - Deletion flag.
- deleted
Time string - Deletion time.
- depth number
- Depth.
- description string
- Description.
- name string
- Organizational unit name.
- org
Id string - Organization ID.
- org
Type number - Organization type. Enterprise organization: 1
- org
Unit stringId - Organizational unit ID.
- owner string
- Administrator ID.
- parent
Id string - Parent unit ID.
- updated
Time 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_ strid - Organizational unit ID.
- owner str
- Administrator ID.
- parent_
id str - Parent unit ID.
- updated_
time str - Update time.
- created
Time String - Creation time.
- delete
Uk String - Deletion flag.
- deleted
Time String - Deletion time.
- depth Number
- Depth.
- description String
- Description.
- name String
- Organizational unit name.
- org
Id String - Organization ID.
- org
Type Number - Organization type. Enterprise organization: 1
- org
Unit StringId - Organizational unit ID.
- owner String
- Administrator ID.
- parent
Id String - Parent unit ID.
- updated
Time 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
volcengineccTerraform Provider.
published on Thursday, Apr 23, 2026 by Volcengine
