最近更新时间:2023.07.07 10:54:52
首次发布时间:2022.11.03 08:26:23
调用 UpdateSystemEvents 接口,修改系统事件状态。
说明
SystemMaintenance.Redeploy
(系统维护,实例重新部署)事件授权时,支持使用OperatedStartAt
、OperatedEndAt
参数调整运维时间窗。OperatedStartAt
、 OperatedEndAt
参数仅支持传入如下时间段:
名称 | 类型 | 是否必填 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | UpdateSystemEvents | 要执行的操作,取值:UpdateSystemEvents。 |
Version | String | 是 | 2020-04-01 | API的版本,取值: 2020-04-01。 |
EventIds.N | String | 是 | EventIds.1=e-3ti9101aju3vj0****&EventIds.2=e-3tiegs1y963vj0**** | 事件ID,最多支持100个ID。您可以通过事件通知或DescribeSystemEvents接口查询获取。
|
Status | String | 是 | Executing | 系统事件的状态,取值:
|
UpdatedAt | String | 否 | 2021-06-28T18:29:38+08:00 | 事件更新的时间,默认是收到请求的时间,格式为RFC3339。 |
OperatedStartAt | String | 否 | 2022-08-30T15:11:46+08:00 | 事件运维时间窗开始时间,默认是收到请求的时间+60小时,格式为RCF3339。
|
OperatedEndAt | String | 否 | 2022-09-02T15:11:46+08:00 | 事件运维时间窗结束时间,默认是收到请求的时间+72小时,格式为RCF3339。
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
OperationDetails | Array of struct | - | 操作详情。具体请参见下表“ OperationDetails结构 ”。 |
字段 | 类型 | 示例值 | 描述 |
---|---|---|---|
EventId | String | e-3tiegs1y963vj0****** | 系统事件ID。 |
Error | Struct | - | 某个事件状态修改失败的错误信息。具体请参见“Error结构”。 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
Code | String | InvalidSystemEvent.NotFound | 批量请求处理中,单个请求操作失败的错误码,具体请参见下表“错误码(批量操作时具体单个请求失败的异常)”。 |
Message | String | The specified system event does not exist. | 批量请求处理中,单个请求的异常信息。具体请参见下表“错误码(批量操作时具体单个请求失败的异常)”中的错误信息。 |
错误码 | 错误信息 | 描述 |
---|---|---|
InvalidSystemEvent.NotFound | The specified system event does not exist. | 指定的系统事件不存在。 |
InvalidSystemEventStatus.TypeMismatch | The specified system event type does not match this status. | 事件状态与事件类型不匹配。 |
InvalidSystemEventStatus.PreStatusMismatch | The specified system event does not match pre status. | 事件状态与事件前置状态不匹配。 |
GET /?Action=UpdateSystemEvents&Version=2020-04-01&EventIds.1=t-3ti9101aju3vj0******&Status=Executing HTTP/1.1 Host: open.volcengineapi.com Region: cn-beijing ServiceName: ecs
{ "ResponseMetadata": { "RequestId": "202106111445100102252431000052****", "Action": "UpdateSystemEvents", "Version": "2020-04-01", "Service": "ecs", "Region": "cn-beijing" }, "Result": { "OperationDetails": [ { "EventId": "e-ybq95rphkoawmb******", "Error": { "Code": "InvalidSystemEvent.NotFound", "Message": "The specified system event does not exist." } } ] } }
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | InvalidOperatedEndAt.Malformed | The specified OperatedEndAt is malformed. | 指定的OperatedEndAt不合法。 |
400 | InvalidOperatedStartAt.Malformed | The specified OperatedStartAt is malformed. | 指定的OperatedStartAt不合法。 |
400 | MissingParameter.EventIds | The required parameter EventIds is not supplied. | 事件ID不能为空。 |
400 | MissingParameter.Status | The required parameter Status is not supplied. | 事件状态不能为空。 |
400 | LimitExceeded.MaximumEventIds | You've reached the limit on the number of EventIds that you can set. | 指定的事件ID数量超过限制。 |
400 | InvalidStatus.Malformed | The specified Status is malformed. | 指定的事件状态不合法。 |
400 | InvalidUpdatedAt.Malformed | The specified UpdatedAt is malformed. | 指定的更新时间不合法,应符合RFC3339。 |
400 | InvalidArgument | The specified argument is invalid. | 指定的参数不合法。 |
500 | InternalError | An internal error has occurred. | 内部错误,请重试。如果多次尝试失败,请提交工单。 |