v1.SubjectAccessReview

You are viewing documentation for a release that is no longer supported. The latest supported version of version 3 is [3.11]. For the most recent version 4, see [4]

You are viewing documentation for a release that is no longer supported. The latest supported version of version 3 is [3.11]. For the most recent version 4, see [4]

Description

SubjectAccessReview is an object for requesting information about whether a user or group can perform an action

Object Schema

Expand or mouse-over a field for more information about it.

  1. apiVersion:
  2. content:
  3. Raw:
  4. groups:
  5. - [string]:
  6. isNonResourceURL:
  7. kind:
  8. namespace:
  9. path:
  10. resource:
  11. resourceAPIGroup:
  12. resourceAPIVersion:
  13. resourceName:
  14. scopes:
  15. - [string]:
  16. user:
  17. verb:

Operations

Create a SubjectAccessReview

Create a SubjectAccessReview

HTTP request

  1. POST /apis/authorization.openshift.io/v1/subjectaccessreviews HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close
  5. Content-Type: application/json'
  6. {
  7. "kind": "SubjectAccessReview",
  8. "apiVersion": "authorization.openshift.io/v1",
  9. ...
  10. }

Curl request

  1. $ curl -k \
  2. -X POST \
  3. -d @- \
  4. -H "Authorization: Bearer $TOKEN" \
  5. -H 'Accept: application/json' \
  6. -H 'Content-Type: application/json' \
  7. https://$ENDPOINT/apis/authorization.openshift.io/v1/subjectaccessreviews <<'EOF'
  8. {
  9. "kind": "SubjectAccessReview",
  10. "apiVersion": "authorization.openshift.io/v1",
  11. ...
  12. }
  13. EOF

HTTP body

ParameterSchema

body

v1.SubjectAccessReview

Query parameters

ParameterDescription

pretty

If ‘true’, then the output is pretty printed.

Responses

HTTP CodeSchema

200 OK

v1.SubjectAccessReview

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf