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:Collapse allmetadata:
Collapse allannotations:
[string]:clusterName:creationTimestamp:deletionGracePeriodSeconds:deletionTimestamp:Collapse allfinalizers:
- [string]:generateName:generation:Collapse allinitializers:
Collapse allpending:
- name:Collapse allresult:
apiVersion:code:Collapse alldetails:
Collapse allcauses:
- field:message:reason:group:kind:name:retryAfterSeconds:uid:kind:message:Collapse allmetadata:
resourceVersion:selfLink:reason:status:Collapse alllabels:
[string]:name:namespace:Collapse allownerReferences:
- apiVersion:blockOwnerDeletion:controller:kind:name:uid:resourceVersion:selfLink:uid:Collapse allspec:
Collapse allextra:
[string]:Collapse allgroups:
- [string]:Collapse allnonResourceAttributes:
path:verb:Collapse allresourceAttributes:
group:name:namespace:resource:subresource:verb:version:user:Collapse allstatus:
allowed: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