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

GET /admin/billing/metered-usage/{tenant_id}

查询指定租户的计量计费使用记录,包含各资源类型的包含量、超额量和超额费用。支持按应用和时间范围过滤。

计费服务 `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
tenant_id path string Yes 租户ID
app_id query string No 应用ID(可选)
start query string No 开始日期 (YYYY-MM-DD)
end query string No 结束日期 (YYYY-MM-DD)

Responses

StatusDescriptionSchema
200计量计费记录查询成功dto.MeteredBillingListResponse
400请求参数错误object
401未授权object
403无权限object
500服务器内部错误object

Referenced Schemas

dto.MeteredBillingListResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
data array of

See dto.MeteredBillingResponse

No
message string No
timestamp string No

dto.MeteredBillingResponse

FieldTypeRequiredExampleConstraintsDescription
app_id string No
id string No
overage_amount string No
overage_units integer No
period_end string No
period_start string No
resource_type string No
status string No
tenant_id string No
total_usage integer No