最近更新时间:2024.02.28 15:03:40
首次发布时间:2022.11.03 08:26:22
调用 DescribeSystemEvents 接口查询实例的系统事件信息。
名称 | 类型 | 是否必填 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | DescribeSystemEvents | 要执行的操作,取值:DescribeSystemEvents |
Version | String | 是 | 2020-04-01 | API的版本,取值: 2020-04-01。 |
EventIds.N | String | 否 | EventIds.1=e-3ti9101aju3vj0****** | 事件ID,最多支持100个ID。您可以通过事件通知或调用本接口查询获取。
|
ResourceIds.N | String | 否 | ResourceIds.1=i-3ti9101aju3vj0****** | 资源ID,最多支持100个ID。您可以调用DescribeInstances接口,查询获取实例ID。
|
Types.N | String | 否 | Types.1=SystemFailure_Reboot&Types.2=DiskError_Redeploy | 系统事件的类型,最多支持100个。
|
Status.N | String | 否 | Status.1=Executing&Status.2=Inquiring | 系统事件的状态,最多支持10个。
|
Category | String | 否 | ResourceEvent | 事件类别。取值:
|
CreatedAtStart | String | 否 | 2021-06-28T18:29:38+08:00 | 以CreatedAtStart为起点,筛选创建时间在其之后的事件。默认值为CreatedAtEnd前24小时(参考请求参数CreatedAtEnd),格式为RFC3339。 |
CreatedAtEnd | String | 否 | 2021-06-29T18:11:46+08:00 | 以CreatedAtEnd为终点,筛选创建时间在其之前的事件。默认值为现在,格式为RFC3339。 |
NextToken | String | 否 | - | 分页查询凭证,用于标记分页的位置,初次调用该接口时无需设置。下次查询时,取值为上一次API调用返回的NextToken 参数值。 |
MaxResults | Integer | 否 | 20 | 分页查询时设置的每页行数:
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
NextToken | String | bHpwdXJja2RxemU1eG5sb3NzdGcW1-RC****** | 本次调用返回的查询凭证值,返回为空表示该页为末页。 |
SystemEvents | Array of struct | - | 实例系统事件信息。具体请参见下表“SystemEvents 结构”。 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
Id | String | e-3tiegs1y963vj0****** | 系统事件ID。 |
CreatedAt | String | 2021-06-29T18:11:46+08:00 | 系统事件创建时间。 |
UpdatedAt | String | 2021-06-29T18:11:46+08:00 | 系统事件更新时间。 |
Category | String | ResourceEvent | 事件类别。 |
Type | String | SystemFailure_Stop | 系统事件的类型。 |
Status | String | Execting | 系统事件的状态。 |
ResourceId | String | i-3tiegs1y963vj0****** | 资源ID。 |
OperatedStartAt | String | 2022-08-30T15:11:46+08:00 | 运维时间窗口的起始时间。 |
OperatedEndAt | String | 2022-09-10T18:11:46+08:00 | 运维时间窗口结束时间。 |
ExtraInfo | Struct | {"VolumeId": "vol-3tiegs1y963vj***","DeviceName": "/dev/sda"} | 系统事件的扩展信息。 |
GET /?Action=DescribeSystemEvents&Version=2020-04-01&EventIds.1=e-3ti9101aju3vj0****** HTTP/1.1 Host: open.volcengineapi.com Region: cn-beijing ServiceName: ecs
{ "ResponseMetadata": { "RequestId": "202106111445100102252431000052****", "Action": "DescribeSystemEvents", "Version": "2020-04-01", "Service": "ecs", "Region": "cn-beijing" }, "Result": { "SystemEvents": [ { "Id": "e-3ti9101aju3vj0******", "Category": "ResourceEvent", "CreatedAt": "2022-06-15T16:34:34+08:00", "UpdatedAt": "2022-06-15T16:34:49+08:00", "ResourceId": "i-3ti9101aju3vj0******", "Type": "DiskError_Redeploy", "Status": "Succeeded", "OperatedStartAt": "2022-08-30T15:11:46+08:00", "OperatedEndAt":"2022-09-10T18:11:46+08:00", "ExtraInfo": { "DeviceName": "/dev/sda", "VolumeId": "vol-3tiegs1y963vj0******" } } ], "NextToken": "" } }
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | InvalidCategory.Malformed | The specified Category is malformed. | 指定的Category不合法。 |
400 | LimitExceeded.MaximumEventIds | You've reached the limit on the number of EventIds that you can set. | 指定的事件ID数量超过限制。 |
400 | LimitExceeded.MaximumResourceIds | You've reached the limit on the number of ResourceIds that you can set. | 指定的资源ID数量超过限制。 |
400 | LimitExceeded.MaximumStatus | You've reached the limit on the number of Status that you can set. | 指定的事件状态数量超过限制。 |
400 | LimitExceeded.MaximumTypes | You've reached the limit on the number of Types that you can set. | 指定的事件类型数量超过限制。 |
400 | InvalidCreatedAtStart.Malformed | The specified CreatedAtStart is malformed. | CreatedAtStart格式不正确,应符合RFC3339。 |
400 | InvalidCreatedAtEnd.Malformed | The specified CreatedAtEnd is malformed. | CreatedAtEnd格式不正确,应符合RFC3339。 |
400 | InvalidArgument | The specified argument is invalid. | 指定的参数不合法。 |
400 | LimitExceeded.MaximumMaxResults | The number of specified MaxResults exceeds the maximum limit. | 指定的MaxResults超过最大限制。 |
400 | LimitExceeded.MinimumMaxResults | The number of specified MaxResults exceeds the minimum limit. | 指定的MaxResults超过最小限制。 |
400 | InvalidTypes.Malformed | The specified Types is malformed. | 指定的Types不合法。 |
400 | InvalidStatus.Malformed | The specified Status is malformed. | 指定的Status不合法。 |
400 | InvalidEventIds.Malformed | The specified EventIds is malformed. | 指定的EventIds不合法。 |
400 | InvalidResourceIds.Malformed | The specified ResourceIds is malformed. | 指定的ResourceIds不合法。 |
500 | InternalError | An internal error has occurred. | 内部错误,请重试。如果多次尝试失败,请提交工单。 |