云容器实例 CCI-查询指定namespace下的Ingresses:响应示例

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

响应示例

状态码: 200

OK

{
  "apiVersion" : "extensions/v1beta1",
  "items" : [ {
    "metadata" : {
      "annotations" : {
        "kubernetes.io/elb.id" : "xxx-xxx-xxx-xxx-xxx",
        "kubernetes.io/elb.ip" : "192.168.137.182",
        "kubernetes.io/elb.port" : "6071"
      },
      "creationTimestamp" : "2018-09-04T02:16:14Z",
      "generation" : 1,
      "labels" : {
        "app" : "redis",
        "isExternal" : "true",
        "zone" : "data"
      },
      "name" : "redis",
      "namespace" : "namespace-test",
      "resourceVersion" : "5161128",
      "selfLink" : "/apis/extensions/v1beta1/namespaces/namespace-test/ingresses/redis",
      "uid" : "7f86c310-afe8-11e8-b6ef-f898ef6c78b4"
    },
    "spec" : {
      "rules" : [ {
        "http" : {
          "paths" : [ {
            "backend" : {
              "serviceName" : "redis",
              "servicePort" : 8080
            },
            "path" : "/"
          } ]
        }
      } ]
    },
    "status" : {
      "loadBalancer" : {
        "ingress" : [ {
          "ip" : "192.168.137.182"
        } ]
      }
    }
  } ],
  "kind" : "IngressList",
  "metadata" : {
    "resourceVersion" : "5161998",
    "selfLink" : "/apis/extensions/v1beta1/namespaces/namespace-test/ingresses"
  }
}
support.huaweicloud.com/api-cci/listExtensionsV1beta1NamespacedIngress.html