百度智能云

All Product Document

          CDN

          Query Enabled Https Domain Name

          Interface

          This interface is used to query the domain name list with https configuration enabled.

          method path Description
          GET /v2/httpsDomains Get and enable the list of https domain names

          URL parameter (if no paging parameter is added, there is no paging by default)

          Parameters Optional Type Description
          certCommonName Optional string Query the specified certCommonName
          certId Optional string Query the specified certId
          certName Optional string Query the specified certName
          domain Optional string Query the specified domain name. It must belong to the current user, and only the accurate matching is supported.
          pageNo Optional unsigned int Paging parameter, which means the page number.
          pageSize Optional unsigned int Paging parameter, which means the page size. 1 <= pageSize <= 100
          status Optional unsigned int Query the status of the specified certificate.

          Request Body: None

          Response Body

          Parameters Optional Type Description
          count Required unsigned int Total number of records for paging display
          rows Required list Query results

          Data Parameter Description

          Parameters Optional Type Description
          status Required unsigned int Certificate status, 1: using, 2: expired
          domain Required string Domain name
          certType Required unsigned int Certificate type, 1: server certificate; 2: client certificate
          certStopTime Required string Expiration time of certificate
          certStartTime Required string Effective time of certificate
          certName Required string Certificate name
          certId Required string Certificate id
          certCommonName Required string Common name of the certificate

          Note: response example. certName is commonCert, which indicates the common certificate used by this domain name.

          Request Example

          GET /v2/httpsDomains?pageSize=1&pageNo=1

          Response Example

          {
              "count": "9",
              "rows": [
                  {
                      "domain": "test16.baidu.com",
                      "certId": "cert-common",
                      "certName": "commonCert",
                      "certType": 1,
                      "status": 1,
                      "certCommonName": "-",
                      "certStartTime": "-",
                      "certStopTime": "-"
                  }
              ]
          }
          Previous
          Batch Upload of Certificates
          Next
          Statistics Interface