获取主机列表
更新时间:2022-10-20
接口说明
获取主机列表
请求URI
GET /v1/host/
参数名称 | 参数类型 | 是否必须 | 描述 | 示例值 | 参数位置 |
---|---|---|---|---|---|
clusterId | String | 否 | 集群id | "clusterId_example" | Query |
pageNo | String | 否 | 页码 | "pageNo_example" | Query |
pageSize | String | 否 | 页面大小 | "pageSize_example" | Query |
请求体参数
请求体字段数据结构说明
响应体参数
响应体字段数据结构说明
参数名称 | 参数类型 | 描述 | 示例值 |
---|---|---|---|
totalCount | Integer | 集群数量 | 57 |
result | List<Result> | 集群列表 |
Result字段数据结构说明
参数名称 | 参数类型 | 描述 | 示例值 |
---|---|---|---|
clusterName | String | 集群名称 | 111 |
clusterId | String | 集群id | hme-bj-6148966ff1ba41c3 |
accessDomain | String | 域名 | 6148966ff1ba41c3.bj.hme.bdysite.com |
totalTrafficInGBPerMonth | String | 每月总流量 | 150.00 |
usedTrafficInGB | String | 已使用流量 | 0.00 |
createTime | String | 创建时间 | 2021-02-04T10:45:20Z |
expireTime | String | 过期时间 | 2022-03-04T10:45:20Z |
tempDomain | String | 临时域名 | |
backendResourceNode | Integer | 后端资源节点数 | 0 |
availableBackendResourceNode | Integer | 可用后端资源节点数 | 0 |
enableRenew | Boolean | 是否允许自动续费 | false |
allowCreateHost | Boolean | 是否允许创建站点 | false |
resourceId | String | 资源id | 1d2170fcec3e440e820b1c3bcd10299e |
qpsPerHost | Integer | 单站点qps | 10 |
proCap | Integer | 安全防护 | 5 |
clusterScale | Integer | 节点规模 | 10 |
occupiedHosts | Integer | 已使用站点数 | 0 |
clusterStatus | String | 集群运行状态 | IDLE |
status | String | 集群资源状态 | RUNNING |
请求示例
JSON
1GET /v1/host/?clusterId=clusterId_example&pageNo=pageNo_example&pageSize=pageSize_example
2<公共请求头>
3
4
5
响应示例
JSON
1HTTP/1.1 200 OK
2<公共响应头>
3
4{
5 "totalCount":1,
6 "result":[
7 {
8 "hostId":"c9cfce9cd1c44ae1",
9 "account":"web4c0999908aca4967",
10 "hostName":"web4c0999908aca4967",
11 "hostStatus":"RUNNING",
12 "tempDomain":"web4c0999908aca4967.qahmeapi1.bigenemy.cn",
13 "domains":[
14 "aaa.com",
15 "www.bb.cn"
16 ],
17 "clusterId":"hme-bj-66f8175aa42248f0",
18 "clusterName":"qahemapi1",
19 "expireTime":"2018-12-22T02:34:05Z",
20 "contact":{
21 "name":"管理员",
22 "email":"liu****@baidu.com",
23 "mobilePhone":"156****2895"
24 },
25 "resourceId":"dacda95f-0308-409f-a178-7c96d59cca89"
26 }
27 ]
28}
错误码
请参考通用错误码