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": [
    {
      "additionalProperties": false, 
      "type": "object", 
      "description": "A list of errors that may be returned.", 
      "properties": {
        "errors": {
          "items": {
            "additionalProperties": false, 
            "type": "object", 
            "description": "An object describing a single error.", 
            "properties": {
              "field": {
                "type": "string", 
                "description": "The field with the error if applicable."
              }, 
              "message": {
                "type": "string", 
                "description": "The error message."
              }, 
              "code": {
                "type": "string", 
                "description": "The error code."
              }
            }
          }, 
          "type": "array"
        }
      }
    }, 
    {
      "additionalProperties": false, 
      "type": "object", 
      "properties": {
        "licenses": {
          "minItems": 0, 
          "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", 
          "maxItems": 4294967295
        }
      }
    }
  ]
}

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

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": "Install a new license key and enable associated services."
    }
  }
}

There is no JSON response body for this method.
