Baidu AI Cloud
中国站

百度智能云

CDN

Query the SEO Switch Attribute

Interface

This interface is used to query the SEO switch property.

Method Path Description
GET /v2/domain/{domain}/config?seoSwitch Query seo switch property

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

Request body

Parameter Optional Type Description
seoSwitch Required seoSwitch Query seo switch property

The seoSwitch types are as follows:

Parameter Optional Type Description
diretlyOrigin Optional String ON means setting direct forward-to-origin, and OFF means the opposite.
pushRecord Optional String ON means pushing access records to Baidu search, and OFF means the opposite.

You can only take "ON|OFF " for diretlyOrigin and pushRecord.

Response code (Http Status Code)

HTTP Status Code Description
200 Success

Response body

Parameter Type Description
status seoSwitch Return to the current status of seo switch

Request example

GET /v2/domain/myself.baidu.com/config?seoSwitch HTTP/1.1 
Host: cdn.baidubce.com 

Response example

HTTP/1.1 200 OK 
Server: nginx/1.14.0 
Date: Fri, 21 Sep 2018 03:46:35 GMT 
Content-Type: application/json; charset=utf-8 
Transfer-Encoding: chunked 
Connection: keep-alive 
X-Powered-By: PHP/5.6.36 
x-bce-request-id: fb39f52e-203d-5558-6543-15bbaaf6b4a7

{"seoSwitch":{"diretlyOrigin":"ON","pushRecord":"OFF"}} 
Previous
Set the SEO Switch Attribute
Next
Set the Video Drag and Drop