全部产品
云市场

ListNodesByQueue

更新时间:2019-09-24 16:14:00

按队列查询节点信息。

描述

按队列分组查询用户账户下单个集群的节点信息。

请求参数

名称 类型 是否必需 默认值 描述
Action String - 操作接口名,系统规定参数,取值:ListVolumes
ClusterId String - 集群ID。
RegionId String - 地域 ID。
QueueName String - 队列名。
PageNumber int 1 显示的页码,起始值为 1。
PageSize int 10 每页显示的条数,1-50。

返回参数

公共返回参数外返回如下结果:

名称 类型 描述
Nodes Array<NodeInfo> 节点信息数组。
TotalCount Integer 列表条目总数。
PageNumber Integer 当前页码。
PageSize Integer 本页条数。

其中,NodeInfo 结构包含以下字段:

名称 类型 描述
AddTime Date 加入集群时间。
CreateMode String 节点是如何创建的,manual 手动扩容, autoscale 自动扩容
HostName String 主机名称。
Id String 节点实例 ID。
ImageId String 镜像 ID。
ImageOwnerAlias String 镜像类型,system、self、others 或 marketplace。
InstanceInfo String 实例详细信息。
IpInfo String IP详细信息。其中包含:PrivateIpAddress和PublicIpAddress两种。
Location String 节点所在位置,是本地节点 OnPremise 还是公共云上节点 PublicCloud 。
LockReason String 节点被锁定类型,默认返回为空字符串。
SpotStrategy String 后付费实例的竞价策略。
Status String 节点状态。
TotalResources ResourceType 资源总量。
UsedResources ResourceType 计算节点资源使用量,其他类型节点返回值为空。
VSwitchId String 虚拟交换机ID。
VpcId String 专有网络ID。
ZoneId String 实例可用区ID。

其中,计算节点资源 ResourceType 结构包含以下字段:

名称 类型 描述
Cpu Integer CPU资源总量,单位:核。
Memory Integer 内存资源总量,单位:GB。
Gpu Integer GPU资源总量,单位:卡。

节点状态 Status 的可能取值:

取值 描述
uninit 未初始化
init 初始化中
ready 空闲
running 运行中
exception 异常

示例

请求示例

  1. https://ehpc.cn-hangzhou.aliyuncs.com/?Action=ListNodesByQueue&RegionId=cn-hangzhou&ClusterId=<集群ID>&QueueName=workq&<公共请求参数>

返回示例

