v1.ResourceAccessReview
Description
ResourceAccessReview is a means to request a list of which users and groups are authorized to perform the action specified by spec
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 ResourceAccessReview
Create a ResourceAccessReview
HTTP request
POST /oapi/v1/resourceaccessreviews HTTP/1.1
Authorization: Bearer $TOKEN
Accept: application/json
Connection: close
Content-Type: application/json'
{
"kind": "ResourceAccessReview",
"apiVersion": "v1",
...
}
Curl request
$ curl -k \
-X POST \
-d @- \
-H "Authorization: Bearer $TOKEN" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
https://$ENDPOINT/oapi/v1/resourceaccessreviews <<'EOF'
{
"kind": "ResourceAccessReview",
"apiVersion": "v1",
...
}
EOF
HTTP body
Parameter | Schema |
---|---|
body | v1.ResourceAccessReview |
Query parameters
Parameter | Description |
---|---|
pretty | If ‘true’, then the output is pretty printed. |
Responses
HTTP Code | Schema |
---|---|
200 OK | v1.ResourceAccessReview |
401 Unauthorized |
Consumes
- */*
Produces
application/json
application/yaml
application/vnd.kubernetes.protobuf
Create a ResourceAccessReview in a namespace
Create a ResourceAccessReview
HTTP request
POST /oapi/v1/namespaces/$NAMESPACE/resourceaccessreviews HTTP/1.1
Authorization: Bearer $TOKEN
Accept: application/json
Connection: close
Content-Type: application/json'
{
"kind": "ResourceAccessReview",
"apiVersion": "v1",
...
}
Curl request
$ curl -k \
-X POST \
-d @- \
-H "Authorization: Bearer $TOKEN" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
https://$ENDPOINT/oapi/v1/namespaces/$NAMESPACE/resourceaccessreviews <<'EOF'
{
"kind": "ResourceAccessReview",
"apiVersion": "v1",
...
}
EOF
HTTP body
Parameter | Schema |
---|---|
body | v1.ResourceAccessReview |
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.ResourceAccessReview |
401 Unauthorized |
Consumes
- */*
Produces
application/json
application/yaml
application/vnd.kubernetes.protobuf