云容器引擎 CCE-获取指定项目下的集群:响应示例

时间:2023-11-01 16:20:05

响应示例

状态码: 200

表示获取集群列表成功。

{  "kind" : "Cluster",  "apiVersion" : "v3",  "items" : [ {    "kind" : "Cluster",    "apiVersion" : "v3",    "metadata" : {      "alias" : "mycluster",      "name" : "mycluster",      "uid" : "4d1ecb2c-229a-11e8-9c75-0255ac100ceb",      "creationTimestamp" : "2018-08-02 03:48:58.968214406 +0000 UTC",      "updateTimestamp" : "2018-08-02 04:05:29.386391813 +0000 UTC"    },    "spec" : {      "type" : "VirtualMachine",      "flavor" : "cce.s1.small",      "version" : "v1.7.3-r13",      "description" : "awesome cluster",      "customSan" : [ "192.168.1.0", "example.com" ],      "hostNetwork" : {        "vpc" : "f0c12911-4fdb-4284-9230-7ffb0860826a",        "subnet" : "ac274229-fd2e-4695-9f01-a0c1372b8006"      },      "containerNetwork" : {        "mode" : "overlay_l2",        "cidr" : "172.16.0.0/16"      },      "authentication" : {        "mode" : "x509",        "authenticatingProxy" : { }      },      "billingMode" : 0    },    "status" : {      "phase" : "Available",      "endpoints" : [ {        "url" : "https://192.168.0.11:5443",        "type" : "Internal"      } ]    }  } ]}
support.huaweicloud.com/api-cce/cce_02_0239.html