XML格式

  1. <ListNodesByQueueResponse>
  2. <PageNumber>1</PageNumber>
  3. <TotalCount>3</TotalCount>
  4. <PageSize>50</PageSize>
  5. <RequestId>5457B047-AC0A-4C75-B212-59759E38810F</RequestId>
  6. <Nodes>
  7. <NodeInfo>
  8. <ImageId>m-bpcccccccccccccccekw4cd</ImageId>
  9. <IpInfo>
  10. <PrivateIpAddress>
  11. <IpAddress>170.6.1.208</IpAddress>
  12. </PrivateIpAddress>
  13. <PublicIpAddress>
  14. <IpAddress></IpAddress>
  15. </PublicIpAddress>
  16. </IpInfo>
  17. <TotalResources>
  18. <Cpu>2</Cpu>
  19. <Memory>16384</Memory>
  20. </TotalResources>
  21. <InstanceInfo>
  22. <ImageId>m-bpcccccccccccccccccccc2ekw4cd</ImageId>
  23. <VlanId></VlanId>
  24. <EipAddress>
  25. <IpAddress></IpAddress>
  26. <AllocationId></AllocationId>
  27. <InternetChargeType></InternetChargeType>
  28. </EipAddress>
  29. <ZoneId>cn-hangzhou-g</ZoneId>
  30. <IoOptimized>true</IoOptimized>
  31. <SerialNumber>adb22432-ccccccccccccccccccccc219f784bfc7</SerialNumber>
  32. <Cpu>2</Cpu>
  33. <Memory>16384</Memory>
  34. <DeviceAvailable>true</DeviceAvailable>
  35. <SecurityGroupIds>
  36. <SecurityGroupId>sg-bp1ecccccccccoi6dtz</SecurityGroupId>
  37. </SecurityGroupIds>
  38. <SaleCycle></SaleCycle>
  39. <AutoReleaseTime></AutoReleaseTime>
  40. <ResourceGroupId></ResourceGroupId>
  41. <OSType>linux</OSType>
  42. <OSName>CentOS 7.2 64位</OSName>
  43. <InstanceNetworkType>vpc</InstanceNetworkType>
  44. <HostName>compute0</HostName>
  45. <CreationTime>2019-04-22T11:53Z</CreationTime>
  46. <EcsCapacityReservationAttr>
  47. <CapacityReservationPreference>none</CapacityReservationPreference>
  48. <CapacityReservationId></CapacityReservationId>
  49. </EcsCapacityReservationAttr>
  50. <RegionId>cn-hangzhou</RegionId>
  51. <DeletionProtection>false</DeletionProtection>
  52. <OperationLocks></OperationLocks>
  53. <ExpiredTime>2099-12-31T15:59Z</ExpiredTime>
  54. <InnerIpAddress></InnerIpAddress>
  55. <InstanceTypeFamily>ecs.r5</InstanceTypeFamily>
  56. <InstanceId>i-bpccccccccc9v788g</InstanceId>
  57. <NetworkInterfaces>
  58. <NetworkInterface>
  59. <MacAddress>00:16:3e:11:8e:dd</MacAddress>
  60. <PrimaryIpAddress>172.16.1.208</PrimaryIpAddress>
  61. <NetworkInterfaceId>eni-bp1ccccccccccccccueuoggzn5</NetworkInterfaceId>
  62. </NetworkInterface>
  63. </NetworkInterfaces>
  64. <InternetMaxBandwidthIn>0</InternetMaxBandwidthIn>
  65. <CreditSpecification></CreditSpecification>
  66. <InternetChargeType>PayByTraffic</InternetChargeType>
  67. <SpotStrategy>NoSpot</SpotStrategy>
  68. <StoppedMode>Not-applicable</StoppedMode>
  69. <InternetMaxBandwidthOut>0</InternetMaxBandwidthOut>
  70. <VpcAttributes>
  71. <NatIpAddress></NatIpAddress>
  72. <PrivateIpAddress>
  73. <IpAddress>172.16.1.208</IpAddress>
  74. </PrivateIpAddress>
  75. <VSwitchId>vsw-bp16ccccccccced144r</VSwitchId>
  76. <VpcId>vpc-bp1ccccccccq4txlicvt</VpcId>
  77. </VpcAttributes>
  78. <SpotPriceLimit>0</SpotPriceLimit>
  79. <StartTime>2019-04-22T14:29Z</StartTime>
  80. <InstanceName>ehpc-hz-5ccccc28c_compute0</InstanceName>
  81. <Description></Description>
  82. <OSNameEn>CentOS 7.2 64 bit</OSNameEn>
  83. <PublicIpAddress></PublicIpAddress>
  84. <InstanceType>ecs.r5.large</InstanceType>
  85. <Status>Running</Status>
  86. <Recyclable>false</Recyclable>
  87. <ClusterId></ClusterId>
  88. <GPUSpec></GPUSpec>
  89. <InstanceChargeType>PostPaid</InstanceChargeType>
  90. <GPUAmount>0</GPUAmount>
  91. <DedicatedHostAttribute>
  92. <DedicatedHostId></DedicatedHostId>
  93. <DedicatedHostName></DedicatedHostName>
  94. </DedicatedHostAttribute>
  95. <DeploymentSetId></DeploymentSetId>
  96. </InstanceInfo>
  97. <Location>public_cloud</Location>
  98. <ZoneId>cn-hangzhou-g</ZoneId>
  99. <ImageOwnerAlias>self</ImageOwnerAlias>
  100. <VSwitchId>vsw-bpccccccz6ted144r</VSwitchId>
  101. <HostName>compute0</HostName>
  102. <SpotStrategy>NoSpot</SpotStrategy>
  103. <CreateMode>manual</CreateMode>
  104. <VpcId>vpc-bcccccccccubaq4txlicvt</VpcId>
  105. <UsedResources>
  106. <Cpu>0</Cpu>
  107. <Memory>0</Memory>
  108. </UsedResources>
  109. <Status>running</Status>
  110. <Id>i-bp1ccccccv6e9v788g</Id>
  111. <LockReason></LockReason>
  112. <AddTime>2019-04-22T11:53:01.000Z</AddTime>
  113. </NodeInfo>
  114. </Nodes>
  115. </ListNodesByQueueResponse>

