All Products
Search
Document Center

Resource Orchestration Service:ALIYUN::CMS::MonitorGroupInstances

Last Updated:Aug 20, 2026

The ALIYUN::CMS::MonitorGroupInstances type is used to add resources to an application group.

Syntax

{
  "Type": "ALIYUN::CMS::MonitorGroupInstances",
  "Properties": {
    "Instances": List,
    "GroupId": String
  }
}

Properties

Property name

Type

Required

Update allowed

Description

Constraints

Instances

List

Yes

No

The resource instances.

For more information, see Instances properties.

GroupId

String

Yes

No

The ID of the application group.

None

Instances syntax

"Instances": [
  {
    "InstanceName": String,
    "Category": String,
    "InstanceId": String,
    "RegionId": String
  }
]

Instances properties

Property Name

Type

Required

Update allowed

Description

Constraints

InstanceName

String

Yes

No

The instance name.

None

Category

String

Yes

No

The name or specification of the cloud service to which the resource instance belongs.

Valid values:

  • ecs: Elastic Compute Service.

  • rds: Relational Database Service.

  • ads: AnalyticDB for MySQL.

  • slb: Server Load Balancer.

  • vpc: virtual private cloud (VPC).

  • apigateway: API Gateway.

  • cdn: content delivery network (CDN).

  • cs: Container Service for Kubernetes.

  • DCDN provides full-site acceleration.

  • ddos: Anti-DDoS Pro and Anti-DDoS Premium.

  • eip: Elastic IP Address.

  • Elasticsearch refers to Alibaba Cloud Elasticsearch.

  • emr: E-MapReduce.

  • ess: Auto Scaling.

  • hbase: ApsaraDB for HBase.

  • iot_edge: IoT Edge.

  • k8s_pod: a pod of Container Service for Kubernetes.

  • kvstore_sharding: ApsaraDB for Redis sharded cluster instance.

  • kvstore_splitrw: ApsaraDB for Redis read/write splitting instance.

  • kvstore_standard: ApsaraDB for Redis standard instance.

  • memcache: ApsaraDB for Memcache.

  • SMQ: Simple Message Queue (formerly MNS).

  • mongodb: ApsaraDB for MongoDB replica set instance.

  • mongodb_cluster: ApsaraDB for MongoDB standalone instance.

  • mongodb_sharding: ApsaraDB for MongoDB sharded cluster instance.

  • mq_topic: a topic of Simple Message Queue (formerly MNS).

  • ocs: ApsaraDB for Memcache.

  • opensearch: OpenSearch.

  • oss: Object Storage Service.

  • polardb: PolarDB.

  • petadata: HybridDB for MySQL.

  • sharebandwidthpackages: Internet Shared Bandwidth package.

  • sls: Simple Log Service.

  • vpn: VPN Gateway.

InstanceId

String

Yes

No

The ID of the resource instance.

None

RegionId

String

Yes

No

The region ID of the instance.

None

Return values

Fn::GetAtt

GroupId: The ID of the application group.

Examples

YAML

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  InstanceId:
    Type: String
    AssociationProperty: ALIYUN::ECS::Instance::InstanceId
  GroupId:
    Type: String
    Description: The ID of the application group.
Resources:
  MonitorGroupInstances:
    Type: ALIYUN::CMS::MonitorGroupInstances
    Properties:
      Instances:
        - InstanceName: TestECS
          Category: ecs
          InstanceId:
            Ref: InstanceId
          RegionId:
            Ref: ALIYUN::Region
      GroupId:
        Ref: GroupId
Outputs:
  GroupId:
    Description: The ID of the application group.
    Value:
      Fn::GetAtt:
        - MonitorGroupInstances
        - GroupId

JSON

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "InstanceId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::Instance::InstanceId"
    },
    "GroupId": {
      "Type": "String",
      "Description": "The ID of the application group."
    }
  },
  "Resources": {
    "MonitorGroupInstances": {
      "Type": "ALIYUN::CMS::MonitorGroupInstances",
      "Properties": {
        "Instances": [
          {
            "InstanceName": "TestECS",
            "Category": "ecs",
            "InstanceId": {
              "Ref": "InstanceId"
            },
            "RegionId": {
              "Ref": "ALIYUN::Region"
            }
          }
        ],
        "GroupId": {
          "Ref": "GroupId"
        }
      }
    }
  },
  "Outputs": {
    "GroupId": {
      "Description": "The ID of the application group.",
      "Value": {
        "Fn::GetAtt": [
          "MonitorGroupInstances",
          "GroupId"
        ]
      }
    }
  }
}