5.2. API endpoints
The following API endpoints are available:
/apis/rbac.authorization.k8s.io/v1/roles-
GET: list or watch objects of kind Role
-
/apis/rbac.authorization.k8s.io/v1/watch/roles-
GET: watch individual changes to a list of Role. deprecated: use the 'watch' parameter with a list operation instead.
-
/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles-
DELETE: delete collection of Role -
GET: list or watch objects of kind Role -
POST: create a Role
-
/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/roles-
GET: watch individual changes to a list of Role. deprecated: use the 'watch' parameter with a list operation instead.
-
/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}-
DELETE: delete a Role -
GET: read the specified Role -
PATCH: partially update the specified Role -
PUT: replace the specified Role
-
/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/roles/{name}-
GET: watch changes to an object of kind Role. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.
-
5.2.1. /apis/rbac.authorization.k8s.io/v1/roles 复制链接链接已复制到粘贴板!
- HTTP method
-
GET - Description
- list or watch objects of kind Role
| HTTP code | Reponse body |
|---|---|
| 200 - OK |
|
| 401 - Unauthorized | Empty |