根据集群 ID 获取机器列表

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求头

该接口使用公共请求头,无特殊请求头。请参见公共请求参数文档。

请求语法

GET /pop/v5/resource/cluster_member_list HTTPS|HTTP

请求参数

名称 类型 是否必选 示例值 描述
ClusterId String 52984524-6d48-4bbd-85f2-a34b0e5bb521

集群 ID

CurrentPage Integer 1

分页查询,当前第几页。默认 1

PageSize Integer 50

分页查询,每页几条。默认 1000

返回数据

名称 类型 示例值 描述
Code Integer 200

code 码

Message String success

信息

RequestId String b197-40ab-9155-7ca7

唯一请求ID

ClusterMemberPage Struct

含有分页信息的对象

CurrentPage Integer 1

当前第几页

PageSize Integer 10

每页机器数量

TotalSize Integer 5

总页数

ClusterMemberList Array

机器对象列表

ClusterMemberId String adb03eeb-3adf-4d7e-afe1-03d1ad453708

集群机器 ID

ClusterId String 52984524-6d48-4bbd-85f2-a34b0e5bb521

集群 ID

EcuId String 70ed3f59-b476-49aa-be09-9e6c375d8929

这台 ECU 的唯一标示 ID,可以通过在 ECS 上执行 dmidecode 获取

EcsId String i-2zej4i2jdf3ntwhjigne

ECS ID

Status Integer 1

机器状态。1 运行中,0 转化中,-1 转化失败,-2 离线

CreateTime Long 1573281038175

创建时间

UpdateTime Long 1573281041113

最后变更时间

示例

请求示例

GET /pop/v5/resource/cluster_member_list HTTP/1.1
公共请求头
{
  "ClusterId": "52984524-6d48-4bbd-85f2-a34b0e5bb521"
}

正常返回示例

JSON 格式

{
	"Message": "success",
	"Code": 200,
	"ClusterMemberPage": {
		"ClusterMemberList": {
			"ClusterMember": [
				{
					"ClusterMemberId": "adb03eeb-3adf-4d7e-afe1-03d1ad453708",
					"Status": 1,
					"EcsId": "i-2zej4i2jdf3ntwhjigne",
					"ClusterId": "52984524-6d48-4bbd-85f2-a34b0e5bb521",
					"CreateTime": 1573281038175,
					"UpdateTime": 1573281041113,
					"EcuId": "70ed3f59-b476-49aa-be09-9e6c375d8929"
				},
				{
					"ClusterMemberId": "8f797d66-a7e1-4329-802b-b86d9212193c",
					"Status": 1,
					"EcsId": "i-2zej4i2jdf3ntwhjignc",
					"ClusterId": "52984524-6d48-4bbd-85f2-a34b0e5bb521",
					"CreateTime": 1573281038162,
					"UpdateTime": 1573281041304,
					"EcuId": "f6917537-b28d-456e-8d00-567985d27e73"
				},
				{
					"ClusterMemberId": "1a289406-f22a-44e1-b254-1491ae8c1101",
					"Status": 1,
					"EcsId": "i-2zej4i2jdf3ntwhjigng",
					"ClusterId": "52984524-6d48-4bbd-85f2-a34b0e5bb521",
					"CreateTime": 1573281038150,
					"UpdateTime": 1573281040844,
					"EcuId": "0de2ebdb-9490-4fc4-be41-6eddbe61a1ee"
				},
				{
					"ClusterMemberId": "6b75ae95-3c25-496e-8fd1-a85d60ea6064",
					"Status": 1,
					"EcsId": "i-2zej4i2jdf3ntwhjignd",
					"ClusterId": "52984524-6d48-4bbd-85f2-a34b0e5bb521",
					"CreateTime": 1573281038138,
					"UpdateTime": 1573281041366,
					"EcuId": "6f9cb7fd-bbe1-4cbd-b549-f3f02364fa21"
				},
				{
					"ClusterMemberId": "d618ba60-78af-49b6-a64b-c212cd256f22",
					"Status": 1,
					"EcsId": "i-2zej4i2jdf3ntwhjignf",
					"ClusterId": "52984524-6d48-4bbd-85f2-a34b0e5bb521",
					"CreateTime": 1573281038127,
					"UpdateTime": 1573281041155,
					"EcuId": "cfe7f474-3861-453e-b236-887d493298ac"
				}
			]
		},
		"PageSize": 10,
		"TotalSize": 5,
		"CurrentPage": 1
	}
}

