elasticsearch/docs/java-rest/high-level/security/delete-service-account-token.asciidoc
Yang Wang 2350369782
Service Accounts - HLRC (#72431)
This PR adds corresponding components in High Level Rest Client for the new
APIs related to the service accounts feature.
2021-06-17 21:27:20 +10:00

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