Skip to main content

DescribeInstanceStatus

Description

call DescribeInstanceStatus to obtain the status information of multiple ECS instances.

Request Method

POST

Request Path

/apsara/route/Ecs/DescribeInstanceStatus

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
ZoneIdBODYstringNocn-qingdao-env17-amtest11001-athe zone to which the instance belongs.
PageSizeBODYintegerNo10the number of rows per page set during paging query. Value range: 1~50 default value: 10.
ClusterIdBODYstringNocls-bp67acfmxazb4p****the cluster ID to which the instance belongs.
PageNumberBODYintegerNo1page number of instance status list. starting value: 1. default value: 1.
regionIdBODYstringYesNo sample value for this parameter.region id
RegionIdBODYstringYescn-qingdao-env17-d01the region ID to which the instance belongs. You can call the DescribeRegions to view the latest Alibaba Cloud region list.
versionBODYstringNo2016-01-01version of api
InstanceId.NBODYrepeatlistNoi-bp1j4i2jdf3owlhe****one or more ECS instance IDs. The value range of N is 1~100. Multiple values are in the form of duplicate lists.

Return data

NameTypeSample valueDescription
StatusstringRunninginstance status.
TotalCountinteger58the total number of instances.
PageSizeinteger1the number of rows per page set when entering.
RequestIdstring473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83Erequest ID.
InstanceIdstringi-bp1j4i2jdf3owlhe****instance ID.
PageNumberinteger1page number of instance list.
InstanceStatusNo sample value for this parameter.No description for this parameter.
InstanceStatusesarray of instancestatusNo sample value for this parameter.instance status set type (InstanceStatus).

Example

Successful Response example

{
"Status":"Running",
"TotalCount":"58",
"PageSize":"1",
"RequestId":"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"InstanceId":"i-bp1j4i2jdf3owlhe****",
"PageNumber":"1",
"InstanceStatus":"",
"InstanceStatuses":""
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}