v1.SubjectRulesReview

Description

SubjectRulesReview is a resource you can create to determine which actions another user can perform in a namespace

Object Schema

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

  1. apiVersion:
  2. kind:
  3. spec:
  4. groups:
  5. - [string]:
  6. scopes:
  7. - [string]:
  8. user:
  9. status:
  10. evaluationError:
  11. rules:
  12. - apiGroups:
  13. - - [string]:
  14. attributeRestrictions:
  15. Raw:
  16. nonResourceURLs:
  17. - [string]:
  18. resourceNames:
  19. - [string]:
  20. resources:
  21. - [string]:
  22. verbs:
  23. - [string]:

Operations

Create a SubjectRulesReview

Create a SubjectRulesReview

HTTP request

  1. POST /oapi/v1/subjectrulesreviews HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close
  5. Content-Type: application/json'
  6. {
  7. "kind": "SubjectRulesReview",
  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/subjectrulesreviews <<'EOF'
  8. {
  9. "kind": "SubjectRulesReview",
  10. "apiVersion": "v1",
  11. ...
  12. }
  13. EOF

HTTP body

ParameterSchema

body

v1.SubjectRulesReview

Query parameters

ParameterDescription

pretty

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

Responses

HTTP CodeSchema

200 OK

v1.SubjectRulesReview

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Create a SubjectRulesReview in a namespace

Create a SubjectRulesReview

HTTP request

  1. POST /oapi/v1/namespaces/$NAMESPACE/subjectrulesreviews HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close
  5. Content-Type: application/json'
  6. {
  7. "kind": "SubjectRulesReview",
  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/subjectrulesreviews <<'EOF'
  8. {
  9. "kind": "SubjectRulesReview",
  10. "apiVersion": "v1",
  11. ...
  12. }
  13. EOF

HTTP body

ParameterSchema

body

v1.SubjectRulesReview

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.SubjectRulesReview

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf