Changes the instances added to an application group.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ModifyMonitorGroupInstances |
The operation that you want to perform. Set the value to ModifyMonitorGroupInstances. |
GroupId | Long | Yes | 12345 |
The ID of the application group. |
Instances.N.Category | String | Yes | ECS |
The abbreviation of the name of the service to which the instances to be added to the application group belong. Valid values:
|
Instances.N.InstanceId | String | Yes | i-a2d5q7pm12**** |
The ID of the instance. Valid values of N: 1 to 2000. |
Instances.N.InstanceName | String | Yes | HostName |
The name of the instance. Valid values of N: 1 to 2000. |
Instances.N.RegionId | String | Yes | cn-hangzhou |
The ID of the region where the instance resides. Valid values of N: 1 to 2000. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Code | Integer | 200 |
The HTTP status code. Note The status code 200 indicates that the call was successful.
|
Message | String | success |
The returned message. |
RequestId | String | FEC7EDB3-9B08-4AC0-A42A-329F5D14B95A |
The ID of the request. |
Success | Boolean | true |
Indicates whether the call was successful. The value true indicates a success. The value false indicates a failure. |
Examples
Sample requests
http(s)://[Endpoint]/? Action=ModifyMonitorGroupInstances
&GroupId=123456
&Instances.1.Category=ECS
&Instances.1.InstanceId=i-a2d5q7pm12****
&Instances.1.InstanceName=hostName
&Instances.1.RegionId=cn-hangzhou
&<Common request parameters>
Sample success responses
XML
format
<ModifyMonitorGroupInstancesResponse>
<RequestId>02977C39-9E74-430A-B35B-04CFBF0E7F64</RequestId>
<Success>true</Success>
<Code>200</Code>
</ModifyMonitorGroupInstancesResponse>
JSON
format
{
"RequestId": "02977C39-9E74-430A-B35B-04CFBF0E7F64",
"Success": true,
"Code": 200
}
Error codes
For a list of error codes, visit the API Error Center.