Adds resources to an application group.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | CreateMonitorGroupInstances |
The operation that you want to perform. Set the value to CreateMonitorGroupInstances. |
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-2ze26xj5wwy12**** |
The ID of the instance to be added to the application group. |
Instances.N.InstanceName | String | Yes | xxxxx |
The name of the instance. |
Instances.N.RegionId | String | Yes | cn-hangzhou |
The ID of the region where the instance resides. Example: cn-hangzhou. |
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 | 1BC69FEB-56CD-4555-A0E2-02536A24A946 |
The ID of the request. |
Success | Boolean | true |
Indicates whether the call was successful. |
Examples
Sample requests
http(s)://[Endpoint]/? Action=CreateMonitorGroupInstances
&GroupId=12345
&Instances.1.Category=ECS
&Instances.1.InstanceId=i-2ze26xj5wwy12****
&Instances.1.InstanceName=xxxxx
&Instances.1.RegionId= cn-hangzhou
&<Common request parameters>
Sample success responses
XML
format
<CreateMonitorGroupInstancesResponse>
<RequestId>1BC69FEB-56CD-4555-A0E2-02536A24A946</RequestId>
<Success>true</Success>
<Code>200</Code>
</CreateMonitorGroupInstancesResponse>
JSON
format
{
"RequestId": "1BC69FEB-56CD-4555-A0E2-02536A24A946",
"Success": true,
"Code": 200
}
Error codes
For a list of error codes, visit the API Error Center.