更新升级计划。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求头
该接口使用公共请求头,无特殊请求头。请参见公共请求参数文档。
请求语法
POST /escalationPlan/update HTTP/1.1
请求参数
名称 | 类型 | 位置 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|---|
Object | Body | 否 | A short description of struct |
||
escalationPlanId | Long | Body | 是 | 433 | 升级计划id |
escalationPlanName | String | Body | 否 | xxx | 升级计划名称 |
escalationPlanDescription | String | Body | 否 | xxxx | 升级计划描述 |
escalationPlanScopeObjects | Array | Body | 否 | 关联范围列表(服务) |
|
id | Long | Body | 是 | 87 | 主键 |
scopeObjectId | Long | Body | 是 | 234 | 范围对象id |
scope | String | Body | 否 | SERVICE | 范围对象类型 |
escalationPlanRules | Array | Body | 否 | 升级计划规则 |
|
id | Long | Body | 否 | 872 | 主键 |
escalationPlanType | String | Body | 否 | UN_ACKNOWLEDGE | UN_ACKNOWLEDGE 未响应 UN_FINISH 未完结 |
escalationPlanConditions | Array | Body | 否 | 升级计划条件列表 |
|
level | String | Body | 否 | P1 | P1 P2 P3 P4 |
effection | String | Body | 否 | LOW | LOW HIGH |
escalationPlanStrategies | Array | Body | 否 | 升级策略列表 |
|
noticeTime | Long | Body | 否 | 30 | 通知时间 |
noticeObjects | Array of Long | Body | 否 | 678 | 通知对象id |
noticeChannels | Array of String | Body | 否 | SMS | 通知渠道列表 |
serviceGroupIds | Array of Long | Body | 否 | 232 | 服务组id |
enableWebhook | Boolean | Body | 否 | true | 是否是webhook |
clientToken | String | Body | 否 | 6b404f14-77d1-4b53-a1a1-30a58bbcfc57 | clientToken |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
requestId | String | A5A1FEAE-9C47-011C-9C73-A376BC2REQUEST | Id of the request |
示例
请求示例
POST /escalationPlan/update HTTP/1.1
Host:gemp.aliyuncs.com
Content-Type:application/json
{
"escalationPlanId" : 433,
"escalationPlanName" : "xxx",
"escalationPlanDescription" : "xxxx",
"escalationPlanScopeObjects" : [ {
"id" : 87,
"scopeObjectId" : 234,
"scope" : "SERVICE"
} ],
"escalationPlanRules" : [ {
"id" : 872,
"escalationPlanType" : "UN_ACKNOWLEDGE",
"escalationPlanConditions" : [ {
"level" : "P1",
"effection" : "LOW"
} ],
"escalationPlanStrategies" : [ {
"noticeTime" : 30,
"noticeObjects" : [ 678 ],
"noticeChannels" : [ "SMS" ]
} ]
} ],
"clientToken" : "6b404f14-77d1-4b53-a1a1-30a58bbcfc57"
}
正常返回示例
XML
格式
HTTP/1.1 200 OK
Content-Type:application/xml
<UpdateEscalationPlanResponse>
<requestId>A5A1FEAE-9C47-011C-9C73-A376BC2REQUEST</requestId>
</UpdateEscalationPlanResponse>
JSON
格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"requestId" : "A5A1FEAE-9C47-011C-9C73-A376BC2REQUEST"
}
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | EscalationPlanRuleNull | Escalation plan rule can not be null. | 升级策略规则不能为空 |
400 | EscalationPlanServiceNull | Escalation plan service can not be nulll | 升级策略关联服务不能为空 |
400 | EscalationPlanAlreadyExisted | The escalation plan already exists. | 升级计划已存在 |
400 | EscalationPlanServiceAleardyRelated | The specified service is already related. | 服务已关联 |
404 | EscalationPlanNotExists | The specified escalation plan does not exist. | 升级计划不存在 |
访问错误中心查看更多错误码。
访问错误中心查看更多错误码。