百度智能云

All Product Document

          CDN

          Stop the Acceleration Domain Name Interface

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

          Method Path Description
          POST /v2/domain/{domain}?disable Disable an accelerated domain name

          domain: Accelerated domain name to be disabled

          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?disable 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
          Query Whether the Domain Name can be Added
          Next
          Query Whether the Domain Name can be Filed