更新升级计划。

调试

您可以在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. 升级计划不存在

访问错误中心查看更多错误码。

访问错误中心查看更多错误码。