错误码

最近更新时间: 2025-10-20 17:05:57

功能说明

如果返回结果中存在 Error 字段,则表示调用 API 接口失败。例如:

 {
    "Response": {
        "Error": {
            "Code": "AuthFailure.SignatureFailure",
            "Message": "The provided credentials could not be validated. Please check your signature is correct."
        },
        "RequestId": "ed93f3cb-f35e-473f-b9f3-0d451b8b79c6"
    }
}

Error 中的 Code 表示错误码,Message 表示该错误的具体信息。

错误码列表

公共错误码

错误码 说明
AuthFailure.InvalidSecretId 密钥非法(不是云 API 密钥类型)。
AuthFailure.MFAFailure MFA 错误。
AuthFailure.SecretIdNotFound 密钥不存在。 请在控制台检查密钥是否已被删除或者禁用,如状态正常,请检查密钥是否填写正确,注意前后不得有空格。
AuthFailure.SignatureExpire 签名过期。Timestamp 和服务器时间相差不得超过五分钟,请检查本地时间是否和标准时间同步。
AuthFailure.SignatureFailure 签名错误。 签名计算错误,请对照调用方式中的接口鉴权文档检查签名计算过程。
AuthFailure.TokenFailure token 错误。
AuthFailure.UnauthorizedOperation 请求未 CAM 授权。
DryRunOperation DryRun 操作,代表请求将会是成功的,只是多传了 DryRun 参数。
FailedOperation 操作失败。
InternalError 内部错误。
InvalidAction 接口不存在。
InvalidParameter 参数错误。
InvalidParameterValue 参数取值错误。
LimitExceeded 超过配额限制。
MissingParameter 缺少参数错误。
NoSuchVersion 接口版本不存在。
RequestLimitExceeded 请求的次数超过了频率限制。
ResourceInUse 资源被占用。
ResourceInsufficient 资源不足。
ResourceNotFound 资源不存在。
ResourceUnavailable 资源不可用。
UnauthorizedOperation 未授权操作。
UnknownParameter 未知参数错误。
UnsupportedOperation 操作不支持。
UnsupportedProtocol http(s)请求协议错误,只支持 GET 和 POST 请求。
UnsupportedRegion 接口不支持所传地域。

业务错误码

