云容器实例 CCI-更新Service:响应示例

时间:2024-11-06 15:35:47

响应示例

状态码: 200

OK

{
  "apiVersion" : "v1",
  "kind" : "Service",
  "metadata" : {
    "creationTimestamp" : "2022-09-08T07:14:35Z",
    "labels" : {
      "app" : "service-test",
      "some-key" : "some-value"
    },
    "name" : "service-test",
    "namespace" : "namespace-test",
    "resourceVersion" : "43938742",
    "selfLink" : "/api/v1/namespaces/namespace-test/services/service-test",
    "uid" : "4397866e-7583-42e3-b428-2381045e1513"
  },
  "spec" : {
    "clusterIP" : "10.247.175.81",
    "ports" : [ {
      "name" : "service0",
      "port" : 80,
      "protocol" : "TCP",
      "targetPort" : 80
    } ],
    "selector" : {
      "app" : "service-test"
    },
    "sessionAffinity" : "None",
    "type" : "ClusterIP"
  },
  "status" : {
    "loadBalancer" : { }
  }
}
support.huaweicloud.com/api-cci/patchCoreV1NamespacedService.html