Test run of new docs
This commit is contained in:
69
docs/reference-security-has_privileges.asciidoc
Normal file
69
docs/reference-security-has_privileges.asciidoc
Normal file
@ -0,0 +1,69 @@
|
||||
[[reference-security-has_privileges]]
|
||||
|
||||
////////
|
||||
===========================================================================================================================
|
||||
|| ||
|
||||
|| ||
|
||||
|| ||
|
||||
|| ██████╗ ███████╗ █████╗ ██████╗ ███╗ ███╗███████╗ ||
|
||||
|| ██╔══██╗██╔════╝██╔══██╗██╔══██╗████╗ ████║██╔════╝ ||
|
||||
|| ██████╔╝█████╗ ███████║██║ ██║██╔████╔██║█████╗ ||
|
||||
|| ██╔══██╗██╔══╝ ██╔══██║██║ ██║██║╚██╔╝██║██╔══╝ ||
|
||||
|| ██║ ██║███████╗██║ ██║██████╔╝██║ ╚═╝ ██║███████╗ ||
|
||||
|| ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝╚══════╝ ||
|
||||
|| ||
|
||||
|| ||
|
||||
|| This file is autogenerated, DO NOT send pull requests that changes this file directly. ||
|
||||
|| You should update the script that does the generation, which can be found in: ||
|
||||
|| https://github.com/elastic/elastic-client-generator-js ||
|
||||
|| ||
|
||||
|| You can run the script with the following command: ||
|
||||
|| npm run elasticsearch -- --version <version> ||
|
||||
|| ||
|
||||
|| ||
|
||||
|| ||
|
||||
===========================================================================================================================
|
||||
////////
|
||||
|
||||
[discrete]
|
||||
=== client.security.hasPrivileges
|
||||
|
||||
Check user privileges. Determine whether the specified user has a specified list of privileges.
|
||||
|
||||
{ref}/security-api-has-privileges.html[{es} documentation]
|
||||
|
||||
[discrete]
|
||||
==== Function signature
|
||||
|
||||
[source,ts]
|
||||
----
|
||||
(SecurityHasPrivilegesRequest, options?): Promise<SecurityHasPrivilegesResponse>
|
||||
----
|
||||
|
||||
[discrete]
|
||||
===== `SecurityHasPrivilegesRequest`
|
||||
|
||||
[source,ts]
|
||||
----
|
||||
interface SecurityHasPrivilegesRequest extends <<shared-type-request-base, RequestBase>> {
|
||||
user?: <<shared-type-name, Name>>
|
||||
application?: SecurityHasPrivilegesApplicationPrivilegesCheck[]
|
||||
cluster?: SecurityClusterPrivilege[]
|
||||
index?: SecurityHasPrivilegesIndexPrivilegesCheck[]
|
||||
}
|
||||
----
|
||||
|
||||
[discrete]
|
||||
===== `SecurityHasPrivilegesResponse`
|
||||
|
||||
[source,ts]
|
||||
----
|
||||
interface SecurityHasPrivilegesResponse {
|
||||
application: SecurityHasPrivilegesApplicationsPrivileges
|
||||
cluster: Record<string, boolean>
|
||||
has_all_requested: boolean
|
||||
index: Record<<<shared-type-index-name, IndexName>>, SecurityHasPrivilegesPrivileges>
|
||||
username: <<shared-type-username, Username>>
|
||||
}
|
||||
----
|
||||
|
||||
Reference in New Issue
Block a user