Merge pull request #8206 from hashicorp/docs-fix-license-api

docs: update operator license API
This commit is contained in:
Luiz Aoqui 2020-06-18 21:24:13 -04:00 committed by GitHub
commit ee204746bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 10 deletions

View File

@ -475,8 +475,8 @@ server state is authoritative.
This endpoint gets information about the current license.
| Method | Path | Produces |
| ------ | ------------------- | ------------------ |
| Method | Path | Produces |
| ------ | ---------------------- | ------------------ |
| `GET` | `/v1/operator/license` | `application/json` |
@ -484,16 +484,16 @@ The table below shows this endpoint's support for
[blocking queries](/api-docs#blocking-queries) and
[required ACLs](/api-docs#acls).
| Blocking Queries | ACL Required |
| ---------------- | ---------------- |
| `NO` | `operator:write` |
| Blocking Queries | ACL Required |
| ---------------- | --------------- |
| `NO` | `operator:read` |
### Sample Request
```shell-session
$ curl \
http://127.0.0.1:8500/v1/operator/license
https://localhost:4646/v1/operator/license
```
### Sample Response
@ -540,8 +540,8 @@ $ curl \
This endpoint updates the Nomad license.
| Method | Path | Produces |
| ------ | ------------------- | ------------------ |
| Method | Path | Produces |
| ------ | ---------------------- | ------------------ |
| `PUT` | `/v1/operator/license` | `application/json` |
@ -564,8 +564,8 @@ The payload is the raw license blob.
```shell-session
$ curl \
--request PUT \
--data @consul.license \
http://127.0.0.1:8500/v1/operator/license
--data @nomad.license \
https://localhost:4646/v1/operator/license
```
### Sample Response