第三方应用可以直接通过调用该接口,验证是否有配置包含更新时间点的维护计划。
正式:https://myom-databus.fdcyun.com/api/alert/check-maintenance_plan
测试:http://test.fdcyun.com:8010/api/alert/check-maintenance_plan
x-token:xxxxx //调用服务云[认证接口]得到的token,未传输此头的请求无法获取数据
x-custid:xxxx //客户主数据GUID
{
"update_time":"2020-12-23 10:40:37",// 选填 默认 当前时间
"xxx":"产品相关信息"
}
成功返回
{
"code":"0",
"msg":""
}
失败返回
{
"code": -7,
"msg": "未配置对应时间点维护计划",
"data":{
"yw_owner":{
"user_code":"yangmc",
"user_name":"杨敏超",
"email":"yangmc@mingyuanyun.com",
"phone":"18671314734",
"tenant_id":"my561f78c61816f",
"tenant_name":"延安城投"
}
}
}
//其他状态:
{
"code": -6,
"msg": "未配置对应时间点维护计划"
}
| 代码 | 说明 |
|---|---|
| 0 | 表示请求成功(同时会给出明文信息) |
| -1 | 参数错误 |
| -2 | 应用id不存在 |
| -3 | 签名不正确 |
| -4 | token无效 |
| -5 | token过期 |
| -6 | 没有找到客户 |
| -7 | 未配置对应时间点维护计划 |