功能说明
如果返回结果中存在 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 表示该错误的具体信息。
错误码列表
公共错误码
| 错误码 | 说明 |
|---|---|
| ActionOffline | 接口已下线。 |
| AuthFailure.InvalidAuthorization | 请求头部的 Authorization 不符合腾讯云标准。 |
| 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 | 参数取值错误。 |
| InvalidRequest | 请求 body 的 multipart 格式错误。 |
| IpInBlacklist | IP 地址在黑名单中。 |
| IpNotInWhitelist | IP 地址不在白名单中。 |
| LimitExceeded | 超过配额限制。 |
| MissingParameter | 缺少参数。 |
| NoSuchProduct | 产品不存在 |
| NoSuchVersion | 接口版本不存在。 |
| RequestLimitExceeded | 请求的次数超过了频率限制。 |
| RequestLimitExceeded.GlobalRegionUinLimitExceeded | 主账号超过频率限制。 |
| RequestLimitExceeded.IPLimitExceeded | IP 限频。 |
| RequestLimitExceeded.UinLimitExceeded | 主账号限频。 |
| RequestSizeLimitExceeded | 请求包超过限制大小。 |
| ResourceInUse | 资源被占用。 |
| ResourceInsufficient | 资源不足。 |
| ResourceNotFound | 资源不存在。 |
| ResourceUnavailable | 资源不可用。 |
| ResponseSizeLimitExceeded | 返回包超过限制大小。 |
| ServiceUnavailable | 当前服务暂时不可用。 |
| UnauthorizedOperation | 未授权操作。 |
| UnknownParameter | 未知参数错误,用户多传未定义的参数会导致错误。 |
| UnsupportedOperation | 操作不支持。 |
| UnsupportedProtocol | http(s) 请求协议错误,只支持 GET 和 POST 请求。 |
| UnsupportedRegion | 接口不支持所传地域。 |
业务错误码
| 错误码 | 说明 |
|---|---|
| AuthFailure | CAM签名/鉴权错误。 |
| AuthFailure.AccessCAMFail | 访问鉴权失败。 |
| FailedOperation.APITranslateError | 云产品侧指标回调接口异常 |
| FailedOperation.AccessSTSFail | 访问STS失败。 |
| FailedOperation.AccessTKEFail | 访问用户TKE集群失败。 |
| FailedOperation.AccessTagFail | 访问标签服务失败。 |
| FailedOperation.AgentNotAllowed | agent当前状态不允许该操作。 |
| FailedOperation.AgentVersionNotSupported | Agent版本不支持该操作,请升级Agent。 |
| FailedOperation.AgentsNotInUninstallStage | 该实例上有正在运行的Agent。 |
| FailedOperation.AlertFilterRuleDeleteFailed | 删除过滤条件失败。 |
| FailedOperation.AlertPolicyCreateFailed | 创建告警策略失败。 |
| FailedOperation.AlertPolicyDeleteFailed | 告警策略删除失败。 |
| FailedOperation.AlertPolicyDescribeFailed | 告警策略查询失败。 |
| FailedOperation.AlertPolicyModifyFailed | 告警策略修改失败。 |
| FailedOperation.AlertTriggerRuleDeleteFailed | 删除触发条件失败。 |
| FailedOperation.BadYamlFormat | Yaml 格式不正确。 |
| FailedOperation.ClusterNotFound | 集群不存在。 |
| FailedOperation.ComponentClientCommon | FailedOperation.ComponentClientCommon |
| FailedOperation.ComponentClientHttp | FailedOperation.ComponentClientHttp |
| FailedOperation.ComponentClientUnpack | FailedOperation.ComponentClientUnpack |
| FailedOperation.CreateInstance | 创建实例失败。 |
| FailedOperation.CreateInstanceLimited | 该账号创建实例被限制。 |
| FailedOperation.DataColumnNotFound | 数据表字段不存在。 |
| FailedOperation.DataQueryFailed | 数据查询失败。 |
| FailedOperation.DataTableNotFound | 数据表不存在。 |
| FailedOperation.Db | FailedOperation.Db |
| FailedOperation.DbQueryFailed | 数据库查询失败。 |
| FailedOperation.DbRecordCreateFailed | 创建数据库记录失败。 |
| FailedOperation.DbRecordDeleteFailed | 数据库记录删除失败。 |
| FailedOperation.DbRecordNotFound | FailedOperation.DbRecordNotFound |
| FailedOperation.DbRecordUpdateFailed | 数据库记录更新失败。 |
| FailedOperation.DbTransactionBeginFailed | 数据库事务开始失败。 |
| FailedOperation.DbTransactionCommitFailed | 数据库事务提交失败。 |
| FailedOperation.DimQueryRequestFailed | 请求维度查询服务失败。 |
| FailedOperation.DivisionByZero | 被除数为0。 |
| FailedOperation.DoHTTPTransferFailed | 后端服务超时 |
| FailedOperation.DoTRPCTransferFailed | DoTRPCTransferFailed |
| FailedOperation.DoTRPCTransferFailedWithCorruptionData | 网络调用报错 |
| FailedOperation.DruidQueryFailed | 查询分析数据失败。 |
| FailedOperation.DruidTableNotFound | druid表不存在。 |
| FailedOperation.DuplicateName | 名字重复。 |
| FailedOperation.ErrNotOpen | 未开通。 |
| FailedOperation.ErrOwed | 欠费。 |
| FailedOperation.GenerateInstanceIDFailed | 生成资源ID错误。 |
| FailedOperation.InstanceNotFound | 实例不存在。 |
| FailedOperation.InstanceNotRunning | 实例没有运行。 |
| FailedOperation.InternalError | 内部服务错误。 |
| FailedOperation.KubeClientConf | FailedOperation.KubeClientConf |
| FailedOperation.KubeCommon | FailedOperation.KubeCommon |
| FailedOperation.RegionUnavailable | 地区不可用。 |
| FailedOperation.ResourceConflict | 资源冲突 |
| FailedOperation.ResourceExist | 资源已经存在。 |
| FailedOperation.ResourceNotFound | 资源不存在。 |
| FailedOperation.ResourceOperating | 资源正在被操作。 |
| FailedOperation.SendRequest | 发送授权请求失败。 |
| FailedOperation.ServiceNotEnabled | 服务未启用,开通服务后方可使用。 |
| FailedOperation.TKEClientAuthFail | 没有访问TKE权限。 |
| FailedOperation.TKEEndpointStatusError | TKE的endpoint不可访问。 |
| FailedOperation.TKEResourceConflict | 更新TKE资源时出现冲突。 |
| FailedOperation.ZoneUnavailable | 可用区不可用。 |
| InternalError.CallbackFail | 回调出错。 |
| InternalError.Db | InternalError.Db |
| InternalError.DbRecordNotFound | InternalError.DbRecordNotFound |
| InternalError.DependsApi | 依赖的其他api出错。 |
| InternalError.DependsDb | 依赖的db出错。 |
| InternalError.DependsMq | 依赖的mq出错。 |
| InternalError.ExeTimeout | 执行超时。 |
| InternalError.Param | InternalError.Param |
| InternalError.System | 系统错误。 |
| InternalError.TaskNotFound | InternalError.TaskNotFound |
| InternalError.TaskResultFormat | 任务结果解析错误。 |
| InternalError.UnexpectedInternal | InternalError.UnexpectedInternal |
| InvalidParameter.ClusterNotFound | InvalidParameter.ClusterNotFound |
| InvalidParameter.DupTask | 重复提交任务。 |
| InvalidParameter.InvalidAppId | 无效的AppId。 |
| InvalidParameter.InvalidParameter | 参数错误。 |
| InvalidParameter.InvalidParameterParam | 参数错误。 |
| InvalidParameter.MissAKSK | 缺少平台配置。 |
| InvalidParameter.Param | InvalidParameter.Param |
| InvalidParameter.ParamError | 参数错误。 |
| InvalidParameter.PromClusterNotFound | InvalidParameter.PromClusterNotFound |
| InvalidParameter.PromInstanceNotFound | InvalidParameter.PromInstanceNotFound |
| InvalidParameter.ResourceNotFound | InvalidParameter.ResourceNotFound |
| InvalidParameter.SecretIdOrSecretKeyError | 平台配置错误。 |
| InvalidParameter.UnsupportedProduct | 这个产品还不支持扫描。 |
| InvalidParameterValue.DashboardNameExists | dashboard 名重复。 |
| InvalidParameterValue.VersionMismatch | 版本不匹配。 |
| LimitExceeded.LimitedAccess | 请求受限,查询实例数受到限制或者触发限频等限制操作 |
| LimitExceeded.MetricQuotaExceeded | 指标数量达到配额限制,禁止含有未注册指标的请求。 |
| OperationDenied | 操作被拒绝。 |
| ResourceInUse.ResourceExistAlready | ResourceInUse.ResourceExistAlready |
| ResourceNotFound.NotExistTask | 任务不存在。 |
| ResourcesSoldOut | 资源售罄。 |
| UnauthorizedOperation.CamNoAuth | 无Cam权限 |