mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-29 01:44:36 -04:00
This PR adds corresponding components in High Level Rest Client for the new APIs related to the service accounts feature.
35 lines
1.1 KiB
Text
35 lines
1.1 KiB
Text
--
|
|
:api: delete-service-account-token
|
|
:request: DeleteServiceAccountTokenRequest
|
|
:response: DeleteServiceAccountTokenResponse
|
|
--
|
|
[role="xpack"]
|
|
[id="{upid}-{api}"]
|
|
=== Delete Service Account Token API
|
|
|
|
Index-based service account token can be deleted using this API.
|
|
|
|
[id="{upid}-{api}-request"]
|
|
==== Delete Service Account Token Request
|
|
|
|
A +{request}+ contains the namespace, service-name and token name of a
|
|
service account token.
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
--------------------------------------------------
|
|
include-tagged::{doc-tests-file}[{api}-request]
|
|
--------------------------------------------------
|
|
|
|
include::../execution.asciidoc[]
|
|
|
|
[id="{upid}-{api}-response"]
|
|
==== Delete Service Account Token Response
|
|
|
|
The returned +{response}+ allows to retrieve information about the executed
|
|
operation as follows:
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
--------------------------------------------------
|
|
include-tagged::{doc-tests-file}[{api}-response]
|
|
--------------------------------------------------
|
|
<1> whether the given service account token was found
|