跳转至

安全加速 接口

POST 更新域名状态

POST /prod-api/cdn/domain/updateDomainStatus

Body 请求参数

{
  "domainId": 123,
  "status": "stop"
}

请求参数

名称 位置 类型 必选 中文名 说明
Authorization header string -
body body L7DomainStatusVo L7DomainStatusVo -

返回示例

200 Response

{
  "msg": "提交成功",
  "code": 200
}

201 Response

{}

返回结果

状态码 状态码含义 说明 数据模型
200 OK - Inline
201 Created - Inline
401 Unauthorized - Inline
403 Forbidden - Inline
404 Not Found - Inline

返回数据结构

状态码 200

名称 类型 必选 约束 中文名 说明
» msg string true - -
» code integer true - -

数据模型

L7DomainStatusVo

{
  "domainId": 0,
  "status": "string"
}

L7DomainStatusVo

属性

名称 类型 必选 约束 中文名 说明
domainId integer(int64) true - 域名 ID -
status string true - 状态 status
stop:表示停止
start:表示启动
delete:表示删除