POST /oapi/v1/localsubjectaccessreviews HTTP/1.1 Authorization: Bearer $TOKEN Accept: application/json Connection: close Content-Type: application/json' { "kind": "LocalSubjectAccessReview", "apiVersion": "v1", ... }
LocalSubjectAccessReview is an object for requesting information about whether a user or group can perform an action in a particular namespace
Expand or mouse-over a field for more information about it.
apiVersion:content:
Raw:groups:
- [string]:isNonResourceURL:kind:namespace:path:resource:resourceAPIGroup:resourceAPIVersion:resourceName:scopes:
- [string]:user:verb:
Create a LocalSubjectAccessReview
POST /oapi/v1/localsubjectaccessreviews HTTP/1.1 Authorization: Bearer $TOKEN Accept: application/json Connection: close Content-Type: application/json' { "kind": "LocalSubjectAccessReview", "apiVersion": "v1", ... }
Create a LocalSubjectAccessReview
POST /oapi/v1/namespaces/$NAMESPACE/localsubjectaccessreviews HTTP/1.1 Authorization: Bearer $TOKEN Accept: application/json Connection: close Content-Type: application/json' { "kind": "LocalSubjectAccessReview", "apiVersion": "v1", ... }
$ curl -k \ -X POST \ -d @- \ -H "Authorization: Bearer $TOKEN" \ -H 'Accept: application/json' \ -H 'Content-Type: application/json' \ https://$ENDPOINT/oapi/v1/namespaces/$NAMESPACE/localsubjectaccessreviews <<'EOF' { "kind": "LocalSubjectAccessReview", "apiVersion": "v1", ... } EOF