集群

列出集群信息

请求

  1. GET /openapi/system/cluster

成功返回说明

参数名说明类型
cluster_id集群 IDstring
name集群名称string
description描述string
provider_name供应商名称string
created_by创建者string
created_time创建时间int
local是否为本地集群bool
status集群状态:
normal:正常
disconnected:断开连接
pending:挂起
abnormal:连接异常
string
type集群类型:
agent:代理模式
kubeconfig:直连模式
string

成功返回示例

  1. [
  2. {
  3. "cluster_id": "0123456789****ef12345678",
  4. "name": "local-20220823144517",
  5. "production": true,
  6. "description": "",
  7. "provider_name": "其它",
  8. "created_by": "system",
  9. "created_time": 1661237117,
  10. "local": true,
  11. "status": "normal",
  12. "type": "agent"
  13. },
  14. {
  15. "cluster_id": "64b80b03f****553e5707fef",
  16. "name": "tt",
  17. "production": false,
  18. "description": "",
  19. "provider_name": "Amazon EKS",
  20. "created_by": "admin",
  21. "created_time": 1689783043,
  22. "local": false,
  23. "status": "pending",
  24. "type": "agent"
  25. }
  26. ]