Get license information

  • GET /_license
Auth

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 · default: true 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 · default: false

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

Response

application/json
license object required
expiry_date union oneOf
One of: string or number
expiry_date_in_millis number
issue_date union oneOf required
One of: string or number
issue_date_in_millis number required
issued_to string required
issuer string required
max_nodes union number | string required nullable
max_resource_units union number | string nullable
status enum required
Values: active valid invalid expired
type enum required
Values: missing trial basic standard dev silver gold platinum enterprise
uid string required
start_date_in_millis number required