HTTP状态码
大部分情况都是200, 参数格式不正确表不存在等情况也都是200, 根据返回参数的code=0来判断是否有异常,如果服务器异常可能会返回500错误
参数说明
| 字段 | 参数名 | 类型 | 说明 |
|---|---|---|---|
| code | 状态码 | number | 0表示成功,非0表示异常,错误码 |
| request_id | 请求ID | string | 方便追踪问题 |
| data | 不同接口返回的主体数据 | object/array | - |
成功返回
{
"code": 0,
"request_id": "6acecbf5-30e0-43f4-9976-f1fdebffd14b",
"data": {
"list": [
{
"uid": 2200,
"set_id": 1,
"app_id": 5,
"zone_id": 1,
"zone_name": "不要删表和清表",
"create_date": "2022-03-01T08:34:13.000Z",
"zone_tag": "",
"zone_group": "",
"forbidden_auto_trigger_extend_tcaproxy": 1,
"extend_tcaproxy_status": 0,
"enable_mysql": 0,
"old_mysql_vport": 0,
"endpoint_client_id": "",
"endpoint_client_vip": "",
"endpoint_client_uin": "",
"endpoint_svr_clb": "",
"endpoint_svr_id": "",
"app_name": "新OMS开发测试",
"set_name": "autoinstall_Set"
}
],
"total": 1
}
}
失败返回
{
"request_id": "0555e2ce-380f-4965-a987-1382c76a7ef2",
"code": 119,
"message": "您的登录状态已失效",
"debug_message": {
"method": "isLogin"
}
}