名称: ListInstances
使用场景: 调用 ListInstances,查看某个 E-MapReduce(EMR)集群所有节点。
前置条件: 已创建 EMR 集群。
RequestParam:
TOP公共参数:
Action=ListInstances
Version=2022-06-30
Region=cn-beijing
名称 | 类型 | 必填 | 描述 | 示例 |
---|---|---|---|---|
ClusterId | String | Y | EMR集群的集群ID | emr-xxx |
HostGroupId | String | N | EMR集群的节点组ID | 0960e630-69b4-49a5-9f09-xxx |
Statuses | String | N | EMR集群节点状态 | RUNNING |
Roles | String | N | EMR集群主机角色 | MASTER |
PageNum | Integer | N | 分页号 | 1 |
PageSize | Integer | N | 单页记录数 | 5 |
http(s)://[Endpoint]/?Action=ListInstances &ClusterId=emr-12345 &pageNum=0 &pageSize=5 &<公共请求参数>
{ "ResponseMetadata":{ "RequestId":"2022041411314101022509407502xxx", "Action":"ListInstances", "Version":"2021-09-15", "Service":"emr_qa", "Region":"cn-guilin-boe", "Error":null }, "Result":{ "items":[ { "InstanceId":"i-xxx", "ClusterId":"emr-xxx", "InstanceGroupId":"337fd82e-xxx", "InstanceName":"emr-xxx-master-1", "InstanceShortName":"emr-master-1", "Ip":"192.168.1.xx", "Eip":null, "PayType":"POST", // POST 按量付费; PRE 预付费 "Status":"RUNNING", "Role":"MASTER", "Region":"cn-guilin-boe", "Zone":null, "Specification":"ecs.g1.2xlarge", "InstanceType":"General", "Cpu":8, "Memory":32, "NetQuota":2, "SystemStorageType":"ESSD_PL1", "SystemStorageSize":120, "DataStorageType":"ESSD_PL1", "DataStorageSize":80, "DataDiskQuantity":1, "IsInstanceDeleted":false }, { "InstanceId":"i-xxx", "ClusterId":"emr-xxx", "InstanceGroupId":"337fd82e-xxx", "InstanceName":"emr-xxx-master-2", "InstanceShortName":"emr-master-2", "Ip":"192.168.1.xx", "Eip":null, "PayType":"POST", // POST 按量付费; PRE 预付费 "Status":"RUNNING", "Role":"MASTER", "Region":"cn-guilin-boe", "Zone":null, "Specification":"ecs.g1.2xlarge", "InstanceType":"General", "Cpu":8, "Memory":32, "NetQuota":2, "SystemStorageType":"ESSD_PL1", "SystemStorageSize":120, "DataStorageType":"ESSD_PL1", "DataStorageSize":80, "DataDiskQuantity":1, "IsInstanceDeleted":false }, { "InstanceId":"i-xxx", "ClusterId":"emr-xxx", "InstanceGroupId":"337fd82e-xxx", "InstanceName":"emr-xxx-master-3", "InstanceShortName":"emr-master-3", "Ip":"192.168.1.xx", "Eip":null, "PayType":"POST", // POST 按量付费; PRE 预付费 "Status":"RUNNING", "Role":"MASTER", "Region":"cn-guilin-boe", "Zone":null, "Specification":"ecs.g1.2xlarge", "InstanceType":"General", "Cpu":8, "Memory":32, "NetQuota":2, "SystemStorageType":"ESSD_PL1", "SystemStorageSize":120, "DataStorageType":"ESSD_PL1", "DataStorageSize":80, "DataDiskQuantity":1, "IsInstanceDeleted":false }, { "InstanceId":"i-xxx", "ClusterId":"emr-xxx", "InstanceGroupId":"5d86a283-xxx", "InstanceName":"emr-xxx-core-1", "InstanceShortName":"emr-core-1", "Ip":"192.168.1.xx", "Eip":null, "PayType":"POST", // POST 按量付费; PRE 预付费 "Status":"RUNNING", "Role":"CORE", "Region":"cn-guilin-boe", "Zone":null, "Specification":"ecs.g1.2xlarge", "InstanceType":"General", "Cpu":8, "Memory":32, "NetQuota":2, "SystemStorageType":"ESSD_PL1", "SystemStorageSize":80, "DataStorageType":"ESSD_PL1", "DataStorageSize":80, "DataDiskQuantity":1, "IsInstanceDeleted":false }, { "InstanceId":"i-xxx", "ClusterId":"emr-xxx", "InstanceGroupId":"5d86a283-xxx", "InstanceName":"emr-xxx-core-2", "InstanceShortName":"emr-core-2", "Ip":"192.168.1.xx", "Eip":null, "PayType":"POST", // POST 按量付费; PRE 预付费 "Status":"RUNNING", "Role":"CORE", "Region":"cn-guilin-boe", "Zone":null, "Specification":"ecs.g1.2xlarge", "InstanceType":"General", "Cpu":8, "Memory":32, "NetQuota":2, "SystemStorageType":"ESSD_PL1", "SystemStorageSize":80, "DataStorageType":"ESSD_PL1", "DataStorageSize":80, "DataDiskQuantity":1, "IsInstanceDeleted":false } ], "total":5, "pages":1, "pageNum":0, "pageSize":10 } }