容器云可以直接通过调用该接口,获取对应状态的维护计划。
正式:https://myom-databus.fdcyun.com/api/alert/get-maintenance_plan-by-rqy?env_code=xxx
测试:http://test.fdcyun.com:8010/api/alert/get-maintenance_plan-by-rqy?env_code=xxx
x-token:xxxxx //调用服务云[认证接口]得到的token,未传输此头的请求无法获取数据
请求体(body)
返回结果
//成功返回
{
"code":0,
"msg":"",
"data":{
"plans":[
{
"id": "2204",
"name": "补丁更新",
"begin_time": "2020-12-23 10:40:37",
"end_time": "2020-12-24 10:40:37",
"created_by": "杨敏超",
"created_time": "2020-12-24 10:40:37",
"created_email": "yangmc@mingyuanyun.com",
"created_phone": "18671314734"
}
],
"yw_owner":{
"user_code":"yangmc",
"user_name":"杨敏超",
"email":"yangmc@mingyuanyun.com",
"phone":"18671314734",
"tenant_id":"my561f78c61816f",
"tenant_name":"延安城投",
"tenant_mp_url":"https://test-bjjh.mp-test.fdcyun.com/plan"
}
}
}
//失败返回
{
"code": -6,
"msg": "sss",
"data": ""
}
| 代码 | 说明 |
|---|---|
| 0 | 表示请求成功(同时会给出明文信息) |
| -1 | 参数错误 |
| -2 | 应用id不存在 |
| -3 | 签名不正确 |
| -4 | token无效 |
| -5 | token过期 |
| -6 | 没有找到客户 |
| -7 | 未配置对应时间点维护计划 |