ALIYUN::CMS::MonitorGroupInstances is used to add instances to an application group.

Syntax

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

Properties

Property Type Required Editable Description Constraint
Instances List Yes No The list of one or more instances. For more information, see Instances properties.
GroupId Integer Yes No The ID of the application group. None

Instances syntax

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

Instances properties

Property Type Required Editable Description Constraint
InstanceName String Yes No The name of the instance. None
Category String Yes No The name and specifications of the service to which the instance in the application group belongs. Valid values:
  • ecs: Elastic Compute Service (ECS)
  • rds: ApsaraDB RDS
  • ads: AnalyticDB for MySQL
  • slb: Server Load Balancer (SLB)
  • vpc: Virtual Private Cloud (VPC)
  • apigateway: API Gateway
  • cdn: Alibaba Cloud Content Delivery Network (CDN)
  • cs: Container Service for Kubernetes
  • dcdn: Dynamic Route for CDN
  • ddos: Anti-DDoS Pro and Anti-DDoS Premium
  • eip: Elastic IP Address (EIP)
  • elasticsearch: Elasticsearch
  • emr: E-MapReduce (EMR)
  • ess: Auto Scaling
  • hbase: ApsaraDB for HBase
  • iot_edge: IoT Edge
  • k8s_pod: pods in Container Service for Kubernetes
  • kvstore_sharding: ApsaraDB for Redis of the cluster master-replica architecture
  • kvstore_splitrw: ApsaraDB for Redis of the read/write splitting architecture
  • kvstore_standard: ApsaraDB for Redis of the standard master-replica architecture
  • memcache: ApsaraDB for Memcache
  • mns: Message Service (MNS)
  • mongodb: ApsaraDB for MongoDB of the replica set architecture
  • mongodb_cluster: ApsaraDB for MongoDB of the standalone architecture
  • mongodb_sharding: ApsaraDB for MongoDB of the sharded cluster architecture
  • mq_topic: MNS topics
  • ocs: ApsaraDB for Memcache of earlier versions
  • opensearch: Open Search
  • oss: Object Storage Service (OSS)
  • polardb: PolarDB
  • petadata: HybridDB for MySQL
  • scdn: Secure Content Delivery Network (SCDN)
  • sharebandwidthpackages: EIP Bandwidth Plan
  • sls: Log Service
  • vpn: VPN Gateway
InstanceId String Yes No The ID of the instance. None
RegionId String Yes No The region ID of the instance. None

Response parameters

Fn::GetAtt

GroupId: the ID of the application group.

Examples

JSON format

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "Instances": {
      "Type": "Json"
    },
    "GroupId": {
      "Type": "Number",
      "Description": "The ID of the application group."
    }
  },
  "Resources": {
    "MonitorGroupInstances": {
      "Type": "ALIYUN::CMS::MonitorGroupInstances",
      "Properties": {
        "Instances": {
          "Ref": "Instances"
        },
        "GroupId": {
          "Ref": "GroupId"
        }
      }
    }
  },
  "Outputs": {
    "GroupId": {
      "Description": "The ID of the application group.",
      "Value": {
        "Fn::GetAtt": [
          "MonitorGroupInstances",
          "GroupId"
        ]
      }
    }
  }
}

YAML format

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  Instances:
    Type: Json
  GroupId:
    Type: Number
    Description: The ID of the application group.
Resources:
  MonitorGroupInstances:
    Type: 'ALIYUN::CMS::MonitorGroupInstances'
    Properties:
      Instances:
        Ref: Instances
      GroupId:
        Ref: GroupId
Outputs:
  GroupId:
    Description: The ID of the application group.
    Value:
      'Fn::GetAtt':
        - MonitorGroupInstances
        - GroupId