华为云UCS-获取单个集群:响应示例

时间:2024-07-01 15:10:48

响应示例

状态码: 200

集群的信息,例如状态信息、集群与karmada控制面的同步模式等

{
  "kind" : "Cluster",
  "apiVersion" : "v1",
  "metadata" : {
    "name" : "test-cluster",
    "uid" : "b0d1ecb5-7947-11ee-9467-0255ac1001bf",
    "creationTimestamp" : "2023-11-02T06:36:14Z",
    "labels" : {
      "FeatureGates" : "elbv3,SupportClientCertificateRevocation,xGPU"
    },
    "annotations" : {
      "vpcId" : "11c9fe72-5a90-4295-bcfe-774726fb9066"
    }
  },
  "spec" : {
    "syncMode" : "",
    "clusterGroupID" : "bffbb35b-7949-11ee-886c-0255ac100037",
    "manageType" : "grouped",
    "provider" : "huaweicloud",
    "type" : "cce",
    "category" : "self",
    "region" : "cn-north-4",
    "country" : "CN",
    "city" : "150900",
    "projectID" : "b6315dd3d0ff4be5b31a963256794989",
    "projectName" : "cn-north-4",
    "IsDownloadedCert" : false,
    "operatorNamespace" : "2cd7ebd02e4743eba4e6342c09e49344"
  },
  "status" : {
    "kubernetesVersion" : "v1.25",
    "conditions" : [ {
      "type" : "Ready",
      "status" : "True",
      "lastTransitionTime" : "2023-11-27T11:05:09+08:00",
      "reason" : "ClusterAvailable"
    }, {
      "type" : "Cluster",
      "status" : "Available",
      "lastTransitionTime" : "2023-11-27T11:05:09+08:00",
      "reason" : "ClusterAvailable"
    }, {
      "type" : "Federation",
      "status" : "Federalized",
      "lastTransitionTime" : "2023-11-14T14:31:58.744215+08:00"
    } ],
    "endpoints" : [ {
      "url" : "https://192.168.1.251:5443",
      "type" : "Internal"
    } ],
    "phase" : "Available",
    "arrearFreeze" : "false",
    "policeFreeze" : "false"
  }
}
support.huaweicloud.com/api-ucs/ShowCluster.html