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

GET /admin/tenants/{id}/quota

获取指定租户的资源配额信息,包括用户上限、存储限制等

租户服务 `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
id path string Yes 租户ID

Responses

StatusDescriptionSchema
200资源配额详情dto.ResourceQuotaDetailResponse
400请求参数错误gitee_com_linmes_authms_base_dto.SimpleResponse
401未认证gitee_com_linmes_authms_base_dto.SimpleResponse
403权限不足gitee_com_linmes_authms_base_dto.SimpleResponse
404资源未找到gitee_com_linmes_authms_base_dto.SimpleResponse
500服务器内部错误gitee_com_linmes_authms_base_dto.SimpleResponse

Referenced Schemas

dto.ResourceQuotaDetailResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
data dto.ResourceQuotaResponse No
message string No
timestamp string No

dto.ResourceQuotaResponse

租户资源配额信息

FieldTypeRequiredExampleConstraintsDescription
active_users integer No 45 活跃用户数
api_calls_per_month integer No 10000 API调用上限
storage_gb integer No 50 存储上限
tenant_id string No tnt_abc123 租户ID
used_api_calls integer No 5230 已用API调用
used_storage_gb number No 23.5 已用存储
users_limit integer No 100 用户上限

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No