POST /apis/authorization.k8s.io/v1/subjectaccessreviews HTTP/1.1 Authorization: Bearer $TOKEN Accept: application/json Connection: close Content-Type: application/json' { "kind": "SubjectAccessReview", "apiVersion": "authorization.k8s.io/v1", ... }
Expand or mouse-over a field for more information about it.
apiVersion:kind:metadata:
annotations:
[string]:clusterName:creationTimestamp:deletionGracePeriodSeconds:deletionTimestamp:finalizers:
- [string]:generateName:generation:initializers:
pending:
- name:result:
apiVersion:code:details:
causes:
- field:message:reason:group:kind:name:retryAfterSeconds:uid:kind:message:metadata:
continue:resourceVersion:selfLink:reason:status:labels:
[string]:name:namespace:ownerReferences:
- apiVersion:blockOwnerDeletion:controller:kind:name:uid:resourceVersion:selfLink:uid:spec:
extra:
[string]:groups:
- [string]:nonResourceAttributes:
path:verb:resourceAttributes:
group:name:namespace:resource:subresource:verb:version:uid:user:status:
allowed:denied:evaluationError:reason:
Create a SubjectAccessReview
POST /apis/authorization.k8s.io/v1/subjectaccessreviews HTTP/1.1 Authorization: Bearer $TOKEN Accept: application/json Connection: close Content-Type: application/json' { "kind": "SubjectAccessReview", "apiVersion": "authorization.k8s.io/v1", ... }
$ curl -k \ -X POST \ -d @- \ -H "Authorization: Bearer $TOKEN" \ -H 'Accept: application/json' \ -H 'Content-Type: application/json' \ https://$ENDPOINT/apis/authorization.k8s.io/v1/subjectaccessreviews <<'EOF' { "kind": "SubjectAccessReview", "apiVersion": "authorization.k8s.io/v1", ... } EOF