Class Account
Provides a Resource Manager Account resource. Member accounts are containers for resources in a resource directory. These accounts isolate resources and serve as organizational units in the resource directory. You can create member accounts in a folder and then manage them in a unified manner. For information about Resource Manager Account and how to use it, see What is Resource Manager Account.
NOTE: Available in v1.83.0+.
Example Usage
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
// Add a Resource Manager Account.
var f1 = new AliCloud.ResourceManager.Folder("f1", new AliCloud.ResourceManager.FolderArgs
{
FolderName = "test1",
});
var example = new AliCloud.ResourceManager.Account("example", new AliCloud.ResourceManager.AccountArgs
{
DisplayName = "RDAccount",
FolderId = f1.Id,
});
}
}
Inherited Members
Namespace: Pulumi.AliCloud.ResourceManager
Assembly: Pulumi.AliCloud.dll
Syntax
public class Account : CustomResource
Constructors
View SourceAccount(String, AccountArgs, CustomResourceOptions)
Create a Account resource with the given unique name, arguments, and options.
Declaration
public Account(string name, AccountArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| AccountArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceDisplayName
Member name. The length is 2 ~ 50 characters or Chinese characters, which can include Chinese characters, English letters, numbers, underscores (_), dots (.) And dashes (-).
Declaration
public Output<string> DisplayName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
FolderId
The ID of the parent folder.
Declaration
public Output<string> FolderId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
JoinMethod
Ways for members to join the resource directory. Valid values: invited, created.
Declaration
public Output<string> JoinMethod { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
JoinTime
The time when the member joined the resource directory.
Declaration
public Output<string> JoinTime { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ModifyTime
The modification time of the invitation.
Declaration
public Output<string> ModifyTime { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
PayerAccountId
Settlement account ID. If the value is empty, the current account will be used for settlement.
Declaration
public Output<string> PayerAccountId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ResourceDirectoryId
Resource directory ID.
Declaration
public Output<string> ResourceDirectoryId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Status
Member joining status. Valid values: CreateSuccess,CreateVerifying,CreateFailed,CreateExpired,CreateCancelled,PromoteVerifying,PromoteFailed,PromoteExpired,PromoteCancelled,PromoteSuccess,InviteSuccess,Removed.
Declaration
public Output<string> Status { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Type
Member type. The value of ResourceAccount indicates the resource account.
Declaration
public Output<string> Type { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, AccountState, CustomResourceOptions)
Get an existing Account resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static Account Get(string name, Input<string> id, AccountState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| AccountState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| Account |