You need to enable JavaScript to run this app.
导航

ListInstances(查询节点)

最近更新时间2022.10.09 10:28:00

首次发布时间2022.10.09 10:28:00

1 接口说明

名称: ListInstances
使用场景: 调用 ListInstances,查看某个 E-MapReduce(EMR)集群所有节点。
前置条件: 已创建 EMR 集群。

2 请求参数

RequestParam:
TOP公共参数:
Action=ListInstances
Version=2022-06-30
Region=cn-beijing

名称类型必填描述示例
ClusterIdStringYEMR集群的集群IDemr-xxx
HostGroupIdStringNEMR集群的节点组ID0960e630-69b4-49a5-9f09-xxx
StatusesStringNEMR集群节点状态RUNNING
RolesStringNEMR集群主机角色MASTER
PageNumIntegerN分页号1
PageSizeIntegerN单页记录数5

3 请求示例

http(s)://[Endpoint]/?Action=ListInstances
&ClusterId=emr-12345
&pageNum=0
&pageSize=5
&<公共请求参数>

4 返回示例

{
    "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
    }
}