ALIYUN::CMS::MonitorGroupInstances is used to add instances to an application group.
Syntax
{
"Type": "ALIYUN::CMS::MonitorGroupInstances",
"Properties": {
"Instances": List,
"GroupId": String
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
---|---|---|---|---|---|
Instances | List | Yes | No | The list of one or more instances. | For more information, see the Instances properties section. |
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 | 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:
|
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": "String",
"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: String
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