Class ResourceDirectory
Provides a Resource Manager Resource Directory resource. Resource Directory enables you to establish an organizational structure for the resources used by applications of your enterprise. You can plan, build, and manage the resources in a centralized manner by using only one resource directory.
For information about Resource Manager Resource Directory and how to use it, see What is Resource Manager Resource Directory.
NOTE: Available in v1.84.0+.
NOTE: An account can only be used to enable a resource directory after it passes enterprise real-name verification. An account that only passed individual real-name verification cannot be used to enable a resource directory.
NOTE: Before you destroy the resource, make sure that the following requirements are met:
- All member accounts must be removed from the resource directory.
- All folders except the root folder must be deleted from the resource directory.
Example Usage
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var example = new AliCloud.ResourceManager.ResourceDirectory("example", new AliCloud.ResourceManager.ResourceDirectoryArgs
{
});
}
}
Inherited Members
Namespace: Pulumi.AliCloud.ResourceManager
Assembly: Pulumi.AliCloud.dll
Syntax
public class ResourceDirectory : CustomResource
Constructors
View SourceResourceDirectory(String, ResourceDirectoryArgs, CustomResourceOptions)
Create a ResourceDirectory resource with the given unique name, arguments, and options.
Declaration
public ResourceDirectory(string name, ResourceDirectoryArgs args = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| ResourceDirectoryArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceMasterAccountId
The ID of the master account.
Declaration
public Output<string> MasterAccountId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
MasterAccountName
The name of the master account.
Declaration
public Output<string> MasterAccountName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
RootFolderId
The ID of the root folder.
Declaration
public Output<string> RootFolderId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, ResourceDirectoryState, CustomResourceOptions)
Get an existing ResourceDirectory resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static ResourceDirectory Get(string name, Input<string> id, ResourceDirectoryState 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. |
| ResourceDirectoryState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| ResourceDirectory |