License API
Federate includes a license manager service and a set of rest commands to register, verify and delete a Siren’s license.
Without a valid license, Federate will log a message to notify that the current license is invalid at every request.
Usage
Let’s assume you have a Siren license named license.sig
. You can upload and register this license in Elasticsearch using the command:
$ curl -XPUT -H 'Content-Type: application/json' -T license.sig 'http://localhost:9200/_siren/license' --- acknowledged: true
You can then check the status of the license using the command:
$ curl -H 'Content-Type: application/json' 'http://localhost:9200/_siren/license' { "license" : { "content" : { "valid-date" : "2016-05-16", "issue-date" : "2016-04-15", "max-nodes" : "12" }, "isValid" : true } }
To delete a license from Elasticsearch, you can use the command:
$ curl -XDELETE 'http://localhost:9200/_siren/license' {"acknowledged":true}