云容器实例 CCI-查询所有apps/v1的API:响应示例

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

响应示例

状态码: 200

OK

{
  "apiVersion" : "v1",
  "groupVersion" : "apps/v1",
  "kind" : "APIResourceList",
  "resources" : [ {
    "categories" : [ "all" ],
    "kind" : "Deployment",
    "name" : "deployments",
    "namespaced" : true,
    "shortNames" : [ "deploy" ],
    "singularName" : "",
    "verbs" : [ "create", "delete", "deletecollection", "get", "list", "patch", "update", "watch" ]
  }, {
    "group" : "autoscaling",
    "kind" : "Scale",
    "name" : "deployments/scale",
    "namespaced" : true,
    "singularName" : "",
    "verbs" : [ "get", "patch", "update" ],
    "version" : "v1"
  }, {
    "kind" : "Deployment",
    "name" : "deployments/status",
    "namespaced" : true,
    "singularName" : "",
    "verbs" : [ "get", "patch", "update" ]
  }, {
    "categories" : [ "all" ],
    "kind" : "ReplicaSet",
    "name" : "replicasets",
    "namespaced" : true,
    "shortNames" : [ "rs" ],
    "singularName" : "",
    "verbs" : [ "create", "delete", "deletecollection", "get", "list", "patch", "update", "watch" ]
  }, {
    "categories" : [ "all" ],
    "kind" : "StatefulSet",
    "name" : "statefulsets",
    "namespaced" : true,
    "shortNames" : [ "sts" ],
    "singularName" : "",
    "verbs" : [ "create", "delete", "deletecollection", "get", "list", "patch", "update", "watch" ]
  }, {
    "kind" : "StatefulSet",
    "name" : "statefulsets/status",
    "namespaced" : true,
    "singularName" : "",
    "verbs" : [ "get", "patch", "update" ]
  } ]
}
support.huaweicloud.com/api-cci/getAppsV1APIResources.html