GET /v1/package-usage
查询当前用户套餐用量
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
subscription_id | query | string(uuid) | Yes | — |
site_id | query | string(uuid) | No | — |
from | query | string(date-time) | Yes | — |
to | query | string(date-time) | Yes | — |
timezone | query | string | Yes | — |
bucket | query | string: hour / day | Yes | — |
limit | query | integer | No | — |
cursor | query | string | No | — |
Responses
| Status | Description |
|---|---|
200 | 使用冻结数据快照计算的套餐用量 Fields: |
400 | 稳定错误信封 |
401 | 稳定错误信封 |
403 | 稳定错误信封 |
404 | 稳定错误信封 |
408 | 稳定错误信封 |
502 | 稳定错误信封 |
503 | 稳定错误信封 |
What to do on failure
400Fix the parameters or body per the field list; do not retry unchanged.401Check the credential format and whether it expired or was rotated.403Check the key scopes, the owner’s current permissions and the tenant scope; never switch to a more privileged account.404The resource does not exist or belongs to another tenant.503A dependency is unavailable: retry later with the original Idempotency-Key.