1. Packages
  2. Volcengine
  3. API Docs
  4. organization
  5. Units
Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine

volcengine.organization.Units

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine

    Use this data source to query detailed information of organization units

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = Volcengine.Organization.Units.Invoke();
    
    });
    
    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.Units(ctx, nil, 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.OrganizationFunctions;
    import com.pulumi.volcengine.organization.inputs.UnitsArgs;
    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) {
            final var foo = OrganizationFunctions.Units();
    
        }
    }
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo = volcengine.organization.units()
    
    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    
    const foo = volcengine.organization.Units({});
    
    variables:
      foo:
        fn::invoke:
          Function: volcengine:organization:Units
          Arguments: {}
    

    Using Units

    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 units(args: UnitsArgs, opts?: InvokeOptions): Promise<UnitsResult>
    function unitsOutput(args: UnitsOutputArgs, opts?: InvokeOptions): Output<UnitsResult>
    def units(output_file: Optional[str] = None,
              opts: Optional[InvokeOptions] = None) -> UnitsResult
    def units_output(output_file: Optional[pulumi.Input[str]] = None,
              opts: Optional[InvokeOptions] = None) -> Output[UnitsResult]
    func Units(ctx *Context, args *UnitsArgs, opts ...InvokeOption) (*UnitsResult, error)
    func UnitsOutput(ctx *Context, args *UnitsOutputArgs, opts ...InvokeOption) UnitsResultOutput
    public static class Units 
    {
        public static Task<UnitsResult> InvokeAsync(UnitsArgs args, InvokeOptions? opts = null)
        public static Output<UnitsResult> Invoke(UnitsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<UnitsResult> units(UnitsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: volcengine:organization:Units
      arguments:
        # arguments dictionary

    The following arguments are supported:

    OutputFile string
    File name where to save data source results.
    OutputFile string
    File name where to save data source results.
    outputFile String
    File name where to save data source results.
    outputFile string
    File name where to save data source results.
    output_file str
    File name where to save data source results.
    outputFile String
    File name where to save data source results.

    Units Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    TotalCount int
    The total count of query.
    Units List<UnitsUnit>
    The collection of query.
    OutputFile string
    Id string
    The provider-assigned unique ID for this managed resource.
    TotalCount int
    The total count of query.
    Units []UnitsUnit
    The collection of query.
    OutputFile string
    id String
    The provider-assigned unique ID for this managed resource.
    totalCount Integer
    The total count of query.
    units List<UnitsUnit>
    The collection of query.
    outputFile String
    id string
    The provider-assigned unique ID for this managed resource.
    totalCount number
    The total count of query.
    units UnitsUnit[]
    The collection of query.
    outputFile string
    id str
    The provider-assigned unique ID for this managed resource.
    total_count int
    The total count of query.
    units Sequence[UnitsUnit]
    The collection of query.
    output_file str
    id String
    The provider-assigned unique ID for this managed resource.
    totalCount Number
    The total count of query.
    units List<Property Map>
    The collection of query.
    outputFile String

    Supporting Types

    UnitsUnit

    CreatedTime string
    The created time of the organization unit.
    DeleteUk string
    Delete marker.
    DeletedTime string
    The deleted time of the organization unit.
    Depth int
    The depth of the organization unit.
    Description string
    The description of the organization unit.
    Id string
    The id of the organization unit.
    Name string
    The name of the organization unit.
    OrgId string
    The id of the organization.
    OrgType int
    The organization type.
    Owner string
    The owner of the organization unit.
    ParentId string
    Parent Unit ID.
    UpdatedTime string
    The updated time of the organization unit.
    CreatedTime string
    The created time of the organization unit.
    DeleteUk string
    Delete marker.
    DeletedTime string
    The deleted time of the organization unit.
    Depth int
    The depth of the organization unit.
    Description string
    The description of the organization unit.
    Id string
    The id of the organization unit.
    Name string
    The name of the organization unit.
    OrgId string
    The id of the organization.
    OrgType int
    The organization type.
    Owner string
    The owner of the organization unit.
    ParentId string
    Parent Unit ID.
    UpdatedTime string
    The updated time of the organization unit.
    createdTime String
    The created time of the organization unit.
    deleteUk String
    Delete marker.
    deletedTime String
    The deleted time of the organization unit.
    depth Integer
    The depth of the organization unit.
    description String
    The description of the organization unit.
    id String
    The id of the organization unit.
    name String
    The name of the organization unit.
    orgId String
    The id of the organization.
    orgType Integer
    The organization type.
    owner String
    The owner of the organization unit.
    parentId String
    Parent Unit ID.
    updatedTime String
    The updated time of the organization unit.
    createdTime string
    The created time of the organization unit.
    deleteUk string
    Delete marker.
    deletedTime string
    The deleted time of the organization unit.
    depth number
    The depth of the organization unit.
    description string
    The description of the organization unit.
    id string
    The id of the organization unit.
    name string
    The name of the organization unit.
    orgId string
    The id of the organization.
    orgType number
    The organization type.
    owner string
    The owner of the organization unit.
    parentId string
    Parent Unit ID.
    updatedTime string
    The updated time of the organization unit.
    created_time str
    The created time of the organization unit.
    delete_uk str
    Delete marker.
    deleted_time str
    The deleted time of the organization unit.
    depth int
    The depth of the organization unit.
    description str
    The description of the organization unit.
    id str
    The id of the organization unit.
    name str
    The name of the organization unit.
    org_id str
    The id of the organization.
    org_type int
    The organization type.
    owner str
    The owner of the organization unit.
    parent_id str
    Parent Unit ID.
    updated_time str
    The updated time of the organization unit.
    createdTime String
    The created time of the organization unit.
    deleteUk String
    Delete marker.
    deletedTime String
    The deleted time of the organization unit.
    depth Number
    The depth of the organization unit.
    description String
    The description of the organization unit.
    id String
    The id of the organization unit.
    name String
    The name of the organization unit.
    orgId String
    The id of the organization.
    orgType Number
    The organization type.
    owner String
    The owner of the organization unit.
    parentId String
    Parent Unit ID.
    updatedTime String
    The updated time of the organization unit.

    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.24 published on Tuesday, Jun 25, 2024 by Volcengine