A AuthMS API Wiki API Reference iam.tianv.com →

GET /internal/tenants/{id}/check-quota

检查指定租户当前资源使用是否超过配额限制

租户服务 None application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
id path string Yes 租户ID
resource_type query string Yes 资源类型
requested query integer No 请求数量

Responses

StatusDescriptionSchema
200配额检查结果dto.CheckQuotaResponse
400请求参数错误gitee_com_linmes_authms_base_dto.SimpleResponse
401未认证gitee_com_linmes_authms_base_dto.SimpleResponse
500服务器内部错误gitee_com_linmes_authms_base_dto.SimpleResponse

Referenced Schemas

dto.CheckQuotaResponse

配额检查结果

FieldTypeRequiredExampleConstraintsDescription
allowed boolean No True 是否允许
current_usage integer No 45 当前使用量
limit integer No 100 上限
message string No 配额充足 消息

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No