更新事件。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求头

该接口使用公共请求头,无特殊请求头。请参见公共请求参数文档。

请求语法

POST /incident/update HTTP/1.1

请求参数

名称 类型 位置 是否必选 示例值 描述
Object Body

body

incidentId Long Body 12312

事件Id

incidentLevel String Body P1

事件级别 P1 P2 P3 P4

effect String Body LOW

影响等级 高:HIGH 低 LOW

incidentTitle String Body 事件标题

事件标题

clientToken String Body FD200FAE-E98F-496E-BFE6-4CE61E59A123

幂等校验token

返回数据

名称 类型 示例值 描述
requestId String FD200FAE-E98F-496E-BFE6-4CE61E59A2E9

Id of the request

data Object

data

incidentId Long 2312

事件id

示例

请求示例

POST /incident/update HTTP/1.1
Host:gemp.cn-shanghai.aliyuncs.com
Content-Type:application/json

{
  "incidentId" : 12312,
  "incidentLevel" : "P1",
  "effect" : "LOW",
  "incidentTitle" : "事件标题"
}

正常返回示例

XML格式

HTTP/1.1 200 OK
Content-Type:application/xml

<UpdateIncidentResponse>
    <requestId>FD200FAE-E98F-496E-BFE6-4CE61E59A2E9</requestId>
    <data>
        <incidentId>2312</incidentId>
    </data>
</UpdateIncidentResponse>

JSON格式

HTTP/1.1 200 OK
Content-Type:application/json

{
  "requestId" : "FD200FAE-E98F-496E-BFE6-4CE61E59A2E9",
  "data" : {
    "incidentId" : 2312
  }
}

错误码

HttpCode 错误码 错误信息 描述
400 IncidentUpdateInvalid The incident update is invalid. 事件更新无效
400 IncidentStatusInvalid The incident status is invalid. 事件当前状态无效
404 IncidentNotExtisted The incident does not exist. 不存当前事件

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

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