最近更新时间:2026-01-07 20:09:20
本接口用于启用、停用某个加速域名。
启用状态为“停用”的加速域名,将DomainStatus变更为online;
停用某个正常运行的加速域名,将DomainStatus变更为offline;
注意:
域名对应账户如果由于欠费,或域名处于非法状态,无法正常调用该接口启用加速域名。
停用该加速域名后,该加速域名的相关配置信息仍保留,但无法提供服务。
无法停用状态为审核失败、审核中、配置中的域名,需要等待审核完成或配置完成后再进行停用操作。
本接口请求需要包含指定目录/V3/StartStopCdnDomain、公共请求header和该接口所特有的请求参数,具体请求语句参照下文请求示例。
参数名 | 必选 | 类型及范围 | 说明 |
|---|---|---|---|
ActionType | 是 | String | 操作接口名,取值:start:启用;stop:停用 |
DomainId | 是 | String | 需要启用或停用CDN服务的域名ID,只允许输入一个域名ID |
请求示例
GET方式:
GET /V3/StartStopCdnDomain?ActionType=stop&DomainId=xxxxxx 1.1
Host: cdn.api.ksyun.com
X-Amz-Date: date
Authorization:authorization string
x-action: StartStopCdnDomain
x-version: V3POST方式:
POST /V3/StartStopCdnDomain 1.1
Host: cdn.api.ksyun.com
X-Amz-Date: date
Authorization:authorization string
x-action: StartStopCdnDomain
x-version: V3
Content-Type: application/x-www-form-urlencoded
ActionType=stop&DomainId=xxxxxx
纯净模式
