1. Packages
  2. Volcengine
  3. API Docs
  4. organization
  5. Organization
Volcengine v0.0.25 published on Tuesday, Jul 2, 2024 by Volcengine

volcengine.organization.Organization

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.25 published on Tuesday, Jul 2, 2024 by Volcengine

    Provides a resource to manage organization

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = new Volcengine.Organization.Organization("foo");
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/organization"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := organization.NewOrganization(ctx, "foo", nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.volcengine.organization.Organization;
    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 foo = new Organization("foo");
    
        }
    }
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo = volcengine.organization.Organization("foo")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@volcengine/pulumi";
    
    const foo = new volcengine.organization.Organization("foo", {});
    
    resources:
      foo:
        type: volcengine:organization:Organization
    

    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: Optional[OrganizationArgs] = None,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def Organization(resource_name: str,
                     opts: Optional[ResourceOptions] = None)
    func NewOrganization(ctx *Context, name string, args *OrganizationArgs, opts ...ResourceOption) (*Organization, error)
    public Organization(string name, OrganizationArgs? args = null, CustomResourceOptions? opts = null)
    public Organization(String name, OrganizationArgs args)
    public Organization(String name, OrganizationArgs args, CustomResourceOptions options)
    
    type: volcengine:organization: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 Volcengine.Organization.Organization("organizationResource");
    
    example, err := organization.NewOrganization(ctx, "organizationResource", nil)
    
    var organizationResource = new Organization("organizationResource");
    
    organization_resource = volcengine.organization.Organization("organizationResource")
    
    const organizationResource = new volcengine.organization.Organization("organizationResource", {});
    
    type: volcengine:organization:Organization
    properties: {}
    

    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

    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:

    AccountId int
    The account id of the organization owner.
    AccountName string
    The account name of the organization owner.
    CreatedTime string
    The created time of the organization.
    DeleteUk string
    The delete uk of the organization.
    DeletedTime string
    The deleted time of the organization.
    Description string
    The description of the organization.
    Id string
    The provider-assigned unique ID for this managed resource.
    MainName string
    The main name of the organization owner.
    Name string
    The name of the organization.
    Owner string
    The owner id of the organization.
    Status int
    The status of the organization.
    Type int
    The type of the organization.
    UpdatedTime string
    The updated time of the organization.
    AccountId int
    The account id of the organization owner.
    AccountName string
    The account name of the organization owner.
    CreatedTime string
    The created time of the organization.
    DeleteUk string
    The delete uk of the organization.
    DeletedTime string
    The deleted time of the organization.
    Description string
    The description of the organization.
    Id string
    The provider-assigned unique ID for this managed resource.
    MainName string
    The main name of the organization owner.
    Name string
    The name of the organization.
    Owner string
    The owner id of the organization.
    Status int
    The status of the organization.
    Type int
    The type of the organization.
    UpdatedTime string
    The updated time of the organization.
    accountId Integer
    The account id of the organization owner.
    accountName String
    The account name of the organization owner.
    createdTime String
    The created time of the organization.
    deleteUk String
    The delete uk of the organization.
    deletedTime String
    The deleted time of the organization.
    description String
    The description of the organization.
    id String
    The provider-assigned unique ID for this managed resource.
    mainName String
    The main name of the organization owner.
    name String
    The name of the organization.
    owner String
    The owner id of the organization.
    status Integer
    The status of the organization.
    type Integer
    The type of the organization.
    updatedTime String
    The updated time of the organization.
    accountId number
    The account id of the organization owner.
    accountName string
    The account name of the organization owner.
    createdTime string
    The created time of the organization.
    deleteUk string
    The delete uk of the organization.
    deletedTime string
    The deleted time of the organization.
    description string
    The description of the organization.
    id string
    The provider-assigned unique ID for this managed resource.
    mainName string
    The main name of the organization owner.
    name string
    The name of the organization.
    owner string
    The owner id of the organization.
    status number
    The status of the organization.
    type number
    The type of the organization.
    updatedTime string
    The updated time of the organization.
    account_id int
    The account id of the organization owner.
    account_name str
    The account name of the organization owner.
    created_time str
    The created time of the organization.
    delete_uk str
    The delete uk of the organization.
    deleted_time str
    The deleted time of the organization.
    description str
    The description of the organization.
    id str
    The provider-assigned unique ID for this managed resource.
    main_name str
    The main name of the organization owner.
    name str
    The name of the organization.
    owner str
    The owner id of the organization.
    status int
    The status of the organization.
    type int
    The type of the organization.
    updated_time str
    The updated time of the organization.
    accountId Number
    The account id of the organization owner.
    accountName String
    The account name of the organization owner.
    createdTime String
    The created time of the organization.
    deleteUk String
    The delete uk of the organization.
    deletedTime String
    The deleted time of the organization.
    description String
    The description of the organization.
    id String
    The provider-assigned unique ID for this managed resource.
    mainName String
    The main name of the organization owner.
    name String
    The name of the organization.
    owner String
    The owner id of the organization.
    status Number
    The status of the organization.
    type Number
    The type of the organization.
    updatedTime String
    The updated time of the organization.

    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,
            account_id: Optional[int] = None,
            account_name: Optional[str] = None,
            created_time: Optional[str] = None,
            delete_uk: Optional[str] = None,
            deleted_time: Optional[str] = None,
            description: Optional[str] = None,
            main_name: Optional[str] = None,
            name: Optional[str] = None,
            owner: Optional[str] = None,
            status: Optional[int] = None,
            type: Optional[int] = None,
            updated_time: Optional[str] = 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)
    Resource lookup is not supported in YAML
    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:
    AccountId int
    The account id of the organization owner.
    AccountName string
    The account name of the organization owner.
    CreatedTime string
    The created time of the organization.
    DeleteUk string
    The delete uk of the organization.
    DeletedTime string
    The deleted time of the organization.
    Description string
    The description of the organization.
    MainName string
    The main name of the organization owner.
    Name string
    The name of the organization.
    Owner string
    The owner id of the organization.
    Status int
    The status of the organization.
    Type int
    The type of the organization.
    UpdatedTime string
    The updated time of the organization.
    AccountId int
    The account id of the organization owner.
    AccountName string
    The account name of the organization owner.
    CreatedTime string
    The created time of the organization.
    DeleteUk string
    The delete uk of the organization.
    DeletedTime string
    The deleted time of the organization.
    Description string
    The description of the organization.
    MainName string
    The main name of the organization owner.
    Name string
    The name of the organization.
    Owner string
    The owner id of the organization.
    Status int
    The status of the organization.
    Type int
    The type of the organization.
    UpdatedTime string
    The updated time of the organization.
    accountId Integer
    The account id of the organization owner.
    accountName String
    The account name of the organization owner.
    createdTime String
    The created time of the organization.
    deleteUk String
    The delete uk of the organization.
    deletedTime String
    The deleted time of the organization.
    description String
    The description of the organization.
    mainName String
    The main name of the organization owner.
    name String
    The name of the organization.
    owner String
    The owner id of the organization.
    status Integer
    The status of the organization.
    type Integer
    The type of the organization.
    updatedTime String
    The updated time of the organization.
    accountId number
    The account id of the organization owner.
    accountName string
    The account name of the organization owner.
    createdTime string
    The created time of the organization.
    deleteUk string
    The delete uk of the organization.
    deletedTime string
    The deleted time of the organization.
    description string
    The description of the organization.
    mainName string
    The main name of the organization owner.
    name string
    The name of the organization.
    owner string
    The owner id of the organization.
    status number
    The status of the organization.
    type number
    The type of the organization.
    updatedTime string
    The updated time of the organization.
    account_id int
    The account id of the organization owner.
    account_name str
    The account name of the organization owner.
    created_time str
    The created time of the organization.
    delete_uk str
    The delete uk of the organization.
    deleted_time str
    The deleted time of the organization.
    description str
    The description of the organization.
    main_name str
    The main name of the organization owner.
    name str
    The name of the organization.
    owner str
    The owner id of the organization.
    status int
    The status of the organization.
    type int
    The type of the organization.
    updated_time str
    The updated time of the organization.
    accountId Number
    The account id of the organization owner.
    accountName String
    The account name of the organization owner.
    createdTime String
    The created time of the organization.
    deleteUk String
    The delete uk of the organization.
    deletedTime String
    The deleted time of the organization.
    description String
    The description of the organization.
    mainName String
    The main name of the organization owner.
    name String
    The name of the organization.
    owner String
    The owner id of the organization.
    status Number
    The status of the organization.
    type Number
    The type of the organization.
    updatedTime String
    The updated time of the organization.

    Import

    Organization can be imported using the id, e.g.

     $ pulumi import volcengine:organization/organization:Organization default resource_id
    

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

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.25 published on Tuesday, Jul 2, 2024 by Volcengine