github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/website/content/api-docs/operator/license.mdx (about)

     1  ---
     2  layout: api
     3  page_title: License - Operator - HTTP API
     4  description: |-
     5    The /operator/license endpoints allow for retrieving the Nomad Enterprise License.
     6  ---
     7  
     8  # License Operator HTTP API
     9  
    10  <EnterpriseAlert />
    11  
    12  ## Get Nomad Enterprise License Info
    13  
    14  This endpoint gets information about the current license.
    15  
    16  | Method | Path                   | Produces           |
    17  | ------ | ---------------------- | ------------------ |
    18  | `GET`  | `/v1/operator/license` | `application/json` |
    19  
    20  The table below shows this endpoint's support for
    21  [blocking queries](/api-docs#blocking-queries) and
    22  [required ACLs](/api-docs#acls).
    23  
    24  | Blocking Queries | ACL Required    |
    25  | ---------------- | --------------- |
    26  | `NO`             | `operator:read` |
    27  
    28  ### Sample Request
    29  
    30  ```shell-session
    31  $ curl \
    32      https://localhost:4646/v1/operator/license
    33  ```
    34  
    35  ### Sample Response
    36  
    37  ```json
    38  {
    39    "KnownLeader": false,
    40    "LastContact": 0,
    41    "LastIndex": 0,
    42    "License": {
    43      "CustomerID": "customer name",
    44      "ExpirationTime": "2020-06-01T14:50:16.581304556-04:00",
    45      "Features": [
    46        "Automated Upgrades",
    47        "Enhanced Read Scalability",
    48        "Redundancy Zones",
    49        "Namespaces",
    50        "Resource Quotas",
    51        "Preemption",
    52        "Audit Logging",
    53        "Setinel Policies"
    54      ],
    55      "Flags": {
    56        "modules": ["governance-policy"]
    57      },
    58      "InstallationID": "*",
    59      "IssueTime": "2020-06-01T08:50:16.581304556-04:00",
    60      "LicenseID": "6f706a45-bdac-4a70-968b-d93784894653",
    61      "Modules": ["governance-policy"],
    62      "Product": "nomad",
    63      "StartTime": "2020-06-01T08:50:16.581304556-04:00",
    64      "TerminationTime": "2020-06-01T14:50:16.581304556-04:00"
    65    },
    66    "RequestTime": 0
    67  }
    68  ```