v1.SelfSubjectRulesReview

Description

SelfSubjectRulesReview is a resource you can create to determine which actions you 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. scopes:
  5. - [string]:
  6. status:
  7. evaluationError:
  8. rules:
  9. - apiGroups:
  10. - - [string]:
  11. attributeRestrictions:
  12. Raw:
  13. nonResourceURLs:
  14. - [string]:
  15. resourceNames:
  16. - [string]:
  17. resources:
  18. - [string]:
  19. verbs:
  20. - [string]:

Operations

Create a SelfSubjectRulesReview

Create a SelfSubjectRulesReview

HTTP request

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

HTTP body

ParameterSchema

body

v1.SelfSubjectRulesReview

Query parameters

ParameterDescription

pretty

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

Responses

HTTP CodeSchema

200 OK

v1.SelfSubjectRulesReview

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Create a SelfSubjectRulesReview in a namespace

Create a SelfSubjectRulesReview

HTTP request

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

HTTP body

ParameterSchema

body

v1.SelfSubjectRulesReview

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

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf