WARNING: Version 6.2 of Elasticsearch has passed its EOL date.
This documentation is no longer being maintained and may be removed. If you are running this version, we strongly advise you to upgrade. For the latest information, see the current release documentation.
This API enables you to retrieve licensing information.
GET /_xpack/license
This API returns information about the type of license, when it was issued, and when it expires, for example.
For more information about the different types of licenses, see https://www.elastic.co/subscriptions.
-
local
-
(boolean) Specifies whether to retrieve local information. The default value
is
false
, which means the information is retrieved from the master node.
You must have monitor
cluster privileges to use this API.
For more information, see
Security Privileges.
The following example provides information about a basic license:
GET _xpack/license
{ "license" : { "status" : "active", "uid" : "cbff45e7-c553-41f7-ae4f-9205eabd80xx", "type" : "trial", "issue_date" : "2018-02-22T23:12:05.550Z", "issue_date_in_millis" : 1519341125550, "expiry_date" : "2018-03-24T23:12:05.550Z", "expiry_date_in_millis" : 1521933125550, "max_nodes" : 1000, "issued_to" : "test", "issuer" : "elasticsearch", "start_date_in_millis" : -1 } }