POST /oapi/v1/subjectaccessreviews HTTP/1.1 Authorization: Bearer $TOKEN Accept: application/json Connection: close Content-Type: application/json' { "kind": "SubjectAccessReview", "apiVersion": "v1", ... }
SubjectAccessReview is an object for requesting information about whether a user or group can perform an action
Expand or mouse-over a field for more information about it.
apiVersion:content:
Raw:groups:
- [string]:isNonResourceURL:kind:namespace:path:resource:resourceAPIGroup:resourceAPIVersion:resourceName:scopes:
- [string]:user:verb:
Create a SubjectAccessReview
POST /oapi/v1/subjectaccessreviews HTTP/1.1 Authorization: Bearer $TOKEN Accept: application/json Connection: close Content-Type: application/json' { "kind": "SubjectAccessReview", "apiVersion": "v1", ... }
$ curl -k \ -X POST \ -d @- \ -H "Authorization: Bearer $TOKEN" \ -H 'Accept: application/json' \ -H 'Content-Type: application/json' \ https://$ENDPOINT/oapi/v1/subjectaccessreviews <<'EOF' { "kind": "SubjectAccessReview", "apiVersion": "v1", ... } EOF
Create a SubjectAccessReview
POST /oapi/v1/namespaces/$NAMESPACE/subjectaccessreviews HTTP/1.1 Authorization: Bearer $TOKEN Accept: application/json Connection: close Content-Type: application/json' { "kind": "SubjectAccessReview", "apiVersion": "v1", ... }
$ curl -k \ -X POST \ -d @- \ -H "Authorization: Bearer $TOKEN" \ -H 'Accept: application/json' \ -H 'Content-Type: application/json' \ https://$ENDPOINT/oapi/v1/namespaces/$NAMESPACE/subjectaccessreviews <<'EOF' { "kind": "SubjectAccessReview", "apiVersion": "v1", ... } EOF
Parameter | Description |
---|---|
namespace |
object name and auth scope, such as for teams and projects |