域名交换
更新时间:2023-09-06
请求说明
将源实例的域名与目标实例的域名交换。
请求结构
Plain Text
1POST /v2/instance/swapDomain HTTP/1.1
2Host: redis.{region}.baidubce.com
3Authorization: authorization string
4{
5 "sourceInstanceId": "sourceInstanceId",
6 "targetInstanceId": "targetInstanceId"
7}
请求头域
除公共头域外,无其它特殊头域。
请求参数
参数名称 | 类型 | 是否必须 | 参数位置 | 描述 |
---|---|---|---|---|
sourceInstanceId | String | true | RequestBody | 源实例ID |
targetInstanceId | String | true | RequestBody | 目标实例ID |
返回头域
除公共头部,无其它特殊头部。
返回参数
无特殊返回参数。
请求示例
Plain Text
1POST /v2/instance/swapDomain HTTP/1.1
2HOST: redis.bj.baidubce.com
3Content-Type: application/json
4Authorization: bce-auth-v1/4386541c7b154d12a322912235a5a5b9/2022-01-28T06:45:44Z/1800/host/310a6f098ac9f790ca6d52d8ab42c0bf9f88e16af212558dc654878e55dc726a
5{
6 "sourceInstanceId": "scs-source-instance-id",
7 "targetInstanceId": "scs-target-instance-id"
8}
返回示例
Plain Text
1HTTP/1.1 200 OK
2x-bce-request-id: 7869616F-7A68-6977-656E-406261696475
3Content-Type: application/json