Get service account credentials Added in 7.13.0

GET /_security/service/{namespace}/{service}/credential

Path parameters

  • namespace string Required

    Name of the namespace.

  • service string Required

    Name of the service name.

Responses

  • 200 application/json
    Hide response attributes Show response attributes object
    • service_account string Required
    • count number Required
    • tokens object Required
      Hide tokens attribute Show tokens attribute object
      • * object
        Hide * attribute Show * attribute object
        • * object Additional properties

          Additional properties are allowed.

    • nodes_credentials object Required

      Additional properties are allowed.

      Hide nodes_credentials attributes Show nodes_credentials attributes object
      • _nodes object Required

        Additional properties are allowed.

        Hide _nodes attributes Show _nodes attributes object
        • failures array[object]
          Hide failures attributes Show failures attributes object
          • type string Required

            The type of error

          • reason string

            A human-readable explanation of the error, in english

          • The server stack trace. Present only if the error_trace=true parameter was sent with the request.

          • Additional properties are allowed.

          • root_cause array[object]

            Additional properties are allowed.

          • suppressed array[object]

            Additional properties are allowed.

        • total number Required

          Total number of nodes selected by the request.

        • successful number Required

          Number of nodes that responded successfully to the request.

        • failed number Required

          Number of nodes that rejected the request or failed to respond. If this value is not 0, a reason for the rejection or failure is included in the response.

      • file_tokens object Required

        File-backed tokens collected from all nodes

        Hide file_tokens attribute Show file_tokens attribute object
        • * object Additional properties

          Additional properties are allowed.

          Hide * attribute Show * attribute object
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"
        ]
      }
    }
  }
}