Resource URL: /platform/<<version=1>>/license/licenses

    Overview: This resource applies the collection pattern to OneFS licenses.

     Methods: GET, POST

********************************************************************************

Method GET: Retrieve license information for all licensable products.

       URL: GET /platform/<<version=1>>/license/licenses

There are no query arguments for this method.

GET response body schema:
{
  "type": "object", 
  "properties": {
    "licenses": {
      "items": {
        "type": "object", 
        "description": "Information about an application license.", 
        "properties": {
          "duration": {
            "required": true, 
            "type": [
              "integer", 
              "null"
            ], 
            "description": "Total duration in seconds for temporary licenses."
          }, 
          "status": {
            "enum": [
              "Activated", 
              "Evaluation", 
              "Expired", 
              "Inactive", 
              "Unknown"
            ], 
            "type": "string", 
            "description": "Current status of the license.", 
            "required": true
          }, 
          "expiration": {
            "required": true, 
            "type": [
              "integer", 
              "null"
            ], 
            "description": "Unix epoch time the license will expire."
          }, 
          "name": {
            "required": true, 
            "type": "string", 
            "description": "Name of the licensed feature."
          }, 
          "id": {
            "required": true, 
            "type": "string", 
            "description": "Unique identifier for the license."
          }
        }
      }, 
      "type": "array"
    }
  }
}

********************************************************************************

Method POST: Install a new license key.

        URL: POST /platform/<<version=1>>/license/licenses

There are no query arguments for this method.

Required POST request body fields:
key

POST request body schema:
{
  "type": "object", 
  "properties": {
    "key": {
      "required": true, 
      "type": "string", 
      "description": "New license key."
    }
  }
}

There is no response body for this method.
