获取指定的ClusterRoleBinding
功能介绍
This API is used to read the specified ClusterRoleBinding
URL
GET /apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}
参数解释描述该API的参数。
参数 |
是否必选 |
描述 |
---|---|---|
name |
Yes |
name of the ClusterRoleBinding. |
pretty |
No |
If 'true', then the output is pretty printed. |
请求消息
N/A
响应示例:
{ "kind" : "ClusterRoleBinding", "apiVersion" : "rbac.authorization.k8s.io/v1", "metadata" : { "name" : "secret-reader", "selfLink" : "/apis/rbac.authorization.k8s.io/v1/clusterroles/secret-reader", "uid" : "f2cf199e-f1f0-11e8-b449-fa163ec24e06", "resourceVersion" : "13211", "creationTimestamp" : "2018-11-27T03:03:00Z" }, "rules" : [ { "verbs" : [ "get", "watch", "list" ], "apiGroups" : [ "" ], "resources" : [ "secrets" ] } ] }
