描述
获取集群实例列表(ListClusterInstances
)。
请求语法
GET /clusters/{ClusterId}/groups/{GroupName}/instances?Marker={Marker}&MaxItemCount={MaxItemCount}
属性说明
属性名称 |
类型 |
是否必需 |
描述 |
ClusterId |
stirng |
是 |
集群ID |
GroupName |
string |
是 |
该集群中的group名字 |
Marker |
string |
否 |
本页起始资源标识符。默认为空字符串。 |
MaxItemCount |
int |
否 |
实际返回最大资源数量。默认值50,最大值100。 |
返回信息
成功
返回200状态码以及ClusterInstance列表信息,如下。
{
"NextMarker": "",
"Items":[{
"Id": "i-123456789",
"Hint": "",
"State": "Pending",
"IpAddress": "10.160.25.1",
"CreationTime": "2016-01-18T09:15:41.005259Z"
}]
}
属性说明
属性名称 |
类型 |
描述 |
NextMarker |
string |
下一页起始资源标识符。最后一页该值为空。 |
Items |
array |
资源列表。 |
错误码
错误码 |
错误信息 |
状态码 |
语义 |
InvalidMaxItemCount |
Specified parameter MaxItemCount is not valid. Its type must be integer. |
400 |
MaxItemCount必须是一个integer。 |
InvalidMaxItemCount |
Specified parameter MaxItemCount is not valid. It must be in [0, 100]. |
400 |
MaxItemCount的大小必须在0与100之间。 |
InvalidResource.NotFound |
Specified resource is not found. |
404 |
用户请求的资源不存在。 |