主题
接口描述
切换业务
请求路径
POST
/v1/platform/migrate/Customer
请求参数
名称 | 类型 | 位置 | 必须 | 描述 |
---|---|---|---|---|
Authorization | string | header | 是 | 鉴权 token |
nodeID | string | body | 是 | 节点 ID |
customerIDs | []MigrateCustomer | body | 是 | 业务方部署信息 |
createAt | int64 | body | 是 | 业务切换时间(毫秒) |
返回值
名称 | 类型 | 描述 |
---|---|---|
nodeID | string | 节点id |
IsReDeploy | bool | 业务部署是否重复 |
MigrateCustomer
名称 | 类型 | 描述 |
---|---|---|
customerID | uint32 | 业务方ID |
businessID | string | 节点业务ID |
请求示例
json
{
"nodeID": "ggfasfasf5da6a804f409a7bdca8484654",
"createAt": 4556456,
"customerIDs": [
{
"customerID": 16504,
"businessID": "gdfgdgdsgdsg"
}
]
}
## 返回值示例
``` json
正常请求:
http code 200
{
"nodeID": "fdsfhfdsf8yt89ewhireg",
"IsReDeploy": true
}
异常请求:
http code 4xx/5xx
{
"code": 4000001,
"desc": ""
}
错误码列表
错误码 | 描述 |
---|---|
401 | 鉴权失败 |
如接口返回错误码未列举,可在错误码总览中查找