全部产品
Search
文档中心

Resource Orchestration Service:ALIYUN::ResourceManager::ResourceGroup

更新时间:Feb 07, 2026

Tipe resource ALIYUN::ResourceManager::ResourceGroup digunakan untuk membuat resource group.

Syntax

{
  "Type": "ALIYUN::ResourceManager::ResourceGroup",
  "Properties": {
    "DisplayName": String,
    "Name": String,
    "Tags": List
  }
}

Properties

Property Name

Type

Required

Updatable

Description

Constraint

DisplayName

String

Yes

Yes

Nama tampilan dari resource group.

Panjang: 1 hingga 30 karakter. Dapat berisi karakter Tionghoa, huruf Inggris, angka, dan tanda hubung (-).

Name

String

Yes

No

Identifier unik dari resource group.

Panjang: 3 hingga 12 karakter. Harus diawali dengan huruf Inggris. Dapat berisi huruf Inggris, angka, dan tanda hubung (-).

Tags

List

No

No

Tags.

Untuk informasi selengkapnya, lihat properti Tags.

Tags Syntax

"Tags": [
  {
    "Key": String,
    "Value": String
  }
]  

Tags Properties

Property Name

Type

Required

Updatable

Description

Constraint

Key

String

Yes

No

kunci tag.

None

Value

String

No

No

nilai tag.

None

Return Values

Fn::GetAtt

  • RegionStatuses: status resource group di setiap wilayah.

  • AccountId: ID akun Alibaba Cloud tempat resource group tersebut berada.

  • DisplayName: nama tampilan resource group.

  • Id: ID resource group.

  • Name: identifier unik resource group.

  • ResourceGroupId: ID resource group.

Examples

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "DisplayName": {
      "Type": "String",
      "Description": "The display name of the resource group"
    },
    "Name": {
      "Type": "String",
      "Description": "The unique identifier of the resource group"
    }
  },
  "Resources": {
    "ResourceManagerResourceGroup": {
      "Type": "ALIYUN::ResourceManager::ResourceGroup",
      "Properties": {
        "DisplayName": {
          "Ref": "DisplayName"
        },
        "Name": {
          "Ref": "Name"
        }
      }
    }
  },
  "Outputs": {
    "RegionStatuses": {
      "Description": "The status of the resource group in all regions",
      "Value": {
        "Fn::GetAtt": [
          "ResourceManagerResourceGroup",
          "RegionStatuses"
        ]
      }
    },
    "AccountId": {
      "Description": "The ID of the Alibaba Cloud account to which the resource group belongs",
      "Value": {
        "Fn::GetAtt": [
          "ResourceManagerResourceGroup",
          "AccountId"
        ]
      }
    },
    "DisplayName": {
      "Description": "The display name of the resource group",
      "Value": {
        "Fn::GetAtt": [
          "ResourceManagerResourceGroup",
          "DisplayName"
        ]
      }
    },
    "Id": {
      "Description": "The ID of the resource group",
      "Value": {
        "Fn::GetAtt": [
          "ResourceManagerResourceGroup",
          "Id"
        ]
      }
    },
    "Name": {
      "Description": "The unique identifier of the resource group",
      "Value": {
        "Fn::GetAtt": [
          "ResourceManagerResourceGroup",
          "Name"
        ]
      }
    }
  }
}
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
 DisplayName:
  Type: String
  Description: The display name of the resource group
 Name:
  Type: String
  Description: The unique identifier of the resource group
Resources:
 ResourceManagerResourceGroup:
  Type: 'ALIYUN::ResourceManager::ResourceGroup'
  Properties:
   DisplayName:
    Ref: DisplayName
   Name:
    Ref: Name
Outputs:
 RegionStatuses:
  Description: The status of the resource group in all regions
  Value:
   'Fn::GetAtt':
    - ResourceManagerResourceGroup
    - RegionStatuses
 AccountId:
  Description: The ID of the Alibaba Cloud account to which the resource group belongs
  Value:
   'Fn::GetAtt':
    - ResourceManagerResourceGroup
    - AccountId
 DisplayName:
  Description: The display name of the resource group
  Value:
   'Fn::GetAtt':
    - ResourceManagerResourceGroup
    - DisplayName
 Id:
  Description: The ID of the resource group
  Value:
   'Fn::GetAtt':
    - ResourceManagerResourceGroup
    - Id
 Name:
  Description: The unique identifier of the resource group
  Value:
   'Fn::GetAtt':
    - ResourceManagerResourceGroup
    - Name