接口说明
分页查询租户订购的尊享版节点列表,列表按照节点创建时间降序排列。若不存在已订购的尊享版节点,则返回空列表。
URL
POST https://ecloud.10086.cn/api/openapi-cloudphone/api/v1/zycloudphone/resource/zh/host/list
请求参数
Header
|
参数名称
|
类型
|
必填
|
描述
|
|
pool
|
string
|
是
|
资源池ID |
Body
|
参数名称
|
类型
|
必填
|
描述
|
|
req
|
OpenapiQueryHostListReq
|
是
|
req |
|
clusterId
|
string
|
否
|
节点所在集群ID |
|
currentPage
|
integer(int32)
|
否
|
页码,默认1 |
|
hostIds
|
<string> array
|
否
|
节点ID列表 |
|
hostIp
|
string
|
否
|
节点IP |
|
hostName
|
string
|
否
|
节点名称 |
|
pageSize
|
integer(int32)
|
否
|
每页条数,默认10 |
|
publicIpv4
|
string
|
否
|
节点绑定的公网IPV4 |
请求示例
POST https://ecloud.10086.cn/api/openapi-cloudphone/api/v1/zycloudphone/resource/zh/host/list
{
"currentPage":1,
"pageSize":10,
"clusterId":"46d1940c-987c-4002-be34-12119b8e65ad",
"hostIds":[
"1811707545332031490"
],
"hostIp":"192.168.0.3",
"hostName":"bms-44964731-000",
"publicIpv4":"10.251.137.225"
}
返回参数
返回码:200
OK
|
参数名称
|
类型
|
描述
|
|
body
|
EPage«HostQueryInfoDto»
|
响应体 |
|
list
|
<HostQueryInfoDto> array
|
当前页数据 |
|
bandWidth
|
integer(int32)
|
带宽 |
|
clusterId
|
string
|
集群Id |
|
clusterName
|
string
|
集群名称 |
|
clusterPid
|
string
|
集群表主键Id |
|
exclusiveTenantBid
|
string
|
独享租户ID |
|
exclusiveTenantName
|
string
|
独享租户账号名称 |
|
hostId
|
string
|
主机Id |
|
hostIp
|
string
|
主机IP |
|
hostName
|
string
|
主机名称 |
|
phoneSpecs
|
string
|
云机规格 |
|
poolId
|
string
|
资源池ID |
|
prepareTypeList
|
<integer(int32)> array
|
预制版本 |
|
preparedNum
|
integer(int32)
|
已置备的云手机数量 |
|
publicIpv4
|
string
|
公网IPV4 |
|
remainCpu
|
integer(int32)
|
剩余CPU |
|
remainMemory
|
integer(int32)
|
剩余内存 |
|
remainNum
|
integer(int32)
|
可置备实例数量 |
|
totalCpu
|
integer(int32)
|
节点cpu总量 |
|
totalCpuInHardware
|
integer(int32)
|
服务器cpu配置 |
|
totalMemory
|
integer(int32)
|
节点内存总量 |
|
totalMemoryInHardware
|
integer(int32)
|
服务器内存配置,单位GB |
|
usedCpu
|
integer(int32)
|
已用CPU |
|
usedMemory
|
integer(int32)
|
已用内存 |
|
total
|
integer(int64)
|
结果总数量 |
|
totalPage
|
integer(int32)
|
结果总页数 |
|
errorCode
|
string
|
错误编码 |
|
errorMessage
|
string
|
错误信息 |
|
requestId
|
string
|
请求id |
|
state
|
string
|
状态值 |
返回示例
返回码:200
OK
{
"errorCode":"00000000",
"errorMessage":"请求成功",
"requestId":"8e11a809-bf66-4772-be9c-4620135954bf",
"state":"OK",
"body":{
"total":1,
"totalPage":1,
"list":[
{
"clusterPid":"1811680279814262786",
"clusterId":"46d1940c-987c-4002-be34-12119b8e65ad",
"clusterName":"cloudphone-beijing3-test",
"poolId":"CIDC-RP-45",
"hostId":"1811707545332031490",
"hostIp":"192.168.0.3",
"phoneSpecs":null,
"hostName":"bms-44964731-000",
"totalCpuInHardware":100,
"totalMemoryInHardware":400,
"prepareTypeList":[
4,
5
],
"exclusiveTenantBid":"CIDC-U-61dccb6f4f0147d89337b8ae9f254964",
"exclusiveTenantName":"csy_yyb_cpgh1_lvlei_001",
"publicIpv4":"10.251.137.225",
"bandWidth":0,
"totalCpu":1200,
"totalMemory":6400,
"usedCpu":0,
"usedMemory":0,
"remainCpu":1200,
"remainMemory":6400,
"preparedNum":0,
"remainNum":180
}
]
}
}