云容器实例 CCI-替换Endpoint:响应示例

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

响应示例

状态码: 200

OK

{
  "apiVersion" : "v1",
  "kind" : "Endpoints",
  "metadata" : {
    "annotations" : {
      "new-key" : "new-value",
      "test-key" : "test-value"
    },
    "creationTimestamp" : "2023-03-28T13:55:52Z",
    "name" : "test-endpoint",
    "namespace" : "test-namespace",
    "resourceVersion" : "263576210",
    "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/replaceCoreV1NamespacedEndpoints.html