百度智能云

All Product Document

          CDN

          Query Domain Name Speed Limit

          This interface is used to query the domain name speed limit.(Single link speed limit).

          Method Path Description
          GET /v2/domain/{domain}/config?trafficLimit Query rate limit for single link query

          domain: Need to query the accelerated domain name of CDN.

          Response body

          Parameter Optional Type
          trafficLimit Required trafficLimit

          The trafficLimit type is the same as setting the domain name speed limit documentation.

          Response example

          HTTP/1.1 200 OK 
          Server: nginx 
          Date: Tue, 26 Jul 2016 05:02:53 GMT 
          Content-Type: application/json; charset=utf-8 
          Connection: keep-alive 
          Content-Length: 142
            
          { 
              "trafficLimit":{ 
                  "enable":true, 
                  "limitRate":10485760, 
                  "limitStartHour":10, 
                  "limitEndHour":19, 
                  "limitRateAfter":0, 
                  "trafficLimitArg":"rate", 
                  "trafficLimitUnit":"m" 
              } 
          } 
          Previous
          Set the Domain Name Speed Limit
          Next
          Set the Access IP Control