Get service account credentials Added in 7.13.0
Path parameters
-
Name of the namespace.
-
Name of the service name.
GET
/_security/service/{namespace}/{service}/credential
curl \
-X GET http://api.example.com/_security/service/{namespace}/{service}/credential
Response examples (200)
{
"service_account": "string",
"count": 42.0,
"tokens": {
"*": {
"additionalProperty1": {},
"additionalProperty2": {}
}
},
"nodes_credentials": {
"_nodes": {
"failures": [
{
"type": "string",
"reason": "string",
"stack_trace": "string",
"caused_by": {},
"root_cause": [
{}
],
"suppressed": [
{}
]
}
],
"total": 42.0,
"successful": 42.0,
"failed": 42.0
},
"file_tokens": {
"additionalProperty1": {
"nodes": [
"string"
]
},
"additionalProperty2": {
"nodes": [
"string"
]
}
}
}
}