更新故障详情。

调试

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

请求头

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

请求语法

POST /problem/update HTTP/1.1

请求参数

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

A short description of struct

problemId Long Body 213432

故障id

problemName String Body 故障2

故障名称

level String Body P1

故障等级

relatedServiceId Long Body 123

关联服务

progressSummary String Body 进展摘要xxxx

进展摘要

preliminaryReason String Body 原因是服务宕机

初步原因

mainHandlerId Long Body 678

主要处理人

feedback String Body 影响恶劣

舆情反馈

serviceGroupIds Array of Long Body 102

应急协同组ID

progressSummaryRichTextId Long Body 23232

富文本字段id

{

"problemId" : 213432,

"problemName" : "故障2",

"level" : "P1",

"relatedServiceId" : 123,

"progressSummary" : "进展摘要xxxx",

"preliminaryReason" : "原因是服务宕机",

"mainHandlerId" : 678,

"feedback" : "影响恶劣",

"serviceGroupIds" : 102

}

返回数据

名称 类型 示例值 描述
requestId String c26f36de-1ec8-496a-a828-880676c5ef81

Id of the request

{

"requestId": "c26f36de-1ec8-496a-a828-880676c5ef81"

}

示例

请求示例

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

{
  "problemId" : 213432,
  "problemName" : "故障2",
  "level" : "P1",
  "relatedServiceId" : 123,
  "progressSummary" : "进展摘要xxxx",
  "preliminaryReason" : "原因是服务宕机",
  "mainHandlerId" : 678,
  "feedback" : "影响恶劣",
  "serviceGroupIds" : [ 102 ]
}

正常返回示例

XML格式

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

<UpdateProblemResponse>
    <requestId>c26f36de-1ec8-496a-a828-880676c5ef81</requestId>
</UpdateProblemResponse>

JSON格式

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

{
  "requestId" : "c26f36de-1ec8-496a-a828-880676c5ef81"
}

错误码

HttpCode 错误码 错误信息 描述
404 ProblemNotExisted The problem does not exist. 故障不存在

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

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