百度智能云

All Product Document

          CDN

          Query all the Domain Names under the User name

          Method Path Description
          GET /v2/user/domains Query all domain names under the username and their status. Support fuzzy matching and filtration of domain names and filtration of domain name status.

          Request

          Parameter Optional Type Description
          status Required String Filter the status of domain name ALL means to query domain names of all the status, "RUNNING" means to query the accelerated domain names, "STOPPED" means to query the acceleration-stopped domain names, and "OPERATING" means to query the operated domain names.
          rule Optional String It means support fuzzy matching of domain names: For example, "ao.com" will query all domain names under the username containing "ao.com"field, such as "abc.hao.com". Note The field can only consist of letters, numbers and '.', with no special characters allowed.

          Response

          Parameter Type Description
          domains list type, indicating domain name list All domain names of the user

          Composition of a single object in domains:

          Parameter Type Description
          domain String Domain name
          status String Corresponding status, “RUNNING " means accelerated domain names, “OPERATING " means operating domain names, and “STOPPED " means disabled accelerated domain names.

          Request example

          GET /v2/user/domains?status=ALL&rule=abc.com HTTP/1.1 
          Host: cdn.baidubce.com 

          Request description: It means to query all domain names containing “abc.com " under the username.

          Response example

          HTTP/1.1 200 OK 
          Server: nginx 
          Date: Thu, 18 Apr 2019 04:23:26 GMT 
          Content-Type: application/json; charset=utf-8 
          Transfer-Encoding: chunked 
          Connection: keep-alive 
          X-Powered-By: PHP/7.1.5 
          x-bce-request-id: ca0aaebb-110e-0ecd-8bf2-3b899cd67f3b
          
          { 
          	 "domains": 
            [ 
              {"domain":"123.abc.com","status":"RUNNING"}, 
              {"domain":"456.abc.com","status":"STOPPED"}, 
              {"domain":"789.abc.com","status":"OPERATING"} 
            ] 
          }
          Previous
          Query the Domain Name List
          Next
          Create the Acceleration Domain Name Interface