XML 格式

<Message>success</Message>
<Code>200</Code>
<ClusterMemberPage>
    <ClusterMemberList>
        <ClusterMember>
            <ClusterMemberId>adb03eeb-3adf-4d7e-afe1-03d1ad453708</ClusterMemberId>
            <Status>1</Status>
            <EcsId>i-2zej4i2jdf3ntwhjigne</EcsId>
            <ClusterId>52984524-6d48-4bbd-85f2-a34b0e5bb521</ClusterId>
            <CreateTime>1573281038175</CreateTime>
            <UpdateTime>1573281041113</UpdateTime>
            <EcuId>70ed3f59-b476-49aa-be09-9e6c375d8929</EcuId>
        </ClusterMember>
        <ClusterMember>
            <ClusterMemberId>8f797d66-a7e1-4329-802b-b86d9212193c</ClusterMemberId>
            <Status>1</Status>
            <EcsId>i-2zej4i2jdf3ntwhjignc</EcsId>
            <ClusterId>52984524-6d48-4bbd-85f2-a34b0e5bb521</ClusterId>
            <CreateTime>1573281038162</CreateTime>
            <UpdateTime>1573281041304</UpdateTime>
            <EcuId>f6917537-b28d-456e-8d00-567985d27e73</EcuId>
        </ClusterMember>
        <ClusterMember>
            <ClusterMemberId>1a289406-f22a-44e1-b254-1491ae8c1101</ClusterMemberId>
            <Status>1</Status>
            <EcsId>i-2zej4i2jdf3ntwhjigng</EcsId>
            <ClusterId>52984524-6d48-4bbd-85f2-a34b0e5bb521</ClusterId>
            <CreateTime>1573281038150</CreateTime>
            <UpdateTime>1573281040844</UpdateTime>
            <EcuId>0de2ebdb-9490-4fc4-be41-6eddbe61a1ee</EcuId>
        </ClusterMember>
        <ClusterMember>
            <ClusterMemberId>6b75ae95-3c25-496e-8fd1-a85d60ea6064</ClusterMemberId>
            <Status>1</Status>
            <EcsId>i-2zej4i2jdf3ntwhjignd</EcsId>
            <ClusterId>52984524-6d48-4bbd-85f2-a34b0e5bb521</ClusterId>
            <CreateTime>1573281038138</CreateTime>
            <UpdateTime>1573281041366</UpdateTime>
            <EcuId>6f9cb7fd-bbe1-4cbd-b549-f3f02364fa21</EcuId>
        </ClusterMember>
        <ClusterMember>
            <ClusterMemberId>d618ba60-78af-49b6-a64b-c212cd256f22</ClusterMemberId>
            <Status>1</Status>
            <EcsId>i-2zej4i2jdf3ntwhjignf</EcsId>
            <ClusterId>52984524-6d48-4bbd-85f2-a34b0e5bb521</ClusterId>
            <CreateTime>1573281038127</CreateTime>
            <UpdateTime>1573281041155</UpdateTime>
            <EcuId>cfe7f474-3861-453e-b236-887d493298ac</EcuId>
        </ClusterMember>
    </ClusterMemberList>
    <PageSize>10</PageSize>
    <TotalSize>5</TotalSize>
    <CurrentPage>1</CurrentPage>
</ClusterMemberPage>

错误码

访问错误中心查看更多错误码。