mirror of
https://github.com/grafana/grafana.git
synced 2025-09-18 07:02:52 +08:00
Docs: Add license check endpoint doc (#32987)
* Docs: Add license check endpoint doc * Change request example Co-authored-by: Emil Tullstedt <emil.tullstedt@grafana.com> * Change response example Co-authored-by: Emil Tullstedt <emil.tullstedt@grafana.com> Co-authored-by: Emil Tullstedt <emil.tullstedt@grafana.com> Co-authored-by: achatterjee-grafana <aparajita.chatterjee@grafana.com>
This commit is contained in:
@ -9,6 +9,36 @@ aliases = ["/docs/grafana/latest/http_api/licensing/"]
|
|||||||
|
|
||||||
Licensing is only available in Grafana Enterprise. Read more about [Grafana Enterprise]({{< relref "../enterprise" >}}).
|
Licensing is only available in Grafana Enterprise. Read more about [Grafana Enterprise]({{< relref "../enterprise" >}}).
|
||||||
|
|
||||||
|
## Check license availability
|
||||||
|
|
||||||
|
> **Note:** Available in Grafana Enterprise v7.4+.
|
||||||
|
|
||||||
|
`GET /api/licensing/check`
|
||||||
|
|
||||||
|
Checks if a valid license is available.
|
||||||
|
|
||||||
|
**Example request:**
|
||||||
|
|
||||||
|
```http
|
||||||
|
GET /api/licensing/check
|
||||||
|
Accept: application/json
|
||||||
|
Authorization: Bearer eyJrIjoiT0tTcG1pUlY2RnVKZTFVaDFsNFZXdE9ZWmNrMkZYbk
|
||||||
|
```
|
||||||
|
|
||||||
|
**Example response:**
|
||||||
|
|
||||||
|
```http
|
||||||
|
HTTP/1.1 200 OK
|
||||||
|
Content-Type: application/json
|
||||||
|
Content-Length: 4
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
Status codes:
|
||||||
|
|
||||||
|
- **200** - OK
|
||||||
|
|
||||||
|
## Manually force license refresh
|
||||||
|
|
||||||
> **Note:** Available in Grafana Enterprise v7.4+.
|
> **Note:** Available in Grafana Enterprise v7.4+.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user