Loading...

Security with X-Pack

Check License

GET /_xpack/license

Output

{
  "license": {
    "status": "active",
    "uid": "some-fancy-uuid",
    "type": "platinum",
    "issue_date": "2016-08-30T00:00:00.000Z",
    "issue_date_in_millis": 1472515200000,
    "expiry_date": "2017-08-31T23:59:59.999Z",
    "expiry_date_in_millis": 1504223999999,
    "max_nodes": 5,
    "issued_to": "Monster Inc",
    "issuer": "Rosed Marquez",
    "start_date_in_millis": -1
  }
}

Authenticate API

List and display your user information

GET _xpack/security/_authenticate

Output for Active Directory/LDAP

{
  "username": "mapper",
  "roles": [
    "devops",
    "admin",
    "guest"
  ],
  "full_name": "Le Mapper",
  "email": "le-mapper@example.com",
  "metadata": {
    "ldap_dn": "CN=Le Mapper (king),OU=Users,OU=IT,DC=central,DC=com",
    "ldap_groups": [
      "CN=..,OU=..,OU=..,OU=Bern,DC=central,DC=com",     
      "CN=..,OU=..,OU=..,OU=Zurich,DC=central,DC=com"
    ]
  },
  "enabled": true
}