xpack.license.get

edit
client.xpack.license.get({
  local: boolean
})

Reference

local

boolean - Return local information, do not retrieve the state from master node (default: false)