1. Packages
  2. Volcengine
  3. API Docs
  4. organization
  5. getOrganizations
Volcengine v0.0.31 published on Monday, May 12, 2025 by Volcengine

volcengine.organization.getOrganizations

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.31 published on Monday, May 12, 2025 by Volcengine

    Use this data source to query detailed information of organizations

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    
    const foo = volcengine.organization.getOrganizations({});
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo = volcengine.organization.get_organizations()
    
    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.GetOrganizations(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = Volcengine.Organization.GetOrganizations.Invoke();
    
    });
    
    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.GetOrganizationsArgs;
    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.getOrganizations();
    
        }
    }
    
    variables:
      foo:
        fn::invoke:
          Function: volcengine:organization:getOrganizations
          Arguments: {}
    

    Using getOrganizations

    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 getOrganizations(args: GetOrganizationsArgs, opts?: InvokeOptions): Promise<GetOrganizationsResult>
    function getOrganizationsOutput(args: GetOrganizationsOutputArgs, opts?: InvokeOptions): Output<GetOrganizationsResult>
    def get_organizations(name_regex: Optional[str] = None,
                          output_file: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetOrganizationsResult
    def get_organizations_output(name_regex: Optional[pulumi.Input[str]] = None,
                          output_file: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetOrganizationsResult]
    func GetOrganizations(ctx *Context, args *GetOrganizationsArgs, opts ...InvokeOption) (*GetOrganizationsResult, error)
    func GetOrganizationsOutput(ctx *Context, args *GetOrganizationsOutputArgs, opts ...InvokeOption) GetOrganizationsResultOutput

    > Note: This function is named GetOrganizations in the Go SDK.

    public static class GetOrganizations 
    {
        public static Task<GetOrganizationsResult> InvokeAsync(GetOrganizationsArgs args, InvokeOptions? opts = null)
        public static Output<GetOrganizationsResult> Invoke(GetOrganizationsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetOrganizationsResult> getOrganizations(GetOrganizationsArgs args, InvokeOptions options)
    public static Output<GetOrganizationsResult> getOrganizations(GetOrganizationsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: volcengine:organization/getOrganizations:getOrganizations
      arguments:
        # arguments dictionary

    The following arguments are supported:

    NameRegex string
    A Name Regex of Resource.
    OutputFile string
    File name where to save data source results.
    NameRegex string
    A Name Regex of Resource.
    OutputFile string
    File name where to save data source results.
    nameRegex String
    A Name Regex of Resource.
    outputFile String
    File name where to save data source results.
    nameRegex string
    A Name Regex of Resource.
    outputFile string
    File name where to save data source results.
    name_regex str
    A Name Regex of Resource.
    output_file str
    File name where to save data source results.
    nameRegex String
    A Name Regex of Resource.
    outputFile String
    File name where to save data source results.

    getOrganizations Result

    The following output properties are available:

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

    Supporting Types

    GetOrganizationsOrganization

    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 id 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.
    Id string
    The id 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.
    id String
    The id 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.
    id string
    The id 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.
    id str
    The id 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.
    id String
    The id 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.

    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.31 published on Monday, May 12, 2025 by Volcengine