Get service accounts Added in 7.13.0
Get a list of service accounts that match the provided path parameters.
Path parameters
-
Name of the namespace. Omit this parameter to retrieve information about all service accounts. If you omit this parameter, you must also omit the
service
parameter.
GET /_security/service/{namespace}
curl \
-X GET http://api.example.com/_security/service/{namespace}
Response examples (200)
{
"additionalProperty1": {
"role_descriptor": {
"cluster": [
"string"
],
"indices": [
{
"field_security": {
"except": "string",
"grant": "string"
},
"names": [
"string"
],
"privileges": [
"string"
],
"": "string",
"allow_restricted_indices": true
}
],
"global": [
{
"application": {}
}
],
"applications": [
{
"application": "string",
"privileges": [
"string"
],
"resources": [
"string"
]
}
],
"metadata": {
"additionalProperty1": {},
"additionalProperty2": {}
},
"run_as": [
"string"
],
"description": "string",
"transient_metadata": {
"additionalProperty1": {},
"additionalProperty2": {}
}
}
},
"additionalProperty2": {
"role_descriptor": {
"cluster": [
"string"
],
"indices": [
{
"field_security": {
"except": "string",
"grant": "string"
},
"names": [
"string"
],
"privileges": [
"string"
],
"": "string",
"allow_restricted_indices": true
}
],
"global": [
{
"application": {}
}
],
"applications": [
{
"application": "string",
"privileges": [
"string"
],
"resources": [
"string"
]
}
],
"metadata": {
"additionalProperty1": {},
"additionalProperty2": {}
},
"run_as": [
"string"
],
"description": "string",
"transient_metadata": {
"additionalProperty1": {},
"additionalProperty2": {}
}
}
}
}