All Products
Search
Document Center

Elastic Compute Service:DescribeAutoProvisioningGroupInstances

Last Updated:Apr 11, 2024

You can call this operation to query instances in an auto provisioning group.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The region ID of the auto provisioning group. You can call the DescribeRegions operation to query the most recent region list.

cn-hangzhou
PageNumberintegerNo

The number of the page to return.

Pages start from page 1.

Default value: 1.

1
PageSizeintegerNo

The number of entries to return on each page.

Maximum value: 100.

Default value: 10.

10
AutoProvisioningGroupIdstringYes

The ID of the auto provisioning group.

apg-uf6jel2bbl62wh13****

Response parameters

ParameterTypeDescriptionExample
object
PageSizeinteger

The number of entries returned per page.

10
RequestIdstring

The ID of the request.

B48A12CD-1295-4A38-A8F0-0E92C937****
PageNumberinteger

The page number of the returned page.

1
TotalCountinteger

The number of queried instances in the auto provisioning group.

2
Instancesobject []

An array consisting of Instance data.

Statusstring

The status of the instance.

Running
CreationTimestring

The time when the instance was created.

2017-12-10T04:04Z
IsSpotboolean

Indicates whether the instance is a preemptible instance.

true
CPUinteger

The number of vCPUs.

2
InstanceIdstring

The ID of the instance.

i-bp67acfmxazb4p****
NetworkTypestring

The network type of the instance. Valid values:

  • vpc
  • classic
vpc
InstanceTypestring

The instance type of the ECS instance.

ecs.g5.large
RegionIdstring

The region ID of the instance.

cn-hangzhou
IoOptimizedboolean

Indicates whether the instance is I/O optimized.

true
OsTypestring

The operating system type of the instance. Valid values:

  • windows
  • linux
linux
ZoneIdstring

The zone ID of the instance.

cn-hangzhou-g
Memoryinteger

The memory size of the instance. Unit: MiB.

1024

Examples

Sample success responses

JSONformat

{
  "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 codeError codeError messageDescription
400MissingParameterThe specified parameter "AutoProvisioningGroupId" should not be null.-
400MissingParamter.RegionIdThe regionId should not be null.The RegionId parameter is required.
403Forbidden.RAMUser not authorized to operate on the specified resource, or this API doesn't support RAM.-
404InvalidAutoProvisioningGroupId.NotFoundThe specified AutoProvisioningGroupId does not exist.-

For a list of error codes, visit the Service error codes.