GET /internal/tenants/{id}/check-quota
检查指定租户当前资源使用是否超过配额限制
租户服务 None application/json
Request Parameters
| Name | In | Type | Required | Default | Example | Constraints | Description |
id |
path |
string |
Yes |
|
|
|
租户ID |
resource_type |
query |
string |
Yes |
|
|
|
资源类型 |
requested |
query |
integer |
No |
|
|
|
请求数量 |
Referenced Schemas
dto.CheckQuotaResponse
配额检查结果
| Field | Type | Required | Example | Constraints | Description |
allowed |
boolean |
No |
True |
|
是否允许 |
current_usage |
integer |
No |
45 |
|
当前使用量 |
limit |
integer |
No |
100 |
|
上限 |
message |
string |
No |
配额充足 |
|
消息 |
gitee_com_linmes_authms_base_dto.SimpleResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|