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
{
});
}
}
Coming soon!
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.resourcemanager.ResourceDirectory("example")import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const example = new alicloud.resourcemanager.ResourceDirectory("example", {});Create a ResourceDirectory Resource
new ResourceDirectory(name: string, args?: ResourceDirectoryArgs, opts?: CustomResourceOptions);def ResourceDirectory(resource_name, opts=None, __props__=None);func NewResourceDirectory(ctx *Context, name string, args *ResourceDirectoryArgs, opts ...ResourceOption) (*ResourceDirectory, error)public ResourceDirectory(string name, ResourceDirectoryArgs? args = null, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args ResourceDirectoryArgs
- 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 ResourceDirectoryArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ResourceDirectoryArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
ResourceDirectory Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The ResourceDirectory resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the ResourceDirectory resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Master
Account stringId The ID of the master account.
- Master
Account stringName The name of the master account.
- Root
Folder stringId The ID of the root folder.
- Id string
- The provider-assigned unique ID for this managed resource.
- Master
Account stringId The ID of the master account.
- Master
Account stringName The name of the master account.
- Root
Folder stringId The ID of the root folder.
- id string
- The provider-assigned unique ID for this managed resource.
- master
Account stringId The ID of the master account.
- master
Account stringName The name of the master account.
- root
Folder stringId The ID of the root folder.
- id str
- The provider-assigned unique ID for this managed resource.
- master_
account_ strid The ID of the master account.
- master_
account_ strname The name of the master account.
- root_
folder_ strid The ID of the root folder.
Look up an Existing ResourceDirectory Resource
Get an existing ResourceDirectory 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?: ResourceDirectoryState, opts?: CustomResourceOptions): ResourceDirectorystatic get(resource_name, id, opts=None, master_account_id=None, master_account_name=None, root_folder_id=None, __props__=None);func GetResourceDirectory(ctx *Context, name string, id IDInput, state *ResourceDirectoryState, opts ...ResourceOption) (*ResourceDirectory, error)public static ResourceDirectory Get(string name, Input<string> id, ResourceDirectoryState? 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:
- Master
Account stringId The ID of the master account.
- Master
Account stringName The name of the master account.
- Root
Folder stringId The ID of the root folder.
- Master
Account stringId The ID of the master account.
- Master
Account stringName The name of the master account.
- Root
Folder stringId The ID of the root folder.
- master
Account stringId The ID of the master account.
- master
Account stringName The name of the master account.
- root
Folder stringId The ID of the root folder.
- master_
account_ strid The ID of the master account.
- master_
account_ strname The name of the master account.
- root_
folder_ strid The ID of the root folder.
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.