v1.SubjectAccessReview

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 /oapi/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": "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/oapi/v1/subjectaccessreviews <<'EOF'
  8. {
  9. "kind": "SubjectAccessReview",
  10. "apiVersion": "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

Create a SubjectAccessReview in a namespace

Create a SubjectAccessReview

HTTP request

  1. POST /oapi/v1/namespaces/$NAMESPACE/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": "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/oapi/v1/namespaces/$NAMESPACE/subjectaccessreviews <<'EOF'
  8. {
  9. "kind": "SubjectAccessReview",
  10. "apiVersion": "v1",
  11. ...
  12. }
  13. EOF

HTTP body

ParameterSchema

body

v1.SubjectAccessReview

Path parameters

ParameterDescription

namespace

object name and auth scope, such as for teams and projects

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