You can call this operation to query instances in an auto provisioning group.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The region ID of the auto provisioning group. You can call the DescribeRegions operation to query the most recent region list. | cn-hangzhou |
PageNumber | integer | No | The number of the page to return. Pages start from page 1. Default value: 1. | 1 |
PageSize | integer | No | The number of entries to return on each page. Maximum value: 100. Default value: 10. | 10 |
AutoProvisioningGroupId | string | Yes | The ID of the auto provisioning group. | apg-uf6jel2bbl62wh13**** |
Response parameters
Examples
Sample success responses
JSON
format
{
"PageSize": 10,
"RequestId": "B48A12CD-1295-4A38-A8F0-0E92C937****",
"PageNumber": 1,
"TotalCount": 2,
"Instances": {
"Instance": [
{
"Status": "Running",
"CreationTime": "2017-12-10T04:04Z",
"IsSpot": true,
"CPU": 2,
"InstanceId": "i-bp67acfmxazb4p****",
"NetworkType": "vpc",
"InstanceType": "ecs.g5.large",
"RegionId": "cn-hangzhou",
"IoOptimized": true,
"OsType": "linux",
"ZoneId": "cn-hangzhou-g",
"Memory": 1024
}
]
}
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | MissingParameter | The specified parameter "AutoProvisioningGroupId" should not be null. | - |
400 | MissingParamter.RegionId | The regionId should not be null. | The RegionId parameter is required. |
403 | Forbidden.RAM | User not authorized to operate on the specified resource, or this API doesn't support RAM. | - |
404 | InvalidAutoProvisioningGroupId.NotFound | The specified AutoProvisioningGroupId does not exist. | - |
For a list of error codes, visit the Service error codes.