= v1.LocalResourceAccessReview
{product-author}
{product-version}
:data-uri:
:icons:
:toc: macro
:toc-title:
:toclevels: 2

toc::[]

== Description
[%hardbreaks]
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.

++++
<pre>
<div style="margin-left:13px;"><span title="(string) APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources">apiVersion</span>:
</div><details><summary><span title="(runtime.RawExtension) Content is the actual content of the request for create and update">content</span>:
</summary><div style="margin-left:13px;">  <span title="(string) Raw is the underlying serialization of this object.">Raw</span>:
</div></details><div style="margin-left:13px;"><span title="(boolean) IsNonResourceURL is true if this is a request for a non-resource URL (outside of the resource hieraarchy)">isNonResourceURL</span>:
</div><div style="margin-left:13px;"><span title="(string) Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds">kind</span>:
</div><div style="margin-left:13px;"><span title="(string) Namespace is the namespace of the action being requested.  Currently, there is no distinction between no namespace and all namespaces">namespace</span>:
</div><div style="margin-left:13px;"><span title="(string) Path is the path of a non resource URL">path</span>:
</div><div style="margin-left:13px;"><span title="(string) Resource is one of the existing resource types">resource</span>:
</div><div style="margin-left:13px;"><span title="(string) Group is the API group of the resource Serialized as resourceAPIGroup to avoid confusion with the &#39;groups&#39; field when inlined">resourceAPIGroup</span>:
</div><div style="margin-left:13px;"><span title="(string) Version is the API version of the resource Serialized as resourceAPIVersion to avoid confusion with TypeMeta.apiVersion and ObjectMeta.resourceVersion when inlined">resourceAPIVersion</span>:
</div><div style="margin-left:13px;"><span title="(string) ResourceName is the name of the resource being requested for a &#34;get&#34; or deleted for a &#34;delete&#34;">resourceName</span>:
</div><div style="margin-left:13px;"><span title="(string) Verb is one of: get, list, watch, create, update, delete">verb</span>:
</div>
</pre>
++++

== Operations

[[Post-apis-authorization.openshift.io-v1-namespaces-namespace-localresourceaccessreviews]]
=== 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
[cols="1,5", options="header"]
|===
|Parameter|Schema
|body|v1.LocalResourceAccessReview
|===

==== Path parameters
[cols="1,5", options="header"]
|===
|Parameter|Description
|namespace|object name and auth scope, such as for teams and projects
|===

==== Query parameters
[cols="1,5", options="header"]
|===
|Parameter|Description
|pretty|If 'true', then the output is pretty printed.
|===

==== Responses
[cols="1,5", options="header"]
|===
|HTTP Code|Schema
|200 OK|v1.LocalResourceAccessReview
|201 Created|v1.LocalResourceAccessReview
|202 Accepted|v1.LocalResourceAccessReview
|401 Unauthorized|
|===

==== Consumes

* \*/*

==== Produces

* application/json
* application/yaml
* application/vnd.kubernetes.protobuf



