域名交换
更新时间:2022-02-08
描述
将源实例的域名与目标实例的域名交换
请求结构
POST /v2/instance/swapDomain HTTP/1.1
Host: redis.{region}.baidubce.com
Authorization: authorization string
请求头域
除公共头域外,无其它特殊头域。
请求参数
参数名称 | 类型 | 是否必须 | 参数位置 | 描述 |
---|---|---|---|---|
sourceInstanceId | String | true | RequestBody | 源实例ID |
targetInstanceId | String | true | RequestBody | 目标实例ID |
请求示例
POST /v2/instance/swapDomain HTTP/1.1
HOST: redis.bj.baidubce.com
ContentType: application/json
Authorization: bce-auth-v1/4386541c7b154d12a322912235a5a5b9/2022-01-28T06:45:44Z/1800/host/310a6f098ac9f790ca6d52d8ab42c0bf9f88e16af212558dc654878e55dc726a
{
"sourceInstanceId": "scs-source-instance-id",
"targetInstanceId": "scs-target-instance-id"
}
返回头域
除公共头部,无其它特殊头部
返回参数
无特殊返回参数。