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

GET /billing/usage/{tenant_id}/current

查询当前计费周期内的已使用资源量(用户数、存储、API调用),用于实时用量监控

计费服务 `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
tenant_id path string Yes 租户ID
app_id query string No 应用ID(可选)

Responses

StatusDescriptionSchema
200当前使用量查询成功dto.CurrentUsageDetailResponse
400请求参数错误object
401未授权object
500服务器内部错误object

Referenced Schemas

dto.CurrentUsageDetailResponse

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

dto.CurrentUsageResponse

FieldTypeRequiredExampleConstraintsDescription
api_calls_today integer No 150
storage_gb number No 2.5
users integer No 8