集群
列出集群信息
请求
GET /openapi/system/cluster
成功返回说明
参数名 | 说明 | 类型 |
---|---|---|
cluster_id | 集群 ID | string |
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 |
成功返回示例
[
{
"cluster_id": "0123456789****ef12345678",
"name": "local-20220823144517",
"production": true,
"description": "",
"provider_name": "其它",
"created_by": "system",
"created_time": 1661237117,
"local": true,
"status": "normal",
"type": "agent"
},
{
"cluster_id": "64b80b03f****553e5707fef",
"name": "tt",
"production": false,
"description": "",
"provider_name": "Amazon EKS",
"created_by": "admin",
"created_time": 1689783043,
"local": false,
"status": "pending",
"type": "agent"
}
]