跳转到主要内容
GET
GET /admin/api/credentials/{id}/quota

授权

gproxy_session
string
cookie
必填

请求头

x-gproxy-admin-scope
string

Administrative scope selected by the caller.

路径参数

id
string
必填

响应

Success

What this instance knows about one credential's upstream quota: its cycles — every open one and each window's most recent closed ones — and the blocks currently keeping it out of selection.

Windows overlap (a 5-hour and a weekly window both count the same request), so the cycles' costs are never meant to be summed across windows. The raw readings behind the cycles are a separate, paged read.

blocks
object[]
必填

Only blocks that have not expired yet.

cycles
object[]
必填

Open cycles first, by window; then closed ones by window, newest first.