You need to enable JavaScript to run this app.
文档中心
云服务器

云服务器

复制全文
下载 pdf
监控
ModifySystemEventDefaultAction - 修改事件默认的运维操作
复制全文
下载 pdf
ModifySystemEventDefaultAction - 修改事件默认的运维操作
调用ModifySystemEventDefaultAction接口,修改事件默认的运维操作。​
调试​
API Explorer
您可以通过 API Explorer 在线发起调用,无需关注签名生成过程,快速获取调用结果。
​
请求参数​
下方仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。​
Action string 必选 示例值:ModifySystemEventDefaultAction​
要执行的操作,取值:ModifySystemEventDefaultAction。​
​
Version string 必选 示例值:2020-04-01​
API的版本,取值:2020-04-01。​
​
EventId string 必选 示例值:e-3ti9101aju3vj0***​
事件ID。您可以通过事件通知或DescribeSystemEvents接口查询获取。​
说明​
当前只有DiskErrorDetected事件为Inquiring状态时,支持该操作。​
​
DefaultAction string 必选 示例值:Redeploy​
事件默认的运维操作,取值:​
  • Redeploy:重新部署。​
  • ReplaceDisk:更换硬盘。​
说明​
本地盘LVM、SRIOV切分盘场景不支持该操作​
​
OperatedStartAt string 可选 示例值:2023-06-28T18:11:46+08:00​
事件运维时间窗开始时间。​
说明​
当参数DefaultAction取值为Redeploy时为必填,格式为RFC3339。​
​
OperatedEndAt string 可选 示例值:2023-06-29T18:29:38+08:00​
事件运维时间窗结束时间。​
说明​
当参数DefaultAction取值为Redeploy时为必填,格式为RFC3339。​
​
​
​
返回参数​
下方仅列出本接口特有的返回参数。更多信息请参见返回结构。​
EventId string 示例值:e-3ti9101aju3vj0***​
事件ID。​
​
RelatedEventId string 示例值:e-98islk8pjuks9i***​
该事件关联的事件ID。​
​
​
​
请求示例​
​
GET /?Action=ModifySystemEventDefaultAction&Version=2020-04-01&DefaultAction=Redeploy&EventId=e-3ti9101aju3vj0***&OperatedStartAt=2023-06-28T18:29:38+08:00&OperatedEndAt=2023-06-29T18:11:46+08:00 HTTP/1.1​
Host: ecs.cn-beijing.volcengineapi.com​
Region: cn-beijing​
ServiceName: ecs​
​
返回示例​
​
{​
"ResponseMetadata": {​
"RequestId": "20210611144510010225243100005******",​
"Action": "ModifySystemEventDefaultAction",​
"Version": "2020-04-01",​
"Service": "ecs",​
"Region": "cn-beijing"​
},​
"Result": {​
"EventId": "e-3ti9101aju3vj0***",​
"RelatedEventId": "e-98islk8pjuks9i***"​
}​
}​
​
错误码​
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。​
​
状态码​
错误码​
错误信息​
说明​
400​
InvalidDefaultAction.Malformed​
The specified DefaultAction is malformed.​
指定的DefaultAction不合法。​
400​
InvalidDefaultAction.Unsupported​
The event related instance does not support the default action.​
系统事件关联的实例不支持该默认运维操作。​
400​
InvalidOperatedEndAt.Malformed​
The specified OperatedEndAt is malformed.​
指定的OperatedEndAt不合法。​
400​
InvalidOperatedStartAt.Malformed​
The specified OperatedStartAt is malformed.​
指定的OperatedStartAt不合法。​
400​
InvalidSystemEventTypeOrStatus.Unsupported​
The specified system event type or status does not support set default action.​
指定的事件类型和状态不支持设置默认运维操作。​
400​
MissingParameter.DefaultAction​
The required parameter DefaultAction is not supplied.​
参数DefaultAction不能为空。​
400​
MissingParameter.EventId​
The required parameter EventId is not supplied.​
参数EventId不能为空。​
404​
InvalidSystemEvent.NotFound​
The specified system event does not exist.​
系统事件不存在。​
409​
InvalidSystemEvent.Conflict​
The default action for specified system event already set.​
指定事件的默认运维操作已存在。​
​
​
最近更新时间:2026.06.18 10:00:12
这个页面对您有帮助吗?
有用
有用
无用
无用