云容器实例 CCI-创建Ingress:响应示例

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

响应示例

状态码: 200

OK

{
  "apiVersion" : "extensions/v1beta1",
  "kind" : "Ingress",
  "metadata" : {
    "annotations" : {
      "kubernetes.io/elb.id" : "xxx",
      "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" : "5161127",
    "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" : { }
  }
}
support.huaweicloud.com/api-cci/createExtensionsV1beta1NamespacedIngress.html