xpack.license.getBasicStatus

edit
client.xpack.license.getBasicStatus()

Reference