错误码 说明
ResourceNotFound.IndexNotExist 索引不存在。
ResourceNotFound.AlarmNoticeNotExist 告警策略通知模板不存在。
ResourceNotFound.ShipperNotExist 投递规则不存在。
ResourceNotFound.MachineGroupNotExist 机器组不存在。
FailedOperation.SyntaxError 查询语句解析错误。
LimitExceeded.LogSearch 并发查询超过限制,单topic并发最大值15。
ResourceNotFound.ShipperTaskNotExist 投递任务不存在。
ResourceNotFound.AlarmNotExist 告警策略不存在。
LimitExceeded.LogSize 日志大小超过限制。
LimitExceeded.MachineGroupLabels 机器组Label超过限制。
ResourceNotFound.ConfigNotExist 指定的采集规则配置不存在。
FailedOperation.TopicClosed 日志主题已关闭。
ResourceNotFound.TopicNotExist 日志主题不存在。
FailedOperation.QueryError 查询语句运行失败。
InvalidParameter.Content 无效的Content。
ResourceNotFound.ExportNotExist 日志导出不存在。
FailedOperation.ReadQpsLimit 读qps超过限制。
InvalidParameter.ConfigConflict 相同的采集配置规则已经存在。
ResourceNotFound.AgentVersionNotExist agent version不存在。
OperationDenied.AnalysisSwitchClose 字段没有开启分析功能。
FailedOperation.SearchTimeout 查询超时。
FailedOperation.BindedAlarm 告警策略通知模板已经绑定到了某个告警策略上。
LimitExceeded 超过配额限制。
UnsupportedOperation 操作不支持。
OperationDenied.AlarmNotSupportForSearchLow 低频不支持告警。
LimitExceeded.Shipper 投递规则超出限制。
InvalidParameter.DataFromTaskNotExist 数据加工任务不存在。
LimitExceeded.Export 日志导出数量超出限制。
InvalidParameter.AlarmNoticeConflict 告警策略通知模板已经存在。
OperationDenied.NoticeHasAlarm 通知模版已绑定告警,无法删除。
OperationDenied.ACLFailed ACL校验失败。
OperationDenied.TopicHasDataFormTask topic绑定了数据加工。
OperationDenied.TopicHasDeliverFunction topic绑定了函数投递。
LimitExceeded.MachineGroup 机器组超过限制。
InvalidParameter.DataFromTaskConflict 数据加工任务冲突。
InvalidParameter.MachineGroupConflict 同名机器组已经存在。
InvalidParameter.InvalidEtlContent 无效的数据加工语句。
OperationDenied.AccountNotExists 账户不存在。
AuthFailure CAM签名/鉴权错误。
ResourceNotFound.PartitionNotExist 分区不存在。
InvalidParameter.TopicConflict 指定日志集下已经有同名的日志主题。
LimitExceeded.Topic 日志主题数目超过限制。
FailedOperation.WriteTrafficLimit 写流量超过限制。
FailedOperation.LogsetConflict 相同的日志集已存在。
ResourceNotFound.LogsetNotExist 指定的日志集不存在。
ResourceNotFound.AsyncSearchTaskNotExist 异步检索任务不存在。
InvalidParameter.IndexConflict 指定日志主题已经存在索引规则。
LimitExceeded.AsyncTask 异步任务数目超过限制。
FailedOperation.TopicNotSupport 日志主题不支持该操作。
LimitExceeded.Config 采集规则配置超过最大值限制。
FailedOperation 操作失败。
InvalidParameter.LogsetConflict 相同的日志集已存在。
MissingParameter 缺少参数错误。
FailedOperation.GetlogReachLimit 检索日志触发最大条数限制。
OperationDenied.AccountDestroy 账户已销毁。
FailedOperation.InvalidContext 检索游标已失效或不存在。
FailedOperation.ShipperTaskNotToRetry 投递任务不允许重试。
OperationDenied 操作被拒绝。
LimitExceeded.MachineGroupIp 机器组IP超过限制。
InvalidParameter.DashboardNameConflict 仪表盘命名冲突。
FailedOperation.PeriodModifyForbidden 修改的生命周期被禁止。
LimitExceeded.Logset 日志集数量超出限制。
InvalidParameter.InValidIndexRuleForSearchLow 低频不支持配置kv和tag索引。
FailedOperation.MissingContent 无效的Content。
OperationDenied.AccountIsolate 账户欠费。
ResourceNotFound.AsyncTaskNotExist 异步任务不存在。
AuthFailure.UnauthorizedOperation 请求未授权。
FailedOperation.InvalidAlarm 该告警策略状态异常,请检查下日志主题ID是否都存在。
LimitExceeded.Partition 分区超过限制。
FailedOperation.WriteQpsLimit 写qps超过限制。
InvalidParameter 参数错误。
FailedOperation.TopicIsolated 日志主题已隔离。
ResourceNotFound 资源不存在。
InvalidParameter.AlarmConflict 告警策略已经存在。
FailedOperation.InvalidPeriod 离线存储保存时间不得少于7天。
FailedOperation.LogsetNotEmpty 日志集下存在日志主题。
InvalidParameterValue 参数取值错误。
FailedOperation.AsyncSearchNotCompleted 异步检索任务还未完成,请稍后。
LimitExceeded.AsyncSearchTask 运行中的异步检索任务数目超限。
InvalidParameter.ShipperConflict 投递规则命名冲突。
InternalError 内部错误。
FailedOperation.AsyncTaskNotCompleted 异步任务未完成。
LimitExceeded.Tag tag超过限制。