This is a cache of https://docs.okd.io/3.7/rest_api/apis-authorization.openshift.io/v1.LocalResourceAccessReview.html. It is a snapshot of the page at 2024-11-29T04:54:46.652+0000.
v1.LocalResourceAccessReview - /<strong>api</strong>s/authorization.openshift.io/v1 | REST <strong>api</strong> Reference | OKD 3.7
×

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.

apiVersion:
content:
Raw:
isNonResourceURL:
kind:
namespace:
path:
resource:
resourceapiGroup:
resourceapiVersion:
resourceName:
verb:

Operations

Create a LocalResourceAccessReview

Create a LocalResourceAccessReview

HTTP request

POST /apis/authorization.openshift.io/v1/localresourceaccessreviews HTTP/1.1
Authorization: Bearer $TOKEN
Accept: application/json
Connection: close
Content-Type: application/json'

{
  "kind": "LocalResourceAccessReview",
  "apiVersion": "authorization.openshift.io/v1",
  ...
}

Curl request

$ curl -k \
    -X POST \
    -d @- \
    -H "Authorization: Bearer $TOKEN" \
    -H 'Accept: application/json' \
    -H 'Content-Type: application/json' \
    https://$ENDPOINT/apis/authorization.openshift.io/v1/localresourceaccessreviews <<'EOF'
{
  "kind": "LocalResourceAccessReview",
  "apiVersion": "authorization.openshift.io/v1",
  ...
}
EOF

HTTP body

Parameter Schema

body

v1.LocalResourceAccessReview

Query parameters

Parameter Description

pretty

If 'true', then the output is pretty printed.

Responses

HTTP Code Schema

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

POST /apis/authorization.openshift.io/v1/namespaces/$NAMESPACE/localresourceaccessreviews HTTP/1.1
Authorization: Bearer $TOKEN
Accept: application/json
Connection: close
Content-Type: application/json'

{
  "kind": "LocalResourceAccessReview",
  "apiVersion": "authorization.openshift.io/v1",
  ...
}

Curl request

$ curl -k \
    -X POST \
    -d @- \
    -H "Authorization: Bearer $TOKEN" \
    -H 'Accept: application/json' \
    -H 'Content-Type: application/json' \
    https://$ENDPOINT/apis/authorization.openshift.io/v1/namespaces/$NAMESPACE/localresourceaccessreviews <<'EOF'
{
  "kind": "LocalResourceAccessReview",
  "apiVersion": "authorization.openshift.io/v1",
  ...
}
EOF

HTTP body

Parameter Schema

body

v1.LocalResourceAccessReview

Path parameters

Parameter Description

namespace

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

Query parameters

Parameter Description

pretty

If 'true', then the output is pretty printed.

Responses

HTTP Code Schema

200 OK

v1.LocalResourceAccessReview

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf