查询配额及频控
更新时间:2023-05-25
URL
/sms/v3/quota?userQuery=
参数userQuery无需赋值
HTTP Method
GET
请求参数
无
响应参数
参数名称 | 类型 | 描述 |
---|---|---|
quotaPerDay | int | 当前生效的日(自然日)发送配额 |
quotaPerMonth | int | 当前生效的月(自然月)发送配额 |
quotaRemainToday | int | 日剩余配额 |
quotaRemainThisMonth | int | 月剩余配额 |
applyQuotaPerDay | int | 申请修改的日配额(最近一次申请) |
applyQuotaPerMonth | int | 申请修改的月配额(最近一次申请) |
applyCheckStatus | String | 申请配额的审核状态(最近一次申请),PENDING: 审核中,PASS: 审核通过,FAILURE: 审核失败 |
checkReply | String | 申请配额审核失败的原因(最近一次申请) |
rateLimitPerMobilePerSignByMinute | int | 单手机号单签名每分钟(60s)发送频率 |
rateLimitPerMobilePerSignByHour | int | 单手机号单签名每小时(60mins)发送频率 |
rateLimitPerMobilePerSignByDay | int | 单手机号单签名每天(24h)发送频率 |
rateLimitWhiteList | bool | 是否为频控白名单(白名单用户无频率限制) |
HTTP请求示例
GET /sms/v3/quota?userQuery= HTTP/1.1
Host: 127.0.0.1:8420
Authorization: bce-auth-v1/203069ff6d1145548efbccc0aeaf8b5a/2020-08-14T07:24:36Z/1800/host/562d49c266d3622c3db1d43052ed92b6f9e9aeefa82a0de9772a8025a6404e6e
Date: Fri, 14 Aug 2020 07:24:36 GMT
Content-Type: application/json; charset=utf-8
Connection: Keep-Alive
Accept-Encoding: gzip,deflate
响应成功示例
HTTP/1.1 200 OK
x-bce-request-id: 08cc7ca0-bea9-44de-95b7-9d076ee65f61
Cache-Control: no-cache
Content-Type: application/json;charset=UTF-8
Transfer-Encoding: chunked
Date: Fri, 14 Aug 2020 07:24:36 GMT
Server: BWS
{
"quotaPerDay": 100,
"quotaPerMonth": 1000,
"quotaRemainToday": 100,
"quotaRemainThisMonth": 1000,
"applyQuotaPerDay": 10000,
"applyQuotaPerMonth": 100000,
"applyCheckStatus": "FAILURE",
"checkReply": "月配额申请值过大",
"rateLimitPerMobilePerSignByMinute": 5,
"rateLimitPerMobilePerSignByHour": 10,
"rateLimitPerMobilePerSignByDay": 50,
"rateLimitWhiteList": true
}