Siren Platform User Guide

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}