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

云服务器

复制全文
下载 pdf
监控
DescribeEventTypes - 查询系统事件类型列表
复制全文
下载 pdf
DescribeEventTypes - 查询系统事件类型列表
调用 DescribeEventTypes 接口,查询事件类型列表。
调试
API Explorer
您可以通过 API Explorer 在线发起调用,无需关注签名生成过程,快速获取调用结果。
请求参数
下方仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数
Action string 必选 示例值:DescribeEventTypes
要执行的操作,取值:DescribeEventTypes。
Version string 必选 示例值:2020-04-01
API的版本,取值:2020-04-01。
ImpactLevel string 可选 示例值:Info-信息
系统事件的影响等级。取值:
  • Critical-严重
  • Warning-警告
  • Info-信息
Kind string 可选 示例值:StateChange
系统事件的类别。取值:
  • UnexpectedOperations:非预期运维事件
  • PlannedOperations:计划运维事件
  • StateChange:状态变化事件
  • BalanceWarning:费用预警事件
  • TaskStatus:任务状态类事件
MaxResults integer 可选 示例值:20
分页查询时设置的每页行数。
  • 最大值:100
  • 默认值:100
NextToken string 可选 示例值:--
分页查询凭证,用于标记分页的位置,初次调用该接口时无需设置。下次查询时,取值为上一次API调用返回的NextToken参数值。
ResponseRequired boolean 可选 示例值:false
是否需要响应。取值:
  • true:需要响应
  • false(默认):不需要响应
Types.N string[] 可选 示例值:Types.1=DiskError_Redeploy&Types.2=CreateInstance
系统事件的类型,最多支持100个。
  • 参数 - N:表示事件类型的序号。
  • 多个事件类型之间用&分隔。
  • 取值:
  • SystemFailure_Stop:因系统故障实例停止。
  • SystemFailure_Reboot:因系统故障实例重启。
  • DiskError_Redeploy:因硬盘异常实例重新部署。
  • GpuError_Redeploy:GPU异常,导致实例重新部署。
  • SystemMaintenance_Redeploy:因系统维护实例重新部署。
  • SystemMaintenance_StopAndRepair:实例停止,系统维修。
  • SystemFailure_Repair:系统故障,进行维修。
  • SystemFailure_Redeploy:因系统故障实例重新部署。
  • CreateInstance:创建实例。
  • RunInstance:启动实例。
  • StopInstance:停止实例。
  • DeleteInstance:删除实例。
  • SpotInstanceInterruption_Delete:抢占型实例中断,实例释放。
  • AccountUnbalanced_Stop:账户欠费,实例停止。
  • AccountUnbalanced_Delete:账户欠费,实例释放。
  • InstanceChargeType_Change:实例计费类型改变。
  • InstanceConfiguration_Change:实例配置变更。
  • FileSystemReadOnly_Change:文件系统变为只读状态。
  • RebootInstance:实例重启。
  • InstanceFailure:因操作系统错误实例异常。
  • ApplicationFailure:应用异常。
  • DeploymentSet_Modify:修改实例部署集。
  • ServerMigrationTask:服务器迁移任务。
  • ServerMigration_FirstSync:服务器迁移,全量数据同步。
  • ServerMigration_AdditionalSync:服务器迁移,增量数据同步。
  • GpuRiskDetected:GPU运行存在风险。
  • ElasticScheduledInstance_Create:弹性预约单创建。
  • ElasticScheduledInstance_Cancel:弹性预约单取消。
  • ElasticScheduledInstance_Deliver:弹性预约单交付。
  • ElasticScheduledInstance_AutoRelease:弹性预约实例自动释放。
  • ElasticScheduledInstance_Invalid:弹性预约单失效。
  • InfrastructureUpgrade_Redeploy:因基础设施升级实例重新部署。
  • DiskErrorDetected:硬盘异常。
  • DiskError_ReplaceDisk:因硬盘异常更换硬盘。
  • InstanceOOM:实例内存OOM。
  • MemoryRiskDetected:内存运行存在风险。
  • InstanceFileSystemFailure_StopAndRepair:因文件系统异常实例停机修复。
返回参数
下方仅列出本接口特有的返回参数。更多信息请参见返回结构
EventTypes object[] 示例值:--
实例系统事件信息。
ImpactLevel string 示例值:Info-信息
系统事件的影响等级。
Kind string 示例值:UnexpectedOperations
系统事件的类别。
ResponseRequired boolean 示例值:false
是否需要响应。
Status string[] 示例值: ["Executing", "Succeeded", "Failed"]
系统事件的状态。
Title string 示例值:硬盘异常,实例重新部署
系统事件的中文描述。
Type string 示例值:DiskError_Redeploy
系统事件的类型。
NextToken string 示例值:3tiegs1y963vj0******
本次调用返回的查询凭证值,返回为空表示该页为末页。
请求示例
GET /?Action=DescribeEventTypes&Version=2020-04-01&Types.1=DiskError_Redeploy&Types.2=CreateInstance HTTP/1.1
Host: open.volcengineapi.com
Region: cn-beijing
ServiceName: ecs
返回示例
{
"ResponseMetadata": {
"RequestId": "202106111445100102252431000052****",
"Action": "DescribeEventTypes",
"Version": "2020-04-01",
"Service": "ecs",
"Region": "cn-beijing"
},
"Result": {
"EventTypes": [
{
"Type": "DiskError_Redeploy",
"Kind": "UnexpectedOperations",
"Status": [
"Executing",
"Succeeded",
"Failed"
],
"ResponseRequired": "true",
"Title": "硬盘异常,实例重新部署"
},
{
"Type": "CreateInstance",
"Kind": "StateChange",
"Status": [
"Executing",
"Succeeded",
"Failed"
],
"ResponseRequired": "false",
"Title": "创建实例"
}
],
"NextToken": ""
}
}
错误码
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。
状态码
错误码
错误信息
说明
400
InvalidArgument
The specified argument is invalid.
指定的参数不合法。
400
InvalidKind.Malformed
The specified Kind is malformed.
指定的Kind不合法。
400
InvalidTypes.Malformed
The specified Types is malformed.
指定的Types不合法。
400
LimitExceeded.MaximumTypes
You've reached the limit on the number of Types that you can set.
指定的类型数量超过限制。
500
InternalError
An internal error has occurred.
内部错误,请重试。如果多次尝试失败,请提交工单。
最近更新时间:2025.08.06 14:29:26
这个页面对您有帮助吗?
有用
有用
无用
无用