mirror of
https://github.com/coder/coder.git
synced 2025-07-18 14:17:22 +00:00
feat: add force refresh of license entitlements (#9155)
* feat: add force refresh of license entitlements * send "going away" mesasge on licenses pubsub on close * Add manual refresh to licenses page
This commit is contained in:
1
docs/api/enterprise.md
generated
1
docs/api/enterprise.md
generated
@ -134,6 +134,7 @@ curl -X GET http://coder-server:8080/api/v2/entitlements \
|
||||
}
|
||||
},
|
||||
"has_license": true,
|
||||
"refreshed_at": "2019-08-24T14:15:22Z",
|
||||
"require_telemetry": true,
|
||||
"trial": true,
|
||||
"warnings": ["string"]
|
||||
|
38
docs/api/organizations.md
generated
38
docs/api/organizations.md
generated
@ -49,6 +49,44 @@ curl -X POST http://coder-server:8080/api/v2/licenses \
|
||||
|
||||
To perform this operation, you must be authenticated. [Learn more](authentication.md).
|
||||
|
||||
## Update license entitlements
|
||||
|
||||
### Code samples
|
||||
|
||||
```shell
|
||||
# Example request using curl
|
||||
curl -X POST http://coder-server:8080/api/v2/licenses/refresh-entitlements \
|
||||
-H 'Accept: application/json' \
|
||||
-H 'Coder-Session-Token: API_KEY'
|
||||
```
|
||||
|
||||
`POST /licenses/refresh-entitlements`
|
||||
|
||||
### Example responses
|
||||
|
||||
> 201 Response
|
||||
|
||||
```json
|
||||
{
|
||||
"detail": "string",
|
||||
"message": "string",
|
||||
"validations": [
|
||||
{
|
||||
"detail": "string",
|
||||
"field": "string"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
### Responses
|
||||
|
||||
| Status | Meaning | Description | Schema |
|
||||
| ------ | ------------------------------------------------------------ | ----------- | ------------------------------------------------ |
|
||||
| 201 | [Created](https://tools.ietf.org/html/rfc7231#section-6.3.2) | Created | [codersdk.Response](schemas.md#codersdkresponse) |
|
||||
|
||||
To perform this operation, you must be authenticated. [Learn more](authentication.md).
|
||||
|
||||
## Create organization
|
||||
|
||||
### Code samples
|
||||
|
2
docs/api/schemas.md
generated
2
docs/api/schemas.md
generated
@ -2674,6 +2674,7 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
|
||||
}
|
||||
},
|
||||
"has_license": true,
|
||||
"refreshed_at": "2019-08-24T14:15:22Z",
|
||||
"require_telemetry": true,
|
||||
"trial": true,
|
||||
"warnings": ["string"]
|
||||
@ -2688,6 +2689,7 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
|
||||
| `features` | object | false | | |
|
||||
| » `[any property]` | [codersdk.Feature](#codersdkfeature) | false | | |
|
||||
| `has_license` | boolean | false | | |
|
||||
| `refreshed_at` | string | false | | |
|
||||
| `require_telemetry` | boolean | false | | |
|
||||
| `trial` | boolean | false | | |
|
||||
| `warnings` | array of string | false | | |
|
||||
|
Reference in New Issue
Block a user