概览
概览容器组列表
约束条件
如果传 apiserver_host参数就采用这个参数,不然使用session.cluster_addr作为集群地址
URI
示例:product_type_list=[eks, hybrid, security]
GET /api/ecns/${product type}/overview/pods_status/?apiserver_host=<cluster_addr>
响应消息
| 参数 | 参数类型 | 描述 |
|---|---|---|
| running | list(pod_overview) | 运行中pod列表 |
| failed | list(pod_overview) | 错误pod列表 |
| other | list(pod_overview) | 其他pod列表 |
pod_overview Type定义:
| 参数 | Type | 是否必选 | 描述 |
|---|---|---|---|
| count | int | 否 | pod数量 |
| pods | list(pod_status) | 否 |
概览持久卷声明列表
约束条件
如果传 apiserver_host参数就采用这个参数,不然使用session.cluster_addr作为集群地址
URI
示例:product_type_list=[eks, hybrid, security]
GET /api/ecns/${product type}/overview/pvc_status/?apiserver_host=<cluster_addr>
响应消息
| 参数 | 参数类型 | 描述 |
|---|---|---|
| available | dict(pvc_overview) | 可使用pvc |
| mounted | dict(pvc_overview) | 已挂载pvc |
| creating | dict(pvc_overview) | 创建中pvc |
| error | dict(pvc_overview) | 错误pvc |
pvc_overview Type定义:
| 参数 | 参数类型 | 是否必选 | 描述 |
|---|---|---|---|
| count | int | 否 | 节点数量 |
| pvcs | list(pvc) | 否 | pvc列表 |
概览虚拟机/负载均衡列表
约束条件
如果传 apiserver_host参数就采用这个参数,不然使用session.cluster_addr作为集群地址
URI
示例:product_type_list=[eks, hybrid, security]
GET /api/ecns/${product type}/overview/openstack_status/?apiserver_host=<cluster_addr>
响应消息
| 参数 | 参数类型 | 描述 |
|---|---|---|
| servers | list(instance_status) | 虚拟机列表 |
| loadbalances | list(instance_status) | 负载均衡列表 |
instance_status Type定义:
| 参数 | 参数类型 | 是否必选 | 描述 |
|---|---|---|---|
| type | str | 是 | 实例类型,server / loadbalance 两者之一 |
| status | str | 是 | 状态类型, Active / Shutoff / Error / Other 这四类之一 |
| count | int | 是 | 实例数量 |
| names | list(str) | 是 | 实例名词列表 |