Alibaba Cloud v3.37.0, May 15 23
Alibaba Cloud v3.37.0, May 15 23
alicloud.resourcemanager.Account
Explore with Pulumi AI
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+.
NOTE: From version 1.188.0, the resource can be destroyed. The member deletion feature is in invitational preview. You can contact the service manager of Alibaba Cloud to apply for a trial. see how to destroy it.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
// Add a Resource Manager Account.
var f1 = new AliCloud.ResourceManager.Folder("f1", new()
{
FolderName = "test1",
});
var example = new AliCloud.ResourceManager.Account("example", new()
{
DisplayName = "RDAccount",
FolderId = f1.Id,
});
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
f1, err := resourcemanager.NewFolder(ctx, "f1", &resourcemanager.FolderArgs{
FolderName: pulumi.String("test1"),
})
if err != nil {
return err
}
_, err = resourcemanager.NewAccount(ctx, "example", &resourcemanager.AccountArgs{
DisplayName: pulumi.String("RDAccount"),
FolderId: f1.ID(),
})
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.alicloud.resourcemanager.Folder;
import com.pulumi.alicloud.resourcemanager.FolderArgs;
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) {
var f1 = new Folder("f1", FolderArgs.builder()
.folderName("test1")
.build());
var example = new Account("example", AccountArgs.builder()
.displayName("RDAccount")
.folderId(f1.id())
.build());
}
}
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,
});
resources:
# Add a Resource Manager Account.
f1:
type: alicloud:resourcemanager:Folder
properties:
folderName: test1
example:
type: alicloud:resourcemanager:Account
properties:
displayName: RDAccount
folderId: ${f1.id}
Create Account Resource
new Account(name: string, args: AccountArgs, opts?: CustomResourceOptions);
@overload
def Account(resource_name: str,
opts: Optional[ResourceOptions] = None,
abandon_able_check_ids: Optional[Sequence[str]] = None,
account_name_prefix: Optional[str] = None,
display_name: Optional[str] = None,
folder_id: Optional[str] = None,
payer_account_id: Optional[str] = None,
tags: Optional[Mapping[str, Any]] = None)
@overload
def Account(resource_name: str,
args: AccountArgs,
opts: Optional[ResourceOptions] = 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.
- 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.
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
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 (-).
- Abandon
Able List<string>Check Ids The IDs of the check items that you can choose to ignore for the member deletion. If you want to delete the account, please use datasource
alicloud.resourcemanager.getAccountDeletionCheckTask
to get check ids and set them.- Account
Name stringPrefix The name prefix of account.
- Folder
Id string The ID of the parent folder.
- Payer
Account stringId The ID of the billing account. If you leave this parameter empty, the current account is used as the billing account.
- Dictionary<string, object>
A mapping of tags to assign to the resource.
NOTE: The member name must be unique within the resource directory.
- 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 (-).
- Abandon
Able []stringCheck Ids The IDs of the check items that you can choose to ignore for the member deletion. If you want to delete the account, please use datasource
alicloud.resourcemanager.getAccountDeletionCheckTask
to get check ids and set them.- Account
Name stringPrefix The name prefix of account.
- Folder
Id string The ID of the parent folder.
- Payer
Account stringId The ID of the billing account. If you leave this parameter empty, the current account is used as the billing account.
- map[string]interface{}
A mapping of tags to assign to the resource.
NOTE: The member name must be unique within the resource directory.
- 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 (-).
- abandon
Able List<String>Check Ids The IDs of the check items that you can choose to ignore for the member deletion. If you want to delete the account, please use datasource
alicloud.resourcemanager.getAccountDeletionCheckTask
to get check ids and set them.- account
Name StringPrefix The name prefix of account.
- folder
Id String The ID of the parent folder.
- payer
Account StringId The ID of the billing account. If you leave this parameter empty, the current account is used as the billing account.
- Map<String,Object>
A mapping of tags to assign to the resource.
NOTE: The member name must be unique within the resource directory.
- 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 (-).
- abandon
Able string[]Check Ids The IDs of the check items that you can choose to ignore for the member deletion. If you want to delete the account, please use datasource
alicloud.resourcemanager.getAccountDeletionCheckTask
to get check ids and set them.- account
Name stringPrefix The name prefix of account.
- folder
Id string The ID of the parent folder.
- payer
Account stringId The ID of the billing account. If you leave this parameter empty, the current account is used as the billing account.
- {[key: string]: any}
A mapping of tags to assign to the resource.
NOTE: The member name must be unique within the resource directory.
- 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 (-).
- abandon_
able_ Sequence[str]check_ ids The IDs of the check items that you can choose to ignore for the member deletion. If you want to delete the account, please use datasource
alicloud.resourcemanager.getAccountDeletionCheckTask
to get check ids and set them.- account_
name_ strprefix The name prefix of account.
- folder_
id str The ID of the parent folder.
- payer_
account_ strid The ID of the billing account. If you leave this parameter empty, the current account is used as the billing account.
- Mapping[str, Any]
A mapping of tags to assign to the resource.
NOTE: The member name must be unique within the resource directory.
- 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 (-).
- abandon
Able List<String>Check Ids The IDs of the check items that you can choose to ignore for the member deletion. If you want to delete the account, please use datasource
alicloud.resourcemanager.getAccountDeletionCheckTask
to get check ids and set them.- account
Name StringPrefix The name prefix of account.
- folder
Id String The ID of the parent folder.
- payer
Account StringId The ID of the billing account. If you leave this parameter empty, the current account is used as the billing account.
- Map<Any>
A mapping of tags to assign to the resource.
NOTE: The member name must be unique within the resource directory.
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
ResourceAccount
indicates 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
ResourceAccount
indicates 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
ResourceAccount
indicates 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
ResourceAccount
indicates 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
ResourceAccount
indicates 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
ResourceAccount
indicates the resource account.
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,
account_name_prefix: Optional[str] = None,
display_name: Optional[str] = None,
folder_id: Optional[str] = None,
join_method: Optional[str] = None,
join_time: Optional[str] = None,
modify_time: Optional[str] = None,
payer_account_id: Optional[str] = None,
resource_directory_id: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Mapping[str, Any]] = 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)
Resource lookup is not supported in YAML
- 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.
- Abandon
Able List<string>Check Ids The IDs of the check items that you can choose to ignore for the member deletion. If you want to delete the account, please use datasource
alicloud.resourcemanager.getAccountDeletionCheckTask
to get check ids and set them.- Account
Name stringPrefix The name prefix of 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 The ID of the billing account. If you leave this parameter empty, the current account is used as the billing account.
- 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
.- Dictionary<string, object>
A mapping of tags to assign to the resource.
NOTE: The member name must be unique within the resource directory.
- Type string
Member type. The value of
ResourceAccount
indicates the resource account.
- Abandon
Able []stringCheck Ids The IDs of the check items that you can choose to ignore for the member deletion. If you want to delete the account, please use datasource
alicloud.resourcemanager.getAccountDeletionCheckTask
to get check ids and set them.- Account
Name stringPrefix The name prefix of 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 The ID of the billing account. If you leave this parameter empty, the current account is used as the billing account.
- 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
.- map[string]interface{}
A mapping of tags to assign to the resource.
NOTE: The member name must be unique within the resource directory.
- Type string
Member type. The value of
ResourceAccount
indicates the resource account.
- abandon
Able List<String>Check Ids The IDs of the check items that you can choose to ignore for the member deletion. If you want to delete the account, please use datasource
alicloud.resourcemanager.getAccountDeletionCheckTask
to get check ids and set them.- account
Name StringPrefix The name prefix of 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 The ID of the billing account. If you leave this parameter empty, the current account is used as the billing account.
- 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
.- Map<String,Object>
A mapping of tags to assign to the resource.
NOTE: The member name must be unique within the resource directory.
- type String
Member type. The value of
ResourceAccount
indicates the resource account.
- abandon
Able string[]Check Ids The IDs of the check items that you can choose to ignore for the member deletion. If you want to delete the account, please use datasource
alicloud.resourcemanager.getAccountDeletionCheckTask
to get check ids and set them.- account
Name stringPrefix The name prefix of 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 The ID of the billing account. If you leave this parameter empty, the current account is used as the billing account.
- 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
.- {[key: string]: any}
A mapping of tags to assign to the resource.
NOTE: The member name must be unique within the resource directory.
- type string
Member type. The value of
ResourceAccount
indicates the resource account.
- abandon_
able_ Sequence[str]check_ ids The IDs of the check items that you can choose to ignore for the member deletion. If you want to delete the account, please use datasource
alicloud.resourcemanager.getAccountDeletionCheckTask
to get check ids and set them.- account_
name_ strprefix The name prefix of 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 The ID of the billing account. If you leave this parameter empty, the current account is used as the billing account.
- 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
.- Mapping[str, Any]
A mapping of tags to assign to the resource.
NOTE: The member name must be unique within the resource directory.
- type str
Member type. The value of
ResourceAccount
indicates the resource account.
- abandon
Able List<String>Check Ids The IDs of the check items that you can choose to ignore for the member deletion. If you want to delete the account, please use datasource
alicloud.resourcemanager.getAccountDeletionCheckTask
to get check ids and set them.- account
Name StringPrefix The name prefix of 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 The ID of the billing account. If you leave this parameter empty, the current account is used as the billing account.
- 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
.- Map<Any>
A mapping of tags to assign to the resource.
NOTE: The member name must be unique within the resource directory.
- type String
Member type. The value of
ResourceAccount
indicates the resource account.
Import
Resource Manager Account can be imported using the id, e.g.
$ pulumi import alicloud:resourcemanager/account:Account example 13148890145*****
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.