36 lines
1.1 KiB
Plaintext
36 lines
1.1 KiB
Plaintext
|
--
|
||
|
: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
|