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

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

响应示例

状态码: 200

OK

{
  "groupVersion" : "v1",
  "kind" : "APIResourceList",
  "resources" : [ {
    "kind" : "ConfigMap",
    "name" : "configmaps",
    "namespaced" : true,
    "shortNames" : [ "cm" ],
    "singularName" : "",
    "verbs" : [ "create", "delete", "deletecollection", "get", "list", "patch", "update", "watch" ]
  }, {
    "kind" : "Endpoints",
    "name" : "endpoints",
    "namespaced" : true,
    "shortNames" : [ "ep" ],
    "singularName" : "",
    "verbs" : [ "create", "delete", "deletecollection", "get", "list", "patch", "update", "watch" ]
  }, {
    "kind" : "Event",
    "name" : "events",
    "namespaced" : true,
    "shortNames" : [ "ev" ],
    "singularName" : "",
    "verbs" : [ "create", "delete", "deletecollection", "get", "list", "patch", "update", "watch" ]
  }, {
    "kind" : "Namespace",
    "name" : "namespaces",
    "namespaced" : false,
    "shortNames" : [ "ns" ],
    "singularName" : "",
    "verbs" : [ "create", "delete", "get", "list", "patch", "update", "watch" ]
  }, {
    "kind" : "PersistentVolumeClaim",
    "name" : "persistentvolumeclaims",
    "namespaced" : true,
    "shortNames" : [ "pvc" ],
    "singularName" : "",
    "verbs" : [ "create", "delete", "deletecollection", "get", "list", "patch", "update", "watch" ]
  }, {
    "categories" : [ "all" ],
    "kind" : "Pod",
    "name" : "pods",
    "namespaced" : true,
    "shortNames" : [ "po" ],
    "singularName" : "",
    "verbs" : [ "create", "delete", "deletecollection", "get", "list", "patch", "update", "watch" ]
  }, {
    "kind" : "Pod",
    "name" : "pods/exec",
    "namespaced" : true,
    "singularName" : "",
    "verbs" : [ ]
  }, {
    "kind" : "Pod",
    "name" : "pods/log",
    "namespaced" : true,
    "singularName" : "",
    "verbs" : [ "get" ]
  }, {
    "kind" : "Pod",
    "name" : "pods/status",
    "namespaced" : true,
    "singularName" : "",
    "verbs" : [ "get", "patch", "update" ]
  }, {
    "kind" : "ResourceQuota",
    "name" : "resourcequotas",
    "namespaced" : true,
    "shortNames" : [ "quota" ],
    "singularName" : "",
    "verbs" : [ "create", "delete", "deletecollection", "get", "list", "patch", "update", "watch" ]
  }, {
    "kind" : "Secret",
    "name" : "secrets",
    "namespaced" : true,
    "singularName" : "",
    "verbs" : [ "create", "delete", "deletecollection", "get", "list", "patch", "update", "watch" ]
  }, {
    "categories" : [ "all" ],
    "kind" : "Service",
    "name" : "services",
    "namespaced" : true,
    "shortNames" : [ "svc" ],
    "singularName" : "",
    "verbs" : [ "create", "delete", "get", "list", "patch", "update", "watch" ]
  }, {
    "kind" : "Service",
    "name" : "services/status",
    "namespaced" : true,
    "singularName" : "",
    "verbs" : [ "get", "patch", "update" ]
  } ]
}
support.huaweicloud.com/api-cci/getCoreV1APIResources.html