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

时间:2023-12-01 17:06:30

响应示例

状态码: 200

OK

{
  "apiVersion" : "v1",
  "kind" : "Endpoints",
  "metadata" : {
    "annotations" : {
      "test-key" : "test-value"
    },
    "creationTimestamp" : "2023-03-28T13:55:52Z",
    "name" : "test-endpoint",
    "namespace" : "test-namespace",
    "resourceVersion" : "263561274",
    "selfLink" : "/api/v1/namespaces/test-namespace/endpoints/test-endpoint",
    "uid" : "3907aa64-c3f3-4de0-b938-9d23e8d12f94"
  },
  "subsets" : [ {
    "addresses" : [ {
      "ip" : "192.168.226.222",
      "targetRef" : {
        "kind" : "Pod",
        "name" : "nginx-686bccd6f-ccsqb",
        "namespace" : "test-namespace",
        "resourceVersion" : "262055491",
        "uid" : "ae417968-4f69-40da-9228-2434671e9c66"
      }
    } ],
    "ports" : [ {
      "name" : "service0",
      "port" : 80,
      "protocol" : "TCP"
    } ]
  } ]
}
support.huaweicloud.com/api-cci/patchCoreV1NamespacedEndpoints.html