Todos os produtos
Search
Central de documentação

Resource Orchestration Service:DATASOURCE::ResourceManager::ResourceGroup

Última atualização: Jun 27, 2026

Consulta informações sobre um grupo de recursos.

Sintaxe

{
  "Type": "DATASOURCE::ResourceManager::ResourceGroup",
  "Properties": {
    "IncludeTags": Boolean,
    "ResourceGroupId": String,
    "RefreshOptions": String
  }
}

Propriedades

Propriedade

Tipo

Obrigatória

Editável

Descrição

Restrição

IncludeTags

Boolean

Não

Sim

Define se as informações de tag serão retornadas.

Valores válidos:

  • false (padrão)

  • true

ResourceGroupId

String

Não

Sim

ID do grupo de recursos.

Nenhuma.

RefreshOptions

String

Não

Sim

Política de atualização dos recursos da fonte de dados durante a atualização da pilha.

Valores válidos:

  • Never (padrão): não atualize os recursos da fonte de dados durante a atualização da pilha.

  • Always: atualize os recursos da fonte de dados durante a atualização da pilha.

Valores de retorno

Fn::GetAtt

  • Status: status do grupo de recursos.

  • RegionStatuses: status do grupo de recursos em cada região.

  • AccountId: ID da conta Alibaba Cloud à qual o grupo de recursos pertence.

  • ResourceGroupId: ID do grupo de recursos.

  • DisplayName: nome de exibição do grupo de recursos.

  • CreateDate: horário de criação do grupo de recursos, no formato UTC.

  • Tags: tags do grupo de recursos.

  • Name: nome do grupo de recursos.

Exemplos

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  ResourceGroupId:
    AssociationProperty: ALIYUN::ECS::ResourceGroup::ResourceGroupId
    Type: String
    Description:
      en: The ID of the resource group.
    Required: false
    MinLength: 1
    MaxLength: 50
Resources:
  ExtensionDataSource:
    Type: DATASOURCE::ResourceManager::ResourceGroup
    Properties:
      ResourceGroupId:
        Ref: ResourceGroupId
Outputs:
  Status:
    Description: The status of the resource group.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Status
  RegionStatuses:
    Description: The status of the resource group in each region.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - RegionStatuses
  AccountId:
    Description: The ID of the Alibaba Cloud account to which the resource group belongs.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - AccountId
  ResourceGroupId:
    Description: The ID of the resource group.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - ResourceGroupId
  DisplayName:
    Description: The display name of the resource group.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - DisplayName
  CreateDate:
    Description: The time when the resource group was created.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - CreateDate
  Tags:
    Description: The tags of the resource group.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Tags
  Name:
    Description: The name of the resource group.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Name
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "ResourceGroupId": {
      "AssociationProperty": "ALIYUN::ECS::ResourceGroup::ResourceGroupId",
      "Type": "String",
      "Description": {
        "en": "The ID of the resource group."
      },
      "Required": false,
      "MinLength": 1,
      "MaxLength": 50
    }
  },
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::ResourceManager::ResourceGroup",
      "Properties": {
        "ResourceGroupId": {
          "Ref": "ResourceGroupId"
        }
      }
    }
  },
  "Outputs": {
    "Status": {
      "Description": "The status of the resource group.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Status"
        ]
      }
    },
    "RegionStatuses": {
      "Description": "The status of the resource group in each region.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "RegionStatuses"
        ]
      }
    },
    "AccountId": {
      "Description": "The ID of the Alibaba Cloud account to which the resource group belongs.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "AccountId"
        ]
      }
    },
    "ResourceGroupId": {
      "Description": "The ID of the resource group.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ResourceGroupId"
        ]
      }
    },
    "DisplayName": {
      "Description": "The display name of the resource group.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "DisplayName"
        ]
      }
    },
    "CreateDate": {
      "Description": "The time when the resource group was created.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "CreateDate"
        ]
      }
    },
    "Tags": {
      "Description": "The tags of the resource group.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Tags"
        ]
      }
    },
    "Name": {
      "Description": "The name of the resource group.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Name"
        ]
      }
    }
  }
}