云容器实例 CCI-查询用户所有Deployments:响应示例

时间:2025-02-12 14:55:29

响应示例

状态码: 200

OK

{  "apiVersion" : "extensions/v1beta1",  "items" : [ {    "metadata" : {      "annotations" : {        "deployment.kubernetes.io/revision" : "1",        "service.protal.kubernetes.io/access-ip" : "10.247.51.55:123",        "service.protal.kubernetes.io/type" : "ClusterIP"      },      "creationTimestamp" : "2017-12-09T03:44:24Z",      "generation" : 2,      "labels" : {        "app" : "nginx"      },      "name" : "nginx",      "namespace" : "default",      "resourceVersion" : "28579",      "selfLink" : "/apis/extensions/v1beta1/namespaces/default/deployments/nginx",      "uid" : "3f7846b5-dc93-11e7-9c19-fa163e2d897b"    },    "spec" : {      "replicas" : 1,      "selector" : {        "matchLabels" : {          "app" : "nginx"        }      },      "strategy" : {        "rollingUpdate" : {          "maxSurge" : 1,          "maxUnavailable" : 1        },        "type" : "RollingUpdate"      },      "template" : {        "metadata" : {          "creationTimestamp" : null,          "labels" : {            "app" : "nginx"          }        },        "spec" : {          "containers" : [ {            "image" : "172.16.5.235:20202/test-01/mysql:v1",            "imagePullPolicy" : "Always",            "name" : "nginx",            "resources" : { },            "terminationMessagePath" : "/dev/termination-log",            "terminationMessagePolicy" : "File"          } ],          "dnsPolicy" : "ClusterFirst",          "restartPolicy" : "Always",          "schedulerName" : "default-scheduler",          "securityContext" : { }        }      }    },    "status" : {      "availableReplicas" : 1,      "conditions" : [ {        "lastTransitionTime" : "2017-12-09T03:44:24Z",        "lastUpdateTime" : "2017-12-09T03:44:24Z",        "message" : "Deployment has minimum availability.",        "reason" : "MinimumReplicasAvailable",        "status" : "True",        "type" : "Available"      } ],      "observedGeneration" : 2,      "readyReplicas" : 1,      "replicas" : 1,      "updatedReplicas" : 1    }  }, {    "metadata" : {      "annotations" : {        "deployment.kubernetes.io/revision" : "1"      },      "creationTimestamp" : "2017-12-13T03:13:22Z",      "generation" : 2,      "labels" : {        "cce/appgroup" : "deploy-ex-test"      },      "name" : "deploy-ex-12130306",      "namespace" : "ns-12130306-s",      "resourceVersion" : "418771",      "selfLink" : "/apis/extensions/v1beta1/namespaces/ns-12130306-s/deployments/deploy-ex-12130306",      "uid" : "934db57d-dfb3-11e7-9c19-fa163e2d897b"    },    "spec" : {      "replicas" : 1,      "selector" : {        "matchLabels" : {          "cce/appgroup" : "deploy-ex-test"        }      },      "strategy" : {        "rollingUpdate" : {          "maxSurge" : 1,          "maxUnavailable" : 1        },        "type" : "RollingUpdate"      },      "template" : {        "metadata" : {          "creationTimestamp" : null,          "labels" : {            "cce/appgroup" : "deploy-ex-test"          }        },        "spec" : {          "containers" : [ {            "image" : "172.16.5.235:20202/test/redis:latest",            "imagePullPolicy" : "IfNotPresent",            "name" : "deploycon-12130306",            "resources" : { },            "terminationMessagePath" : "/dev/termination-log",            "terminationMessagePolicy" : "File"          } ],          "dnsPolicy" : "ClusterFirst",          "restartPolicy" : "Always",          "schedulerName" : "default-scheduler",          "securityContext" : { }        }      }    },    "status" : {      "availableReplicas" : 1,      "conditions" : [ {        "lastTransitionTime" : "2017-12-13T03:13:22Z",        "lastUpdateTime" : "2017-12-13T03:13:22Z",        "message" : "Deployment has minimum availability.",        "reason" : "MinimumReplicasAvailable",        "status" : "True",        "type" : "Available"      } ],      "observedGeneration" : 2,      "readyReplicas" : 1,      "replicas" : 1,      "updatedReplicas" : 1    }  } ],  "kind" : "DeploymentList",  "metadata" : {    "resourceVersion" : "418820",    "selfLink" : "/apis/extensions/v1beta1/deployments"  }}
support.huaweicloud.com/api-cci/listAppsV1DeploymentForAllNamespaces.html