1. Packages
  2. Volcengine
  3. API Docs
  4. organization
  5. Accounts
Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine

volcengine.organization.Accounts

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine

    Use this data source to query detailed information of organization accounts

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = Volcengine.Organization.Accounts.Invoke(new()
        {
            Search = "210061****",
        });
    
    });
    
    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.Accounts(ctx, &organization.AccountsArgs{
    			Search: pulumi.StringRef("210061****"),
    		}, 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.AccountsArgs;
    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.Accounts(AccountsArgs.builder()
                .search("210061****")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo = volcengine.organization.accounts(search="210061****")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    
    const foo = volcengine.organization.Accounts({
        search: "210061****",
    });
    
    variables:
      foo:
        fn::invoke:
          Function: volcengine:organization:Accounts
          Arguments:
            search: 210061****
    

    Using Accounts

    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 accounts(args: AccountsArgs, opts?: InvokeOptions): Promise<AccountsResult>
    function accountsOutput(args: AccountsOutputArgs, opts?: InvokeOptions): Output<AccountsResult>
    def accounts(name_regex: Optional[str] = None,
                 org_unit_id: Optional[str] = None,
                 output_file: Optional[str] = None,
                 search: Optional[str] = None,
                 verification_id: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> AccountsResult
    def accounts_output(name_regex: Optional[pulumi.Input[str]] = None,
                 org_unit_id: Optional[pulumi.Input[str]] = None,
                 output_file: Optional[pulumi.Input[str]] = None,
                 search: Optional[pulumi.Input[str]] = None,
                 verification_id: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[AccountsResult]
    func Accounts(ctx *Context, args *AccountsArgs, opts ...InvokeOption) (*AccountsResult, error)
    func AccountsOutput(ctx *Context, args *AccountsOutputArgs, opts ...InvokeOption) AccountsResultOutput
    public static class Accounts 
    {
        public static Task<AccountsResult> InvokeAsync(AccountsArgs args, InvokeOptions? opts = null)
        public static Output<AccountsResult> Invoke(AccountsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<AccountsResult> accounts(AccountsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: volcengine:organization:Accounts
      arguments:
        # arguments dictionary

    The following arguments are supported:

    NameRegex string
    A Name Regex of Resource.
    OrgUnitId string
    The id of the organization unit.
    OutputFile string
    File name where to save data source results.
    Search string
    The id or the show name of the account. This field supports fuzzy query.
    VerificationId string
    The id of the verification.
    NameRegex string
    A Name Regex of Resource.
    OrgUnitId string
    The id of the organization unit.
    OutputFile string
    File name where to save data source results.
    Search string
    The id or the show name of the account. This field supports fuzzy query.
    VerificationId string
    The id of the verification.
    nameRegex String
    A Name Regex of Resource.
    orgUnitId String
    The id of the organization unit.
    outputFile String
    File name where to save data source results.
    search String
    The id or the show name of the account. This field supports fuzzy query.
    verificationId String
    The id of the verification.
    nameRegex string
    A Name Regex of Resource.
    orgUnitId string
    The id of the organization unit.
    outputFile string
    File name where to save data source results.
    search string
    The id or the show name of the account. This field supports fuzzy query.
    verificationId string
    The id of the verification.
    name_regex str
    A Name Regex of Resource.
    org_unit_id str
    The id of the organization unit.
    output_file str
    File name where to save data source results.
    search str
    The id or the show name of the account. This field supports fuzzy query.
    verification_id str
    The id of the verification.
    nameRegex String
    A Name Regex of Resource.
    orgUnitId String
    The id of the organization unit.
    outputFile String
    File name where to save data source results.
    search String
    The id or the show name of the account. This field supports fuzzy query.
    verificationId String
    The id of the verification.

    Accounts Result

    The following output properties are available:

    Accounts List<AccountsAccount>
    The collection of query.
    Id string
    The provider-assigned unique ID for this managed resource.
    TotalCount int
    The total count of query.
    NameRegex string
    OrgUnitId string
    The id of the organization unit.
    OutputFile string
    Search string
    VerificationId string
    Accounts []AccountsAccount
    The collection of query.
    Id string
    The provider-assigned unique ID for this managed resource.
    TotalCount int
    The total count of query.
    NameRegex string
    OrgUnitId string
    The id of the organization unit.
    OutputFile string
    Search string
    VerificationId string
    accounts List<AccountsAccount>
    The collection of query.
    id String
    The provider-assigned unique ID for this managed resource.
    totalCount Integer
    The total count of query.
    nameRegex String
    orgUnitId String
    The id of the organization unit.
    outputFile String
    search String
    verificationId String
    accounts AccountsAccount[]
    The collection of query.
    id string
    The provider-assigned unique ID for this managed resource.
    totalCount number
    The total count of query.
    nameRegex string
    orgUnitId string
    The id of the organization unit.
    outputFile string
    search string
    verificationId string
    accounts Sequence[AccountsAccount]
    The collection of query.
    id str
    The provider-assigned unique ID for this managed resource.
    total_count int
    The total count of query.
    name_regex str
    org_unit_id str
    The id of the organization unit.
    output_file str
    search str
    verification_id str
    accounts List<Property Map>
    The collection of query.
    id String
    The provider-assigned unique ID for this managed resource.
    totalCount Number
    The total count of query.
    nameRegex String
    orgUnitId String
    The id of the organization unit.
    outputFile String
    search String
    verificationId String

    Supporting Types

    AccountsAccount

    AccountId string
    The id of the account.
    AccountName string
    The name of the account.
    AllowConsole int
    Whether to allow the account enable console. 0 means allowed, 1 means not allowed.
    AllowExit int
    Whether to allow exit the organization. 0 means allowed, 1 means not allowed.
    CreatedTime string
    The created time of the account.
    DeleteUk string
    The delete uk of the account.
    DeletedTime string
    The deleted time of the account.
    Description string
    The description of the account.
    IamRole string
    The name of the iam role.
    Id string
    The id of the account.
    IsOwner int
    Whether the account is owner. 0 means not owner, 1 means owner.
    JoinType int
    The join type of the account. 0 means create, 1 means invitation.
    OrgId string
    The id of the organization.
    OrgType int
    The type of the organization. 1 means business organization.
    OrgUnitId string
    The id of the organization unit.
    OrgUnitName string
    The name of the organization unit.
    OrgVerificationId string
    The id of the organization verification.
    Owner string
    The owner id of the account.
    ShowName string
    The show name of the account.
    Tags List<AccountsAccountTag>
    Tags.
    UpdatedTime string
    The updated time of the account.
    AccountId string
    The id of the account.
    AccountName string
    The name of the account.
    AllowConsole int
    Whether to allow the account enable console. 0 means allowed, 1 means not allowed.
    AllowExit int
    Whether to allow exit the organization. 0 means allowed, 1 means not allowed.
    CreatedTime string
    The created time of the account.
    DeleteUk string
    The delete uk of the account.
    DeletedTime string
    The deleted time of the account.
    Description string
    The description of the account.
    IamRole string
    The name of the iam role.
    Id string
    The id of the account.
    IsOwner int
    Whether the account is owner. 0 means not owner, 1 means owner.
    JoinType int
    The join type of the account. 0 means create, 1 means invitation.
    OrgId string
    The id of the organization.
    OrgType int
    The type of the organization. 1 means business organization.
    OrgUnitId string
    The id of the organization unit.
    OrgUnitName string
    The name of the organization unit.
    OrgVerificationId string
    The id of the organization verification.
    Owner string
    The owner id of the account.
    ShowName string
    The show name of the account.
    Tags []AccountsAccountTag
    Tags.
    UpdatedTime string
    The updated time of the account.
    accountId String
    The id of the account.
    accountName String
    The name of the account.
    allowConsole Integer
    Whether to allow the account enable console. 0 means allowed, 1 means not allowed.
    allowExit Integer
    Whether to allow exit the organization. 0 means allowed, 1 means not allowed.
    createdTime String
    The created time of the account.
    deleteUk String
    The delete uk of the account.
    deletedTime String
    The deleted time of the account.
    description String
    The description of the account.
    iamRole String
    The name of the iam role.
    id String
    The id of the account.
    isOwner Integer
    Whether the account is owner. 0 means not owner, 1 means owner.
    joinType Integer
    The join type of the account. 0 means create, 1 means invitation.
    orgId String
    The id of the organization.
    orgType Integer
    The type of the organization. 1 means business organization.
    orgUnitId String
    The id of the organization unit.
    orgUnitName String
    The name of the organization unit.
    orgVerificationId String
    The id of the organization verification.
    owner String
    The owner id of the account.
    showName String
    The show name of the account.
    tags List<AccountsAccountTag>
    Tags.
    updatedTime String
    The updated time of the account.
    accountId string
    The id of the account.
    accountName string
    The name of the account.
    allowConsole number
    Whether to allow the account enable console. 0 means allowed, 1 means not allowed.
    allowExit number
    Whether to allow exit the organization. 0 means allowed, 1 means not allowed.
    createdTime string
    The created time of the account.
    deleteUk string
    The delete uk of the account.
    deletedTime string
    The deleted time of the account.
    description string
    The description of the account.
    iamRole string
    The name of the iam role.
    id string
    The id of the account.
    isOwner number
    Whether the account is owner. 0 means not owner, 1 means owner.
    joinType number
    The join type of the account. 0 means create, 1 means invitation.
    orgId string
    The id of the organization.
    orgType number
    The type of the organization. 1 means business organization.
    orgUnitId string
    The id of the organization unit.
    orgUnitName string
    The name of the organization unit.
    orgVerificationId string
    The id of the organization verification.
    owner string
    The owner id of the account.
    showName string
    The show name of the account.
    tags AccountsAccountTag[]
    Tags.
    updatedTime string
    The updated time of the account.
    account_id str
    The id of the account.
    account_name str
    The name of the account.
    allow_console int
    Whether to allow the account enable console. 0 means allowed, 1 means not allowed.
    allow_exit int
    Whether to allow exit the organization. 0 means allowed, 1 means not allowed.
    created_time str
    The created time of the account.
    delete_uk str
    The delete uk of the account.
    deleted_time str
    The deleted time of the account.
    description str
    The description of the account.
    iam_role str
    The name of the iam role.
    id str
    The id of the account.
    is_owner int
    Whether the account is owner. 0 means not owner, 1 means owner.
    join_type int
    The join type of the account. 0 means create, 1 means invitation.
    org_id str
    The id of the organization.
    org_type int
    The type of the organization. 1 means business organization.
    org_unit_id str
    The id of the organization unit.
    org_unit_name str
    The name of the organization unit.
    org_verification_id str
    The id of the organization verification.
    owner str
    The owner id of the account.
    show_name str
    The show name of the account.
    tags Sequence[AccountsAccountTag]
    Tags.
    updated_time str
    The updated time of the account.
    accountId String
    The id of the account.
    accountName String
    The name of the account.
    allowConsole Number
    Whether to allow the account enable console. 0 means allowed, 1 means not allowed.
    allowExit Number
    Whether to allow exit the organization. 0 means allowed, 1 means not allowed.
    createdTime String
    The created time of the account.
    deleteUk String
    The delete uk of the account.
    deletedTime String
    The deleted time of the account.
    description String
    The description of the account.
    iamRole String
    The name of the iam role.
    id String
    The id of the account.
    isOwner Number
    Whether the account is owner. 0 means not owner, 1 means owner.
    joinType Number
    The join type of the account. 0 means create, 1 means invitation.
    orgId String
    The id of the organization.
    orgType Number
    The type of the organization. 1 means business organization.
    orgUnitId String
    The id of the organization unit.
    orgUnitName String
    The name of the organization unit.
    orgVerificationId String
    The id of the organization verification.
    owner String
    The owner id of the account.
    showName String
    The show name of the account.
    tags List<Property Map>
    Tags.
    updatedTime String
    The updated time of the account.

    AccountsAccountTag

    Key string
    The Key of Tags.
    Value string
    The Value of Tags.
    Key string
    The Key of Tags.
    Value string
    The Value of Tags.
    key String
    The Key of Tags.
    value String
    The Value of Tags.
    key string
    The Key of Tags.
    value string
    The Value of Tags.
    key str
    The Key of Tags.
    value str
    The Value of Tags.
    key String
    The Key of Tags.
    value String
    The Value of Tags.

    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.26 published on Friday, Sep 13, 2024 by Volcengine