文档首页 > > API参考> Kubernetes API> API groups> listing APIResources of GroupVersion certificates.k8s.io/v1beta1

listing APIResources of GroupVersion certificates.k8s.io/v1beta1

分享
更新时间: 2019/09/04 GMT+08:00

功能介绍

This API is used to list GroupVersion "certificates.k8s.io/v1beta1".

URI

GET /apis/certificates.k8s.io/v1beta1

请求消息

N/A.

响应消息

响应参数:

表1 describes the response parameters.

表1 参数解释

参数

参数类型

描述

kind

String

Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated.

groupVersion

String

groupVersion specifies the API group and version in the form "group/version"

resources

resources object

Standard list resource

表2 resources字段数据结构说明

参数

Type

描述

categories

Array of strings

categories is a list of the grouped resources this resource belongs to (e.g. 'all')

kind

String

kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')

name

String

name is the plural name of the resource.

namespaced

Boolean

namespaced indicates if a resource is namespaced or not.

shortNames

Array of strings

shortNames is a list of suggested short names of the resource.

singularName

String

singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface.

verbs

Array of strings

verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)

响应示例:

{
    "kind": "APIResourceList",
    "apiVersion": "v1",
    "groupVersion": "certificates.k8s.io/v1beta1",
    "resources": [
        {
            "name": "certificatesigningrequests",
            "singularName": "",
            "namespaced": false,
            "kind": "CertificateSigningRequest",
            "verbs": [
                "create",
                "delete",
                "deletecollection",
                "get",
                "list",
                "patch",
                "update",
                "watch"
            ],
            "shortNames": [
                "csr"
            ]
        },
        {
            "name": "certificatesigningrequests/approval",
            "singularName": "",
            "namespaced": false,
            "kind": "CertificateSigningRequest",
            "verbs": [
                "update"
            ]
        },
        {
            "name": "certificatesigningrequests/status",
            "singularName": "",
            "namespaced": false,
            "kind": "CertificateSigningRequest",
            "verbs": [
                "update"
            ]
        }
    ]
}

状态码

表3描述API的状态码。

表3 状态码

状态码

描述

200

This operation succeeds, and a list of APIResources is returned.

异常状态码请参见状态码

分享:

    相关文档

    相关产品

文档是否有解决您的问题?

提交成功!

非常感谢您的反馈,我们会继续努力做到更好!

反馈提交失败,请稍后再试!

*必选

请至少选择或填写一项反馈信息

字符长度不能超过200

提交反馈 取消

如您有其它疑问,您也可以通过华为云社区问答频道来与我们联系探讨

跳转到云社区