JSON格式

  1. {
  2. "PageNumber": 1,
  3. "TotalCount": 3,
  4. "PageSize": 50,
  5. "RequestId": "5457B047-AC0A-4C75-B212-59759E38810F",
  6. "Nodes": {
  7. "NodeInfo": [
  8. {
  9. "ImageId": "m-bpcccccccccccccccekw4cd",
  10. "IpInfo": {
  11. "PrivateIpAddress": {
  12. "IpAddress": [
  13. "100.16.1.208"
  14. ]
  15. },
  16. "PublicIpAddress": {
  17. "IpAddress": [
  18. ""
  19. ]
  20. }
  21. },
  22. "TotalResources": {
  23. "Cpu": 2,
  24. "Memory": 16384
  25. },
  26. "InstanceInfo": {
  27. "ImageId": "m-bpcccccccccccccccccccc2ekw4cd",
  28. "VlanId": "",
  29. "EipAddress": {
  30. "IpAddress": "",
  31. "AllocationId": "",
  32. "InternetChargeType": ""
  33. },
  34. "ZoneId": "cn-hangzhou-g",
  35. "IoOptimized": true,
  36. "SerialNumber": "adb22432-ccccccccccccccccccccc219f784bfc7",
  37. "Cpu": 2,
  38. "Memory": 16384,
  39. "DeviceAvailable": true,
  40. "SecurityGroupIds": {
  41. "SecurityGroupId": [
  42. "sg-bp1ecccccccccoi6dtz"
  43. ]
  44. },
  45. "SaleCycle": "",
  46. "AutoReleaseTime": "",
  47. "ResourceGroupId": "",
  48. "OSType": "linux",
  49. "OSName": "CentOS 7.2 64位",
  50. "InstanceNetworkType": "vpc",
  51. "HostName": "compute0",
  52. "CreationTime": "2019-04-22T11:53Z",
  53. "EcsCapacityReservationAttr": {
  54. "CapacityReservationPreference": "none",
  55. "CapacityReservationId": ""
  56. },
  57. "RegionId": "cn-hangzhou",
  58. "DeletionProtection": false,
  59. "OperationLocks": {
  60. "LockReason": []
  61. },
  62. "ExpiredTime": "2099-12-31T15:59Z",
  63. "InnerIpAddress": {
  64. "IpAddress": []
  65. },
  66. "InstanceTypeFamily": "ecs.r5",
  67. "InstanceId": "i-bpccccccccc9v788g",
  68. "NetworkInterfaces": {
  69. "NetworkInterface": [
  70. {
  71. "MacAddress": "00:16:3e:11:8e:dd",
  72. "PrimaryIpAddress": "172.16.1.208",
  73. "NetworkInterfaceId": "eni-bp1ccccccccccccccueuoggzn5"
  74. }
  75. ]
  76. },
  77. "InternetMaxBandwidthIn": 0,
  78. "CreditSpecification": "",
  79. "InternetChargeType": "PayByTraffic",
  80. "SpotStrategy": "NoSpot",
  81. "StoppedMode": "Not-applicable",
  82. "InternetMaxBandwidthOut": 0,
  83. "VpcAttributes": {
  84. "NatIpAddress": "",
  85. "PrivateIpAddress": {
  86. "IpAddress": [
  87. "172.16.1.208"
  88. ]
  89. },
  90. "VSwitchId": "vsw-bp16ccccccccced144r",
  91. "VpcId": "vpc-bp1ccccccccq4txlicvt"
  92. },
  93. "SpotPriceLimit": 0,
  94. "StartTime": "2019-04-22T14:29Z",
  95. "InstanceName": "ehpc-hz-5ccccc28c_compute0",
  96. "Description": "",
  97. "OSNameEn": "CentOS 7.2 64 bit",
  98. "PublicIpAddress": {
  99. "IpAddress": []
  100. },
  101. "InstanceType": "ecs.r5.large",
  102. "Status": "Running",
  103. "Recyclable": false,
  104. "ClusterId": "",
  105. "GPUSpec": "",
  106. "InstanceChargeType": "PostPaid",
  107. "GPUAmount": 0,
  108. "DedicatedHostAttribute": {
  109. "DedicatedHostId": "",
  110. "DedicatedHostName": ""
  111. },
  112. "DeploymentSetId": ""
  113. },
  114. "Location": "public_cloud",
  115. "ZoneId": "cn-hangzhou-g",
  116. "ImageOwnerAlias": "self",
  117. "VSwitchId": "vsw-bpccccccz6ted144r",
  118. "HostName": "compute0",
  119. "SpotStrategy": "NoSpot",
  120. "CreateMode": "manual",
  121. "VpcId": "vpc-bcccccccccubaq4txlicvt",
  122. "UsedResources": {
  123. "Cpu": 0,
  124. "Memory": 0
  125. },
  126. "Status": "running",
  127. "Id": "i-bp1ccccccv6e9v788g",
  128. "LockReason": "",
  129. "AddTime": "2019-04-22T11:53:01.000Z"
  130. },
  131. ]
  132. }
  133. }

错误码

查询 E-HPC 接口错误码请访问 错误码。更多错误码,请访问 API 错误中心