跳转到主要内容
POST
POST /admin/api/rate-limits

授权

gproxy_session
string
cookie
必填

请求头

x-gproxy-admin-scope
string

Administrative scope selected by the caller.

请求体

application/json
limitValue
string
必填
metric
string
必填
periodSeconds
integer<int64>
必填
apiKeyId
string | null
enabled
boolean | null
id
string | null
modelPattern
string | null
userId
string | null

响应

Success

apiKeyId
string | null
必填
enabled
boolean
必填
id
string
必填
limitValue
string
必填

A decimal string, never a JSON number: a limit has to survive a JavaScript Number unchanged.

metric
string
必填

requests, concurrency, or any counter name the host charges.

modelPattern
string | null
必填

None means every model.

periodSeconds
integer<int64>
必填
userId
string | null
必填

Exactly one subject, the same rule permissions follow.