Get license information

GET /_license

Get information about your Elastic license including its type, its status, when it was issued, and when it expires.

NOTE: If the master node is generating a new cluster state, the get license API may return a 404 Not Found response. If you receive an unexpected 404 response after cluster startup, wait a short period and retry the request.

Query parameters

  • accept_enterprise boolean Deprecated

    If true, this parameter returns enterprise for Enterprise license types. If false, this parameter returns platinum for both platinum and enterprise license types. This behavior is maintained for backwards compatibility. This parameter is deprecated and will always be set to true in 8.x.

  • local boolean

    Specifies whether to retrieve local information. The default value is false, which means the information is retrieved from the master node.

Responses

GET /_license
curl \
 -X GET http://api.example.com/_license
Response examples (200)
{
  "license": {
    "": 42.0,
    "issued_to": "string",
    "issuer": "string",
    "max_nodes": 42.0,
    "max_resource_units": 42.0,
    "status": "active",
    "type": "missing",
    "uid": "string"
  }
}