LocalSubjectAccessReview

    LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking.


    • apiVersion: authorization.k8s.io/v1

    • kind: LocalSubjectAccessReview

    • metadata (ObjectMeta)

      Standard list metadata. More info:

    • status (SubjectAccessReviewStatus)

      Status is filled in by the server and indicates whether the request is allowed or not

    Operations


    HTTP Request

    POST /apis/authorization.k8s.io/v1/namespaces/{namespace}/localsubjectaccessreviews

    Parameters

    • namespace (in path): string, required

      namespace

    • body: , required

    • dryRun

    • pretty (in query): string

    Response

    200 (): OK

    201 (LocalSubjectAccessReview): Created

    401: Unauthorized