百度智能云

All Product Document

          CDN

          Enable the Acceleration Domain Name Interface

          This interface is used to enable the specified domain name, and the domain name shall belong to the user, otherwise it returns 404 failure.

          Method Path Description
          POST /v2/domain/{domain}?enable Activate a accelerated domain name

          domain: accelerated domain name for which CDN has to be queried.

          Response code (Http Status Code)

          HTTP Status Code Description
          200 Success
          404 The domain name does not exist or does not belong to the current user.
          400 The domain name cannot be operated under current state

          Request example

          POST /v2/domain/myself.baidu.com?enable HTTP/1.1 
          Host: cdn.baidubce.com 
          Content-Length: 0
          Content-Type: text/json;utf-8

          Response example

          HTTP/1.1 200 OK 
          Content-Length: 0
          Content-Type: application/json;utf-8
          x-bce-request-id: 81d0b05f-5ad4-1f22-8068-d5c9de60a1d7
          Server: BCE-CDN
          Previous
          Create the Acceleration Domain Name Interface
          Next
          Delete the Acceleration Domain Name Interface