Show / Hide Table of Contents

Class ResourceGroup

Provides a Resource Manager Resource Group resource. If you need to group cloud resources according to business departments, projects, and other dimensions, you can create resource groups. For information about Resource Manager Resoource Group and how to use it, see What is Resource Manager Resource Group

NOTE: Available in v1.82.0+.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
public MyStack()
{
    var example = new AliCloud.ResourceManager.ResourceGroup("example", new AliCloud.ResourceManager.ResourceGroupArgs
    {
        DisplayName = "testrd",
    });
}

}
Inheritance
System.Object
Resource
CustomResource
ResourceGroup
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 ResourceGroup : CustomResource

Constructors

View Source

ResourceGroup(String, ResourceGroupArgs, CustomResourceOptions)

Create a ResourceGroup resource with the given unique name, arguments, and options.

Declaration
public ResourceGroup(string name, ResourceGroupArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

ResourceGroupArgs 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

AccountId

The ID of the Alibaba Cloud account to which the resource group belongs.

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

CreateDate

The time when the resource group was created.

  • region_statuses -The status of the resource group in all regions.
  • region_id - The region ID.
  • status - The status of the regional resource group.
Declaration
public Output<string> CreateDate { get; }
Property Value
Type Description
Output<System.String>
View Source

DisplayName

The display name of the resource group. The name must be 1 to 30 characters in length and can contain letters, digits, periods (.), at signs (@), and hyphens (-).

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

Name

The unique identifier of the resource group.The identifier must be 3 to 12 characters in length and can contain letters, digits, periods (.), hyphens (-), and underscores (_). The identifier must start with a letter.

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

RegionStatuses

Declaration
public Output<ImmutableArray<ResourceGroupRegionStatus>> RegionStatuses { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<ResourceGroupRegionStatus>>
View Source

Status

The status of the resource group.

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

Methods

View Source

Get(String, Input<String>, ResourceGroupState, CustomResourceOptions)

Get an existing ResourceGroup resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static ResourceGroup Get(string name, Input<string> id, ResourceGroupState 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.

ResourceGroupState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
ResourceGroup
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.