Show / Hide Table of Contents

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
    {
    });
}

}
Inheritance
System.Object
Resource
CustomResource
ResourceDirectory
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.AliCloud.ResourceManager
Assembly: Pulumi.AliCloud.dll
Syntax
public class ResourceDirectory : CustomResource

Constructors

View Source

ResourceDirectory(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 Source

MasterAccountId

The ID of the master account.

Declaration
public Output<string> MasterAccountId { get; }
Property Value
Type Description
Output<System.String>
View Source

MasterAccountName

The name of the master account.

Declaration
public Output<string> MasterAccountName { get; }
Property Value
Type Description
Output<System.String>
View Source

RootFolderId

The ID of the root folder.

Declaration
public Output<string> RootFolderId { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(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
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.