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,
});
}
}
Coming soon!
import pulumi
import pulumi_alicloud as alicloud
# Add a Resource Manager Account.
f1 = alicloud.resourcemanager.Folder("f1", folder_name="test1")
example = alicloud.resourcemanager.Account("example",
display_name="RDAccount",
folder_id=f1.id)import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
// Add a Resource Manager Account.
const f1 = new alicloud.resourcemanager.Folder("f1", {folderName: "test1"});
const example = new alicloud.resourcemanager.Account("example", {
displayName: "RDAccount",
folderId: f1.id,
});Create a Account Resource
new Account(name: string, args: AccountArgs, opts?: CustomResourceOptions);def Account(resource_name, opts=None, display_name=None, folder_id=None, payer_account_id=None, __props__=None);func NewAccount(ctx *Context, name string, args AccountArgs, opts ...ResourceOption) (*Account, error)public Account(string name, AccountArgs args, CustomResourceOptions? opts = null)- 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.
- opts ResourceOptions
- A bag of options that control this 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.
Account Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Account resource accepts the following input properties:
- Display
Name string Member name. The length is 2 ~ 50 characters or Chinese characters, which can include Chinese characters, English letters, numbers, underscores (_), dots (.) And dashes (-).
- Folder
Id string The ID of the parent folder.
- Payer
Account stringId Settlement account ID. If the value is empty, the current account will be used for settlement.
- Display
Name string Member name. The length is 2 ~ 50 characters or Chinese characters, which can include Chinese characters, English letters, numbers, underscores (_), dots (.) And dashes (-).
- Folder
Id string The ID of the parent folder.
- Payer
Account stringId Settlement account ID. If the value is empty, the current account will be used for settlement.
- display
Name string Member name. The length is 2 ~ 50 characters or Chinese characters, which can include Chinese characters, English letters, numbers, underscores (_), dots (.) And dashes (-).
- folder
Id string The ID of the parent folder.
- payer
Account stringId Settlement account ID. If the value is empty, the current account will be used for settlement.
- display_
name str Member name. The length is 2 ~ 50 characters or Chinese characters, which can include Chinese characters, English letters, numbers, underscores (_), dots (.) And dashes (-).
- folder_
id str The ID of the parent folder.
- payer_
account_ strid Settlement account ID. If the value is empty, the current account will be used for settlement.
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.
- Join
Method string Ways for members to join the resource directory. Valid values:
invited,created.- Join
Time string The time when the member joined the resource directory.
- Modify
Time string The modification time of the invitation.
- Resource
Directory stringId Resource directory ID.
- Status string
Member joining status. Valid values:
CreateSuccess,CreateVerifying,CreateFailed,CreateExpired,CreateCancelled,PromoteVerifying,PromoteFailed,PromoteExpired,PromoteCancelled,PromoteSuccess,InviteSuccess,Removed.- Type string
Member type. The value of
ResourceAccountindicates the resource account.
- Id string
- The provider-assigned unique ID for this managed resource.
- Join
Method string Ways for members to join the resource directory. Valid values:
invited,created.- Join
Time string The time when the member joined the resource directory.
- Modify
Time string The modification time of the invitation.
- Resource
Directory stringId Resource directory ID.
- Status string
Member joining status. Valid values:
CreateSuccess,CreateVerifying,CreateFailed,CreateExpired,CreateCancelled,PromoteVerifying,PromoteFailed,PromoteExpired,PromoteCancelled,PromoteSuccess,InviteSuccess,Removed.- Type string
Member type. The value of
ResourceAccountindicates the resource account.
- id string
- The provider-assigned unique ID for this managed resource.
- join
Method string Ways for members to join the resource directory. Valid values:
invited,created.- join
Time string The time when the member joined the resource directory.
- modify
Time string The modification time of the invitation.
- resource
Directory stringId Resource directory ID.
- status string
Member joining status. Valid values:
CreateSuccess,CreateVerifying,CreateFailed,CreateExpired,CreateCancelled,PromoteVerifying,PromoteFailed,PromoteExpired,PromoteCancelled,PromoteSuccess,InviteSuccess,Removed.- type string
Member type. The value of
ResourceAccountindicates the resource account.
- id str
- The provider-assigned unique ID for this managed resource.
- join_
method str Ways for members to join the resource directory. Valid values:
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_ strid Resource directory ID.
- status str
Member joining status. Valid values:
CreateSuccess,CreateVerifying,CreateFailed,CreateExpired,CreateCancelled,PromoteVerifying,PromoteFailed,PromoteExpired,PromoteCancelled,PromoteSuccess,InviteSuccess,Removed.- type str
Member type. The value of
ResourceAccountindicates the resource account.
Look up an 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): Accountstatic get(resource_name, id, opts=None, display_name=None, folder_id=None, join_method=None, join_time=None, modify_time=None, payer_account_id=None, resource_directory_id=None, status=None, type=None, __props__=None);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)- 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.
The following state arguments are supported:
- Display
Name string Member name. The length is 2 ~ 50 characters or Chinese characters, which can include Chinese characters, English letters, numbers, underscores (_), dots (.) And dashes (-).
- Folder
Id string The ID of the parent folder.
- Join
Method string Ways for members to join the resource directory. Valid values:
invited,created.- Join
Time string The time when the member joined the resource directory.
- Modify
Time string The modification time of the invitation.
- Payer
Account stringId Settlement account ID. If the value is empty, the current account will be used for settlement.
- Resource
Directory stringId Resource directory ID.
- Status string
Member joining status. Valid values:
CreateSuccess,CreateVerifying,CreateFailed,CreateExpired,CreateCancelled,PromoteVerifying,PromoteFailed,PromoteExpired,PromoteCancelled,PromoteSuccess,InviteSuccess,Removed.- Type string
Member type. The value of
ResourceAccountindicates the resource account.
- Display
Name string Member name. The length is 2 ~ 50 characters or Chinese characters, which can include Chinese characters, English letters, numbers, underscores (_), dots (.) And dashes (-).
- Folder
Id string The ID of the parent folder.
- Join
Method string Ways for members to join the resource directory. Valid values:
invited,created.- Join
Time string The time when the member joined the resource directory.
- Modify
Time string The modification time of the invitation.
- Payer
Account stringId Settlement account ID. If the value is empty, the current account will be used for settlement.
- Resource
Directory stringId Resource directory ID.
- Status string
Member joining status. Valid values:
CreateSuccess,CreateVerifying,CreateFailed,CreateExpired,CreateCancelled,PromoteVerifying,PromoteFailed,PromoteExpired,PromoteCancelled,PromoteSuccess,InviteSuccess,Removed.- Type string
Member type. The value of
ResourceAccountindicates the resource account.
- display
Name string Member name. The length is 2 ~ 50 characters or Chinese characters, which can include Chinese characters, English letters, numbers, underscores (_), dots (.) And dashes (-).
- folder
Id string The ID of the parent folder.
- join
Method string Ways for members to join the resource directory. Valid values:
invited,created.- join
Time string The time when the member joined the resource directory.
- modify
Time string The modification time of the invitation.
- payer
Account stringId Settlement account ID. If the value is empty, the current account will be used for settlement.
- resource
Directory stringId Resource directory ID.
- status string
Member joining status. Valid values:
CreateSuccess,CreateVerifying,CreateFailed,CreateExpired,CreateCancelled,PromoteVerifying,PromoteFailed,PromoteExpired,PromoteCancelled,PromoteSuccess,InviteSuccess,Removed.- type string
Member type. The value of
ResourceAccountindicates the resource account.
- display_
name str Member name. The length is 2 ~ 50 characters or Chinese characters, which can include Chinese characters, English letters, numbers, underscores (_), dots (.) And dashes (-).
- folder_
id str The ID of the parent folder.
- join_
method str Ways for members to join the resource directory. Valid values:
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_ strid Settlement account ID. If the value is empty, the current account will be used for settlement.
- resource_
directory_ strid Resource directory ID.
- status str
Member joining status. Valid values:
CreateSuccess,CreateVerifying,CreateFailed,CreateExpired,CreateCancelled,PromoteVerifying,PromoteFailed,PromoteExpired,PromoteCancelled,PromoteSuccess,InviteSuccess,Removed.- type str
Member type. The value of
ResourceAccountindicates the resource account.
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.