67 lines
4.1 KiB
Plaintext
67 lines
4.1 KiB
Plaintext
[[reference-security-get_service_credentials]]
|
|
|
|
////////
|
|
===========================================================================================================================
|
|
|| ||
|
|
|| ||
|
|
|| ||
|
|
|| ██████╗ ███████╗ █████╗ ██████╗ ███╗ ███╗███████╗ ||
|
|
|| ██╔══██╗██╔════╝██╔══██╗██╔══██╗████╗ ████║██╔════╝ ||
|
|
|| ██████╔╝█████╗ ███████║██║ ██║██╔████╔██║█████╗ ||
|
|
|| ██╔══██╗██╔══╝ ██╔══██║██║ ██║██║╚██╔╝██║██╔══╝ ||
|
|
|| ██║ ██║███████╗██║ ██║██████╔╝██║ ╚═╝ ██║███████╗ ||
|
|
|| ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝╚══════╝ ||
|
|
|| ||
|
|
|| ||
|
|
|| 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.getServiceCredentials
|
|
|
|
Get service account credentials.
|
|
|
|
{ref}/security-api-get-service-credentials.html[{es} documentation]
|
|
|
|
[discrete]
|
|
==== Function signature
|
|
|
|
[source,ts]
|
|
----
|
|
(SecurityGetServiceCredentialsRequest, options?): Promise<SecurityGetServiceCredentialsResponse>
|
|
----
|
|
|
|
[discrete]
|
|
===== `SecurityGetServiceCredentialsRequest`
|
|
|
|
[source,ts]
|
|
----
|
|
interface SecurityGetServiceCredentialsRequest extends <<shared-type-request-base, RequestBase>> {
|
|
namespace: <<shared-type-namespace, Namespace>>
|
|
service: <<shared-type-name, Name>>
|
|
}
|
|
----
|
|
|
|
[discrete]
|
|
===== `SecurityGetServiceCredentialsResponse`
|
|
|
|
[source,ts]
|
|
----
|
|
interface SecurityGetServiceCredentialsResponse {
|
|
service_account: string
|
|
count: <<shared-type-integer, integer>>
|
|
tokens: Record<string, <<shared-type-metadata, Metadata>>>
|
|
nodes_credentials: SecurityGetServiceCredentialsNodesCredentials
|
|
}
|
|
----
|
|
|