查询配额及频控
所有文档

          简单消息服务 SMS

          查询配额及频控

          URL

          /sms/v3/quota?userQuery=

          参数userQuery无需赋值

          HTTP Method

          GET

          请求参数

          响应参数

          参数名称 类型 描述
          quotaPerDay int 日(自然日)发送配额
          quotaPerMonth int 月(自然月)发送配额
          quotaRemainToday int 日剩余配额
          quotaRemainThisMonth int 月剩余配额
          quotaWhiteList bool 是否为配额白名单(白名单用户无配额限制)
          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,
            "quotaWhiteList": true,
            "rateLimitPerMobilePerSignByMinute": 5,
            "rateLimitPerMobilePerSignByHour": 10,
            "rateLimitPerMobilePerSignByDay": 50,
            "rateLimitWhiteList": true
          }
          上一篇
          模板相关接口
          下一篇
          变更配额或频控