1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. resourcemanager
  5. Account
Alibaba Cloud v3.78.0 published on Friday, May 16, 2025 by Pulumi

alicloud.resourcemanager.Account

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.78.0 published on Friday, May 16, 2025 by Pulumi

    Provides a Resource Manager Account resource.

    For information about Resource Manager Account and how to use it, see What is Account.

    NOTE: Available since v1.83.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    import * as random from "@pulumi/random";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "tf-example";
    const displayName = config.get("displayName") || "EAccount";
    const _default = new random.index.Integer("default", {
        min: 10000,
        max: 99999,
    });
    const example = alicloud.resourcemanager.getFolders({});
    const exampleAccount = new alicloud.resourcemanager.Account("example", {
        displayName: `${displayName}-${_default.result}`,
        folderId: example.then(example => example.ids?.[0]),
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    import pulumi_random as random
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "tf-example"
    display_name = config.get("displayName")
    if display_name is None:
        display_name = "EAccount"
    default = random.index.Integer("default",
        min=10000,
        max=99999)
    example = alicloud.resourcemanager.get_folders()
    example_account = alicloud.resourcemanager.Account("example",
        display_name=f"{display_name}-{default['result']}",
        folder_id=example.ids[0])
    
    package main
    
    import (
    	"fmt"
    
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
    	"github.com/pulumi/pulumi-random/sdk/v4/go/random"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		name := "tf-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		displayName := "EAccount"
    		if param := cfg.Get("displayName"); param != "" {
    			displayName = param
    		}
    		_default, err := random.NewInteger(ctx, "default", &random.IntegerArgs{
    			Min: 10000,
    			Max: 99999,
    		})
    		if err != nil {
    			return err
    		}
    		example, err := resourcemanager.GetFolders(ctx, &resourcemanager.GetFoldersArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = resourcemanager.NewAccount(ctx, "example", &resourcemanager.AccountArgs{
    			DisplayName: pulumi.Sprintf("%v-%v", displayName, _default.Result),
    			FolderId:    pulumi.String(example.Ids[0]),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    using Random = Pulumi.Random;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "tf-example";
        var displayName = config.Get("displayName") ?? "EAccount";
        var @default = new Random.Index.Integer("default", new()
        {
            Min = 10000,
            Max = 99999,
        });
    
        var example = AliCloud.ResourceManager.GetFolders.Invoke();
    
        var exampleAccount = new AliCloud.ResourceManager.Account("example", new()
        {
            DisplayName = $"{displayName}-{@default.Result}",
            FolderId = example.Apply(getFoldersResult => getFoldersResult.Ids[0]),
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.random.integer;
    import com.pulumi.random.integerArgs;
    import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
    import com.pulumi.alicloud.resourcemanager.inputs.GetFoldersArgs;
    import com.pulumi.alicloud.resourcemanager.Account;
    import com.pulumi.alicloud.resourcemanager.AccountArgs;
    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 config = ctx.config();
            final var name = config.get("name").orElse("tf-example");
            final var displayName = config.get("displayName").orElse("EAccount");
            var default_ = new Integer("default", IntegerArgs.builder()
                .min(10000)
                .max(99999)
                .build());
    
            final var example = ResourcemanagerFunctions.getFolders(GetFoldersArgs.builder()
                .build());
    
            var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
                .displayName(String.format("%s-%s", displayName,default_.result()))
                .folderId(example.ids()[0])
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: tf-example
      displayName:
        type: string
        default: EAccount
    resources:
      default:
        type: random:integer
        properties:
          min: 10000
          max: 99999
      exampleAccount:
        type: alicloud:resourcemanager:Account
        name: example
        properties:
          displayName: ${displayName}-${default.result}
          folderId: ${example.ids[0]}
    variables:
      example:
        fn::invoke:
          function: alicloud:resourcemanager:getFolders
          arguments: {}
    

    Create Account Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Account(name: string, args: AccountArgs, opts?: CustomResourceOptions);
    @overload
    def Account(resource_name: str,
                args: AccountArgs,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def Account(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                display_name: Optional[str] = None,
                abandon_able_check_ids: Optional[Sequence[str]] = None,
                abandonable_check_ids: Optional[Sequence[str]] = None,
                account_name_prefix: Optional[str] = None,
                folder_id: Optional[str] = None,
                force_delete: Optional[bool] = None,
                payer_account_id: Optional[str] = None,
                resell_account_type: Optional[str] = None,
                tags: Optional[Mapping[str, str]] = None,
                type: Optional[str] = None)
    func NewAccount(ctx *Context, name string, args AccountArgs, opts ...ResourceOption) (*Account, error)
    public Account(string name, AccountArgs args, CustomResourceOptions? opts = null)
    public Account(String name, AccountArgs args)
    public Account(String name, AccountArgs args, CustomResourceOptions options)
    
    type: alicloud:resourcemanager:Account
    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 AccountArgs
    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 AccountArgs
    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 AccountArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AccountArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AccountArgs
    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 exampleaccountResourceResourceFromResourcemanageraccount = new AliCloud.ResourceManager.Account("exampleaccountResourceResourceFromResourcemanageraccount", new()
    {
        DisplayName = "string",
        AbandonableCheckIds = new[]
        {
            "string",
        },
        AccountNamePrefix = "string",
        FolderId = "string",
        ForceDelete = false,
        PayerAccountId = "string",
        ResellAccountType = "string",
        Tags = 
        {
            { "string", "string" },
        },
        Type = "string",
    });
    
    example, err := resourcemanager.NewAccount(ctx, "exampleaccountResourceResourceFromResourcemanageraccount", &resourcemanager.AccountArgs{
    	DisplayName: pulumi.String("string"),
    	AbandonableCheckIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	AccountNamePrefix: pulumi.String("string"),
    	FolderId:          pulumi.String("string"),
    	ForceDelete:       pulumi.Bool(false),
    	PayerAccountId:    pulumi.String("string"),
    	ResellAccountType: pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Type: pulumi.String("string"),
    })
    
    var exampleaccountResourceResourceFromResourcemanageraccount = new com.pulumi.alicloud.resourcemanager.Account("exampleaccountResourceResourceFromResourcemanageraccount", com.pulumi.alicloud.resourcemanager.AccountArgs.builder()
        .displayName("string")
        .abandonableCheckIds("string")
        .accountNamePrefix("string")
        .folderId("string")
        .forceDelete(false)
        .payerAccountId("string")
        .resellAccountType("string")
        .tags(Map.of("string", "string"))
        .type("string")
        .build());
    
    exampleaccount_resource_resource_from_resourcemanageraccount = alicloud.resourcemanager.Account("exampleaccountResourceResourceFromResourcemanageraccount",
        display_name="string",
        abandonable_check_ids=["string"],
        account_name_prefix="string",
        folder_id="string",
        force_delete=False,
        payer_account_id="string",
        resell_account_type="string",
        tags={
            "string": "string",
        },
        type="string")
    
    const exampleaccountResourceResourceFromResourcemanageraccount = new alicloud.resourcemanager.Account("exampleaccountResourceResourceFromResourcemanageraccount", {
        displayName: "string",
        abandonableCheckIds: ["string"],
        accountNamePrefix: "string",
        folderId: "string",
        forceDelete: false,
        payerAccountId: "string",
        resellAccountType: "string",
        tags: {
            string: "string",
        },
        type: "string",
    });
    
    type: alicloud:resourcemanager:Account
    properties:
        abandonableCheckIds:
            - string
        accountNamePrefix: string
        displayName: string
        folderId: string
        forceDelete: false
        payerAccountId: string
        resellAccountType: string
        tags:
            string: string
        type: string
    

    Account 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 Account resource accepts the following input properties:

    DisplayName string
    Member name
    AbandonAbleCheckIds List<string>
    . Field 'abandon_able_check_id' has been deprecated from provider version 1.249.0. New field 'abandonable_check_id' instead.

    Deprecated: Field 'abandon_able_check_id' has been deprecated since provider version 1.248.0. New field 'abandonable_check_id' instead.

    AbandonableCheckIds List<string>
    The ID of the check item that can choose to abandon and continue to perform member deletion. The ID is obtained from the return parameter AbandonableChecks of GetAccountDeletionCheckResult.
    AccountNamePrefix string
    Account name prefix. Empty the system randomly generated. Format: English letters, numbers, and special characters_.-can be entered. It must start and end with an English letter or number, and continuous special characters_.-cannot be entered '_.-'. The format of the full account name is @< ResourceDirectoryId>.aliyunid.com, for example: 'alice @ rd-3G ****.aliyunid.com' The account name must be unique in the resource directory.
    FolderId string
    The ID of the parent folder
    ForceDelete bool
    Whether to force delete the account.
    PayerAccountId string
    The settlement account ID. If it is left blank, the newly created member will be used for self-settlement.
    ResellAccountType string

    The identity type of the member. Valid values:

    • resell: The member is an account for a reseller. This is the default value. A relationship is automatically established between the member and the reseller. The management account of the resource directory must be used as the billing account of the member.
    • non_resell: The member is not an account for a reseller. The member is an account that is not associated with a reseller. You can directly use the account to purchase Alibaba Cloud resources. The member is used as its own billing account.

    NOTE: This parameter is available only for resellers at the international site (alibabacloud.com).

    Tags Dictionary<string, string>
    The tag of the resource
    Type string

    Member type. The value of ResourceAccount indicates the resource account

    The following arguments will be discarded. Please use new fields as soon as possible:

    DisplayName string
    Member name
    AbandonAbleCheckIds []string
    . Field 'abandon_able_check_id' has been deprecated from provider version 1.249.0. New field 'abandonable_check_id' instead.

    Deprecated: Field 'abandon_able_check_id' has been deprecated since provider version 1.248.0. New field 'abandonable_check_id' instead.

    AbandonableCheckIds []string
    The ID of the check item that can choose to abandon and continue to perform member deletion. The ID is obtained from the return parameter AbandonableChecks of GetAccountDeletionCheckResult.
    AccountNamePrefix string
    Account name prefix. Empty the system randomly generated. Format: English letters, numbers, and special characters_.-can be entered. It must start and end with an English letter or number, and continuous special characters_.-cannot be entered '_.-'. The format of the full account name is @< ResourceDirectoryId>.aliyunid.com, for example: 'alice @ rd-3G ****.aliyunid.com' The account name must be unique in the resource directory.
    FolderId string
    The ID of the parent folder
    ForceDelete bool
    Whether to force delete the account.
    PayerAccountId string
    The settlement account ID. If it is left blank, the newly created member will be used for self-settlement.
    ResellAccountType string

    The identity type of the member. Valid values:

    • resell: The member is an account for a reseller. This is the default value. A relationship is automatically established between the member and the reseller. The management account of the resource directory must be used as the billing account of the member.
    • non_resell: The member is not an account for a reseller. The member is an account that is not associated with a reseller. You can directly use the account to purchase Alibaba Cloud resources. The member is used as its own billing account.

    NOTE: This parameter is available only for resellers at the international site (alibabacloud.com).

    Tags map[string]string
    The tag of the resource
    Type string

    Member type. The value of ResourceAccount indicates the resource account

    The following arguments will be discarded. Please use new fields as soon as possible:

    displayName String
    Member name
    abandonAbleCheckIds List<String>
    . Field 'abandon_able_check_id' has been deprecated from provider version 1.249.0. New field 'abandonable_check_id' instead.

    Deprecated: Field 'abandon_able_check_id' has been deprecated since provider version 1.248.0. New field 'abandonable_check_id' instead.

    abandonableCheckIds List<String>
    The ID of the check item that can choose to abandon and continue to perform member deletion. The ID is obtained from the return parameter AbandonableChecks of GetAccountDeletionCheckResult.
    accountNamePrefix String
    Account name prefix. Empty the system randomly generated. Format: English letters, numbers, and special characters_.-can be entered. It must start and end with an English letter or number, and continuous special characters_.-cannot be entered '_.-'. The format of the full account name is @< ResourceDirectoryId>.aliyunid.com, for example: 'alice @ rd-3G ****.aliyunid.com' The account name must be unique in the resource directory.
    folderId String
    The ID of the parent folder
    forceDelete Boolean
    Whether to force delete the account.
    payerAccountId String
    The settlement account ID. If it is left blank, the newly created member will be used for self-settlement.
    resellAccountType String

    The identity type of the member. Valid values:

    • resell: The member is an account for a reseller. This is the default value. A relationship is automatically established between the member and the reseller. The management account of the resource directory must be used as the billing account of the member.
    • non_resell: The member is not an account for a reseller. The member is an account that is not associated with a reseller. You can directly use the account to purchase Alibaba Cloud resources. The member is used as its own billing account.

    NOTE: This parameter is available only for resellers at the international site (alibabacloud.com).

    tags Map<String,String>
    The tag of the resource
    type String

    Member type. The value of ResourceAccount indicates the resource account

    The following arguments will be discarded. Please use new fields as soon as possible:

    displayName string
    Member name
    abandonAbleCheckIds string[]
    . Field 'abandon_able_check_id' has been deprecated from provider version 1.249.0. New field 'abandonable_check_id' instead.

    Deprecated: Field 'abandon_able_check_id' has been deprecated since provider version 1.248.0. New field 'abandonable_check_id' instead.

    abandonableCheckIds string[]
    The ID of the check item that can choose to abandon and continue to perform member deletion. The ID is obtained from the return parameter AbandonableChecks of GetAccountDeletionCheckResult.
    accountNamePrefix string
    Account name prefix. Empty the system randomly generated. Format: English letters, numbers, and special characters_.-can be entered. It must start and end with an English letter or number, and continuous special characters_.-cannot be entered '_.-'. The format of the full account name is @< ResourceDirectoryId>.aliyunid.com, for example: 'alice @ rd-3G ****.aliyunid.com' The account name must be unique in the resource directory.
    folderId string
    The ID of the parent folder
    forceDelete boolean
    Whether to force delete the account.
    payerAccountId string
    The settlement account ID. If it is left blank, the newly created member will be used for self-settlement.
    resellAccountType string

    The identity type of the member. Valid values:

    • resell: The member is an account for a reseller. This is the default value. A relationship is automatically established between the member and the reseller. The management account of the resource directory must be used as the billing account of the member.
    • non_resell: The member is not an account for a reseller. The member is an account that is not associated with a reseller. You can directly use the account to purchase Alibaba Cloud resources. The member is used as its own billing account.

    NOTE: This parameter is available only for resellers at the international site (alibabacloud.com).

    tags {[key: string]: string}
    The tag of the resource
    type string

    Member type. The value of ResourceAccount indicates the resource account

    The following arguments will be discarded. Please use new fields as soon as possible:

    display_name str
    Member name
    abandon_able_check_ids Sequence[str]
    . Field 'abandon_able_check_id' has been deprecated from provider version 1.249.0. New field 'abandonable_check_id' instead.

    Deprecated: Field 'abandon_able_check_id' has been deprecated since provider version 1.248.0. New field 'abandonable_check_id' instead.

    abandonable_check_ids Sequence[str]
    The ID of the check item that can choose to abandon and continue to perform member deletion. The ID is obtained from the return parameter AbandonableChecks of GetAccountDeletionCheckResult.
    account_name_prefix str
    Account name prefix. Empty the system randomly generated. Format: English letters, numbers, and special characters_.-can be entered. It must start and end with an English letter or number, and continuous special characters_.-cannot be entered '_.-'. The format of the full account name is @< ResourceDirectoryId>.aliyunid.com, for example: 'alice @ rd-3G ****.aliyunid.com' The account name must be unique in the resource directory.
    folder_id str
    The ID of the parent folder
    force_delete bool
    Whether to force delete the account.
    payer_account_id str
    The settlement account ID. If it is left blank, the newly created member will be used for self-settlement.
    resell_account_type str

    The identity type of the member. Valid values:

    • resell: The member is an account for a reseller. This is the default value. A relationship is automatically established between the member and the reseller. The management account of the resource directory must be used as the billing account of the member.
    • non_resell: The member is not an account for a reseller. The member is an account that is not associated with a reseller. You can directly use the account to purchase Alibaba Cloud resources. The member is used as its own billing account.

    NOTE: This parameter is available only for resellers at the international site (alibabacloud.com).

    tags Mapping[str, str]
    The tag of the resource
    type str

    Member type. The value of ResourceAccount indicates the resource account

    The following arguments will be discarded. Please use new fields as soon as possible:

    displayName String
    Member name
    abandonAbleCheckIds List<String>
    . Field 'abandon_able_check_id' has been deprecated from provider version 1.249.0. New field 'abandonable_check_id' instead.

    Deprecated: Field 'abandon_able_check_id' has been deprecated since provider version 1.248.0. New field 'abandonable_check_id' instead.

    abandonableCheckIds List<String>
    The ID of the check item that can choose to abandon and continue to perform member deletion. The ID is obtained from the return parameter AbandonableChecks of GetAccountDeletionCheckResult.
    accountNamePrefix String
    Account name prefix. Empty the system randomly generated. Format: English letters, numbers, and special characters_.-can be entered. It must start and end with an English letter or number, and continuous special characters_.-cannot be entered '_.-'. The format of the full account name is @< ResourceDirectoryId>.aliyunid.com, for example: 'alice @ rd-3G ****.aliyunid.com' The account name must be unique in the resource directory.
    folderId String
    The ID of the parent folder
    forceDelete Boolean
    Whether to force delete the account.
    payerAccountId String
    The settlement account ID. If it is left blank, the newly created member will be used for self-settlement.
    resellAccountType String

    The identity type of the member. Valid values:

    • resell: The member is an account for a reseller. This is the default value. A relationship is automatically established between the member and the reseller. The management account of the resource directory must be used as the billing account of the member.
    • non_resell: The member is not an account for a reseller. The member is an account that is not associated with a reseller. You can directly use the account to purchase Alibaba Cloud resources. The member is used as its own billing account.

    NOTE: This parameter is available only for resellers at the international site (alibabacloud.com).

    tags Map<String>
    The tag of the resource
    type String

    Member type. The value of ResourceAccount indicates the resource account

    The following arguments will be discarded. Please use new fields as soon as possible:

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Account resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    JoinMethod string
    Ways for members to join the resource directory. invited, created
    JoinTime string
    The time when the member joined the resource directory
    ModifyTime string
    The modification time of the invitation
    ResourceDirectoryId string
    Resource directory ID
    Status string
    Member joining status. CreateSuccess,CreateVerifying,CreateFailed,CreateExpired,CreateCancelled,PromoteVerifying,PromoteFailed,PromoteExpired,PromoteCancelled,PromoteSuccess,InviteSuccess,Removed
    Id string
    The provider-assigned unique ID for this managed resource.
    JoinMethod string
    Ways for members to join the resource directory. invited, created
    JoinTime string
    The time when the member joined the resource directory
    ModifyTime string
    The modification time of the invitation
    ResourceDirectoryId string
    Resource directory ID
    Status string
    Member joining status. CreateSuccess,CreateVerifying,CreateFailed,CreateExpired,CreateCancelled,PromoteVerifying,PromoteFailed,PromoteExpired,PromoteCancelled,PromoteSuccess,InviteSuccess,Removed
    id String
    The provider-assigned unique ID for this managed resource.
    joinMethod String
    Ways for members to join the resource directory. invited, created
    joinTime String
    The time when the member joined the resource directory
    modifyTime String
    The modification time of the invitation
    resourceDirectoryId String
    Resource directory ID
    status String
    Member joining status. CreateSuccess,CreateVerifying,CreateFailed,CreateExpired,CreateCancelled,PromoteVerifying,PromoteFailed,PromoteExpired,PromoteCancelled,PromoteSuccess,InviteSuccess,Removed
    id string
    The provider-assigned unique ID for this managed resource.
    joinMethod string
    Ways for members to join the resource directory. invited, created
    joinTime string
    The time when the member joined the resource directory
    modifyTime string
    The modification time of the invitation
    resourceDirectoryId string
    Resource directory ID
    status string
    Member joining status. CreateSuccess,CreateVerifying,CreateFailed,CreateExpired,CreateCancelled,PromoteVerifying,PromoteFailed,PromoteExpired,PromoteCancelled,PromoteSuccess,InviteSuccess,Removed
    id str
    The provider-assigned unique ID for this managed resource.
    join_method str
    Ways for members to join the resource directory. invited, created
    join_time str
    The time when the member joined the resource directory
    modify_time str
    The modification time of the invitation
    resource_directory_id str
    Resource directory ID
    status str
    Member joining status. CreateSuccess,CreateVerifying,CreateFailed,CreateExpired,CreateCancelled,PromoteVerifying,PromoteFailed,PromoteExpired,PromoteCancelled,PromoteSuccess,InviteSuccess,Removed
    id String
    The provider-assigned unique ID for this managed resource.
    joinMethod String
    Ways for members to join the resource directory. invited, created
    joinTime String
    The time when the member joined the resource directory
    modifyTime String
    The modification time of the invitation
    resourceDirectoryId String
    Resource directory ID
    status String
    Member joining status. CreateSuccess,CreateVerifying,CreateFailed,CreateExpired,CreateCancelled,PromoteVerifying,PromoteFailed,PromoteExpired,PromoteCancelled,PromoteSuccess,InviteSuccess,Removed

    Look up Existing Account Resource

    Get an existing Account 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?: AccountState, opts?: CustomResourceOptions): Account
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            abandon_able_check_ids: Optional[Sequence[str]] = None,
            abandonable_check_ids: Optional[Sequence[str]] = None,
            account_name_prefix: Optional[str] = None,
            display_name: Optional[str] = None,
            folder_id: Optional[str] = None,
            force_delete: Optional[bool] = None,
            join_method: Optional[str] = None,
            join_time: Optional[str] = None,
            modify_time: Optional[str] = None,
            payer_account_id: Optional[str] = None,
            resell_account_type: Optional[str] = None,
            resource_directory_id: Optional[str] = None,
            status: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            type: Optional[str] = None) -> Account
    func GetAccount(ctx *Context, name string, id IDInput, state *AccountState, opts ...ResourceOption) (*Account, error)
    public static Account Get(string name, Input<string> id, AccountState? state, CustomResourceOptions? opts = null)
    public static Account get(String name, Output<String> id, AccountState state, CustomResourceOptions options)
    resources:  _:    type: alicloud:resourcemanager:Account    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.
    The following state arguments are supported:
    AbandonAbleCheckIds List<string>
    . Field 'abandon_able_check_id' has been deprecated from provider version 1.249.0. New field 'abandonable_check_id' instead.

    Deprecated: Field 'abandon_able_check_id' has been deprecated since provider version 1.248.0. New field 'abandonable_check_id' instead.

    AbandonableCheckIds List<string>
    The ID of the check item that can choose to abandon and continue to perform member deletion. The ID is obtained from the return parameter AbandonableChecks of GetAccountDeletionCheckResult.
    AccountNamePrefix string
    Account name prefix. Empty the system randomly generated. Format: English letters, numbers, and special characters_.-can be entered. It must start and end with an English letter or number, and continuous special characters_.-cannot be entered '_.-'. The format of the full account name is @< ResourceDirectoryId>.aliyunid.com, for example: 'alice @ rd-3G ****.aliyunid.com' The account name must be unique in the resource directory.
    DisplayName string
    Member name
    FolderId string
    The ID of the parent folder
    ForceDelete bool
    Whether to force delete the account.
    JoinMethod string
    Ways for members to join the resource directory. invited, created
    JoinTime string
    The time when the member joined the resource directory
    ModifyTime string
    The modification time of the invitation
    PayerAccountId string
    The settlement account ID. If it is left blank, the newly created member will be used for self-settlement.
    ResellAccountType string

    The identity type of the member. Valid values:

    • resell: The member is an account for a reseller. This is the default value. A relationship is automatically established between the member and the reseller. The management account of the resource directory must be used as the billing account of the member.
    • non_resell: The member is not an account for a reseller. The member is an account that is not associated with a reseller. You can directly use the account to purchase Alibaba Cloud resources. The member is used as its own billing account.

    NOTE: This parameter is available only for resellers at the international site (alibabacloud.com).

    ResourceDirectoryId string
    Resource directory ID
    Status string
    Member joining status. CreateSuccess,CreateVerifying,CreateFailed,CreateExpired,CreateCancelled,PromoteVerifying,PromoteFailed,PromoteExpired,PromoteCancelled,PromoteSuccess,InviteSuccess,Removed
    Tags Dictionary<string, string>
    The tag of the resource
    Type string

    Member type. The value of ResourceAccount indicates the resource account

    The following arguments will be discarded. Please use new fields as soon as possible:

    AbandonAbleCheckIds []string
    . Field 'abandon_able_check_id' has been deprecated from provider version 1.249.0. New field 'abandonable_check_id' instead.

    Deprecated: Field 'abandon_able_check_id' has been deprecated since provider version 1.248.0. New field 'abandonable_check_id' instead.

    AbandonableCheckIds []string
    The ID of the check item that can choose to abandon and continue to perform member deletion. The ID is obtained from the return parameter AbandonableChecks of GetAccountDeletionCheckResult.
    AccountNamePrefix string
    Account name prefix. Empty the system randomly generated. Format: English letters, numbers, and special characters_.-can be entered. It must start and end with an English letter or number, and continuous special characters_.-cannot be entered '_.-'. The format of the full account name is @< ResourceDirectoryId>.aliyunid.com, for example: 'alice @ rd-3G ****.aliyunid.com' The account name must be unique in the resource directory.
    DisplayName string
    Member name
    FolderId string
    The ID of the parent folder
    ForceDelete bool
    Whether to force delete the account.
    JoinMethod string
    Ways for members to join the resource directory. invited, created
    JoinTime string
    The time when the member joined the resource directory
    ModifyTime string
    The modification time of the invitation
    PayerAccountId string
    The settlement account ID. If it is left blank, the newly created member will be used for self-settlement.
    ResellAccountType string

    The identity type of the member. Valid values:

    • resell: The member is an account for a reseller. This is the default value. A relationship is automatically established between the member and the reseller. The management account of the resource directory must be used as the billing account of the member.
    • non_resell: The member is not an account for a reseller. The member is an account that is not associated with a reseller. You can directly use the account to purchase Alibaba Cloud resources. The member is used as its own billing account.

    NOTE: This parameter is available only for resellers at the international site (alibabacloud.com).

    ResourceDirectoryId string
    Resource directory ID
    Status string
    Member joining status. CreateSuccess,CreateVerifying,CreateFailed,CreateExpired,CreateCancelled,PromoteVerifying,PromoteFailed,PromoteExpired,PromoteCancelled,PromoteSuccess,InviteSuccess,Removed
    Tags map[string]string
    The tag of the resource
    Type string

    Member type. The value of ResourceAccount indicates the resource account

    The following arguments will be discarded. Please use new fields as soon as possible:

    abandonAbleCheckIds List<String>
    . Field 'abandon_able_check_id' has been deprecated from provider version 1.249.0. New field 'abandonable_check_id' instead.

    Deprecated: Field 'abandon_able_check_id' has been deprecated since provider version 1.248.0. New field 'abandonable_check_id' instead.

    abandonableCheckIds List<String>
    The ID of the check item that can choose to abandon and continue to perform member deletion. The ID is obtained from the return parameter AbandonableChecks of GetAccountDeletionCheckResult.
    accountNamePrefix String
    Account name prefix. Empty the system randomly generated. Format: English letters, numbers, and special characters_.-can be entered. It must start and end with an English letter or number, and continuous special characters_.-cannot be entered '_.-'. The format of the full account name is @< ResourceDirectoryId>.aliyunid.com, for example: 'alice @ rd-3G ****.aliyunid.com' The account name must be unique in the resource directory.
    displayName String
    Member name
    folderId String
    The ID of the parent folder
    forceDelete Boolean
    Whether to force delete the account.
    joinMethod String
    Ways for members to join the resource directory. invited, created
    joinTime String
    The time when the member joined the resource directory
    modifyTime String
    The modification time of the invitation
    payerAccountId String
    The settlement account ID. If it is left blank, the newly created member will be used for self-settlement.
    resellAccountType String

    The identity type of the member. Valid values:

    • resell: The member is an account for a reseller. This is the default value. A relationship is automatically established between the member and the reseller. The management account of the resource directory must be used as the billing account of the member.
    • non_resell: The member is not an account for a reseller. The member is an account that is not associated with a reseller. You can directly use the account to purchase Alibaba Cloud resources. The member is used as its own billing account.

    NOTE: This parameter is available only for resellers at the international site (alibabacloud.com).

    resourceDirectoryId String
    Resource directory ID
    status String
    Member joining status. CreateSuccess,CreateVerifying,CreateFailed,CreateExpired,CreateCancelled,PromoteVerifying,PromoteFailed,PromoteExpired,PromoteCancelled,PromoteSuccess,InviteSuccess,Removed
    tags Map<String,String>
    The tag of the resource
    type String

    Member type. The value of ResourceAccount indicates the resource account

    The following arguments will be discarded. Please use new fields as soon as possible:

    abandonAbleCheckIds string[]
    . Field 'abandon_able_check_id' has been deprecated from provider version 1.249.0. New field 'abandonable_check_id' instead.

    Deprecated: Field 'abandon_able_check_id' has been deprecated since provider version 1.248.0. New field 'abandonable_check_id' instead.

    abandonableCheckIds string[]
    The ID of the check item that can choose to abandon and continue to perform member deletion. The ID is obtained from the return parameter AbandonableChecks of GetAccountDeletionCheckResult.
    accountNamePrefix string
    Account name prefix. Empty the system randomly generated. Format: English letters, numbers, and special characters_.-can be entered. It must start and end with an English letter or number, and continuous special characters_.-cannot be entered '_.-'. The format of the full account name is @< ResourceDirectoryId>.aliyunid.com, for example: 'alice @ rd-3G ****.aliyunid.com' The account name must be unique in the resource directory.
    displayName string
    Member name
    folderId string
    The ID of the parent folder
    forceDelete boolean
    Whether to force delete the account.
    joinMethod string
    Ways for members to join the resource directory. invited, created
    joinTime string
    The time when the member joined the resource directory
    modifyTime string
    The modification time of the invitation
    payerAccountId string
    The settlement account ID. If it is left blank, the newly created member will be used for self-settlement.
    resellAccountType string

    The identity type of the member. Valid values:

    • resell: The member is an account for a reseller. This is the default value. A relationship is automatically established between the member and the reseller. The management account of the resource directory must be used as the billing account of the member.
    • non_resell: The member is not an account for a reseller. The member is an account that is not associated with a reseller. You can directly use the account to purchase Alibaba Cloud resources. The member is used as its own billing account.

    NOTE: This parameter is available only for resellers at the international site (alibabacloud.com).

    resourceDirectoryId string
    Resource directory ID
    status string
    Member joining status. CreateSuccess,CreateVerifying,CreateFailed,CreateExpired,CreateCancelled,PromoteVerifying,PromoteFailed,PromoteExpired,PromoteCancelled,PromoteSuccess,InviteSuccess,Removed
    tags {[key: string]: string}
    The tag of the resource
    type string

    Member type. The value of ResourceAccount indicates the resource account

    The following arguments will be discarded. Please use new fields as soon as possible:

    abandon_able_check_ids Sequence[str]
    . Field 'abandon_able_check_id' has been deprecated from provider version 1.249.0. New field 'abandonable_check_id' instead.

    Deprecated: Field 'abandon_able_check_id' has been deprecated since provider version 1.248.0. New field 'abandonable_check_id' instead.

    abandonable_check_ids Sequence[str]
    The ID of the check item that can choose to abandon and continue to perform member deletion. The ID is obtained from the return parameter AbandonableChecks of GetAccountDeletionCheckResult.
    account_name_prefix str
    Account name prefix. Empty the system randomly generated. Format: English letters, numbers, and special characters_.-can be entered. It must start and end with an English letter or number, and continuous special characters_.-cannot be entered '_.-'. The format of the full account name is @< ResourceDirectoryId>.aliyunid.com, for example: 'alice @ rd-3G ****.aliyunid.com' The account name must be unique in the resource directory.
    display_name str
    Member name
    folder_id str
    The ID of the parent folder
    force_delete bool
    Whether to force delete the account.
    join_method str
    Ways for members to join the resource directory. invited, created
    join_time str
    The time when the member joined the resource directory
    modify_time str
    The modification time of the invitation
    payer_account_id str
    The settlement account ID. If it is left blank, the newly created member will be used for self-settlement.
    resell_account_type str

    The identity type of the member. Valid values:

    • resell: The member is an account for a reseller. This is the default value. A relationship is automatically established between the member and the reseller. The management account of the resource directory must be used as the billing account of the member.
    • non_resell: The member is not an account for a reseller. The member is an account that is not associated with a reseller. You can directly use the account to purchase Alibaba Cloud resources. The member is used as its own billing account.

    NOTE: This parameter is available only for resellers at the international site (alibabacloud.com).

    resource_directory_id str
    Resource directory ID
    status str
    Member joining status. CreateSuccess,CreateVerifying,CreateFailed,CreateExpired,CreateCancelled,PromoteVerifying,PromoteFailed,PromoteExpired,PromoteCancelled,PromoteSuccess,InviteSuccess,Removed
    tags Mapping[str, str]
    The tag of the resource
    type str

    Member type. The value of ResourceAccount indicates the resource account

    The following arguments will be discarded. Please use new fields as soon as possible:

    abandonAbleCheckIds List<String>
    . Field 'abandon_able_check_id' has been deprecated from provider version 1.249.0. New field 'abandonable_check_id' instead.

    Deprecated: Field 'abandon_able_check_id' has been deprecated since provider version 1.248.0. New field 'abandonable_check_id' instead.

    abandonableCheckIds List<String>
    The ID of the check item that can choose to abandon and continue to perform member deletion. The ID is obtained from the return parameter AbandonableChecks of GetAccountDeletionCheckResult.
    accountNamePrefix String
    Account name prefix. Empty the system randomly generated. Format: English letters, numbers, and special characters_.-can be entered. It must start and end with an English letter or number, and continuous special characters_.-cannot be entered '_.-'. The format of the full account name is @< ResourceDirectoryId>.aliyunid.com, for example: 'alice @ rd-3G ****.aliyunid.com' The account name must be unique in the resource directory.
    displayName String
    Member name
    folderId String
    The ID of the parent folder
    forceDelete Boolean
    Whether to force delete the account.
    joinMethod String
    Ways for members to join the resource directory. invited, created
    joinTime String
    The time when the member joined the resource directory
    modifyTime String
    The modification time of the invitation
    payerAccountId String
    The settlement account ID. If it is left blank, the newly created member will be used for self-settlement.
    resellAccountType String

    The identity type of the member. Valid values:

    • resell: The member is an account for a reseller. This is the default value. A relationship is automatically established between the member and the reseller. The management account of the resource directory must be used as the billing account of the member.
    • non_resell: The member is not an account for a reseller. The member is an account that is not associated with a reseller. You can directly use the account to purchase Alibaba Cloud resources. The member is used as its own billing account.

    NOTE: This parameter is available only for resellers at the international site (alibabacloud.com).

    resourceDirectoryId String
    Resource directory ID
    status String
    Member joining status. CreateSuccess,CreateVerifying,CreateFailed,CreateExpired,CreateCancelled,PromoteVerifying,PromoteFailed,PromoteExpired,PromoteCancelled,PromoteSuccess,InviteSuccess,Removed
    tags Map<String>
    The tag of the resource
    type String

    Member type. The value of ResourceAccount indicates the resource account

    The following arguments will be discarded. Please use new fields as soon as possible:

    Import

    Resource Manager Account can be imported using the id, e.g.

    $ pulumi import alicloud:resourcemanager/account:Account example <id>
    

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

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.78.0 published on Friday, May 16, 2025 by Pulumi