Autional Autional
API Reference GitHub autional.com →

GET /internal/tenant/{tenant_id}/check-quota

Check if specified tenant resource usage exceeds quota limits

Tenant Service None application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
id path string Yes Tenant ID
resource_type query string Yes Resource type
requested query integer No Requested quantity

Responses

StatusDescriptionSchema
200Quota check resultdto.CheckQuotaResponse
400Invalid request parametersgitee_com_linmes_authms_base_dto.SimpleResponse
401Unauthorizedgitee_com_linmes_authms_base_dto.SimpleResponse
500Internal server errorgitee_com_linmes_authms_base_dto.SimpleResponse

Referenced Schemas

dto.CheckQuotaResponse

Quota check result

FieldTypeRequiredExampleConstraintsDescription
allowed boolean No True Is allowed
current_usage integer No 45 Current usage
limit integer No 100 Limit
message string No Quota sufficient Message

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No