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",
        });
    }

}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

example = alicloud.resourcemanager.ResourceGroup("example", display_name="testrd")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const example = new alicloud.resourcemanager.ResourceGroup("example", {
    displayName: "testrd",
});

Create a ResourceGroup Resource

def ResourceGroup(resource_name, opts=None, display_name=None, name=None, __props__=None);
name string
The unique name of the resource.
args ResourceGroupArgs
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 ResourceGroupArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ResourceGroupArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

ResourceGroup Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The ResourceGroup resource accepts the following input properties:

DisplayName string

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 (-).

Name string

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.

DisplayName string

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 (-).

Name string

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.

displayName string

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 (-).

name string

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.

display_name str

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 (-).

name str

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.

Outputs

All input properties are implicitly available as output properties. Additionally, the ResourceGroup resource produces the following output properties:

AccountId string

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

CreateDate string

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.

Id string
The provider-assigned unique ID for this managed resource.
RegionStatuses List<Pulumi.AliCloud.ResourceManager.Outputs.ResourceGroupRegionStatus>
Status string

The status of the resource group.

AccountId string

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

CreateDate string

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.

Id string
The provider-assigned unique ID for this managed resource.
RegionStatuses []ResourceGroupRegionStatus
Status string

The status of the resource group.

accountId string

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

createDate string

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.

id string
The provider-assigned unique ID for this managed resource.
regionStatuses ResourceGroupRegionStatus[]
status string

The status of the resource group.

account_id str

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

create_date str

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.

id str
The provider-assigned unique ID for this managed resource.
region_statuses List[ResourceGroupRegionStatus]
status str

The status of the resource group.

Look up an Existing ResourceGroup Resource

Get an existing ResourceGroup 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?: ResourceGroupState, opts?: CustomResourceOptions): ResourceGroup
static get(resource_name, id, opts=None, account_id=None, create_date=None, display_name=None, name=None, region_statuses=None, status=None, __props__=None);
func GetResourceGroup(ctx *Context, name string, id IDInput, state *ResourceGroupState, opts ...ResourceOption) (*ResourceGroup, error)
public static ResourceGroup Get(string name, Input<string> id, ResourceGroupState? 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:

AccountId string

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

CreateDate string

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.

DisplayName string

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 (-).

Name string

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.

RegionStatuses List<Pulumi.AliCloud.ResourceManager.Inputs.ResourceGroupRegionStatusArgs>
Status string

The status of the resource group.

AccountId string

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

CreateDate string

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.

DisplayName string

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 (-).

Name string

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.

RegionStatuses []ResourceGroupRegionStatus
Status string

The status of the resource group.

accountId string

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

createDate string

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.

displayName string

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 (-).

name string

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.

regionStatuses ResourceGroupRegionStatus[]
status string

The status of the resource group.

account_id str

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

create_date str

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.

display_name str

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 (-).

name str

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.

region_statuses List[ResourceGroupRegionStatus]
status str

The status of the resource group.

Supporting Types

ResourceGroupRegionStatus

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

RegionId string
Status string

The status of the resource group.

RegionId string
Status string

The status of the resource group.

regionId string
status string

The status of the resource group.

regionId str
status str

The status of the resource group.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.