v1.LocalResourceAccessReview

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

LocalResourceAccessReview is a means to request a list of which users and groups are authorized to perform the action specified by spec in a particular namespace

Object Schema

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

  1. apiVersion:
  2. content:
  3. Raw:
  4. isNonResourceURL:
  5. kind:
  6. namespace:
  7. path:
  8. resource:
  9. resourceAPIGroup:
  10. resourceAPIVersion:
  11. resourceName:
  12. verb:

Operations

Create a LocalResourceAccessReview

Create a LocalResourceAccessReview

HTTP request

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

HTTP body

ParameterSchema

body

v1.LocalResourceAccessReview

Query parameters

ParameterDescription

pretty

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

Responses

HTTP CodeSchema

200 OK

v1.LocalResourceAccessReview

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Create a LocalResourceAccessReview in a namespace

Create a LocalResourceAccessReview

HTTP request

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

HTTP body

ParameterSchema

body

v1.LocalResourceAccessReview

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

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf