功能说明
如果返回结果中存在 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 | CAM鉴权失败 |
| AuthFailure.UnmarshalResponse | CAM鉴权解析失败 |
| FailedOperation.AccessTagFail | 访问标签失败。 |
| FailedOperation.AgentNotOnlineError | 未检测到探针在线 |
| FailedOperation.AgentOperationConfigInvalid | 探针接口相关配置错误 |
| FailedOperation.AgentVersionNotSupportError | 当前探针版本不支持此功能 |
| FailedOperation.ApmCredentialNotExist | token信息不存在。 |
| FailedOperation.AppIdNotMatchInstanceInfo | AppID 和业务系统信息不匹配。 |
| FailedOperation.AssociationModifyRequestNotValidError | 关联关系修改请求有误 |
| FailedOperation.CKafkaDiffAssociationError | ckafka与旧关联信息不一致 |
| FailedOperation.CKafkaEmptyTopicError | topic不能为空 |
| FailedOperation.CKafkaGetRouteIDFailedError | 获取路由失败 |
| FailedOperation.CKafkaGetRouteTimeoutError | 获取路由超时 |
| FailedOperation.CKafkaNotAvailableError | CKafka实例不可用 |
| FailedOperation.DemoInstanceNotAllowModified | 未命中白名单且业务系统 ID 为官方 Demo 业务系统 ID 时,不允许修改接口。 |
| FailedOperation.DuplicateService | 请勿填写重复的应用名 |
| FailedOperation.DuplicateTagField | 请勿填写重复的标签名 |
| FailedOperation.InstanceCannotModify | 该业务系统不允许修改 |
| FailedOperation.InstanceCannotTerminate | 该业务系统不允许销毁 |
| FailedOperation.InstanceIdIsEmpty | 业务系统 ID 为空。 |
| FailedOperation.InstanceNotFound | APM 业务系统不存在。 |
| FailedOperation.InvalidInstanceID | 非法业务系统 ID。 |
| FailedOperation.InvalidOperationType | 不合法的接口匹配类型 |
| FailedOperation.InvalidParam | 不合法入参 |
| FailedOperation.InvalidRegex | 非法的正则表达式。 |
| FailedOperation.InvalidRequest | 不合法请求 |
| FailedOperation.InvalidServiceName | 业务系统和应用名不匹配。 |
| FailedOperation.InvalidTagField | Tag中指定了无效的Key |
| FailedOperation.InvalidToken | 不合法token |
| FailedOperation.MetricFiltersLackParams | 查询指标类数据查询条件缺少过滤参数。 |
| FailedOperation.NotInnerVPC | 非内网 VPC。 |
| FailedOperation.OperationNameIsEmpty | 接口名不能为空 |
| FailedOperation.PeerIdNotAvailable | 关联产品ID不可用 |
| FailedOperation.ProductNameNotAvailable | 关联的产品名称不可用或暂不支持 |
| FailedOperation.PromInstanceNotAvailableError | 该Prometheus实例状态不可用 |
| FailedOperation.PromRuleConflict | Prometheus指标匹配规则冲突,有相同的指标匹配规则 |
| FailedOperation.PromRuleIsEmptyErr | Prometheus指标匹配规则为空 |
| FailedOperation.PromRuleNameConflict | Prometheus指标匹配规则名已存在 |
| FailedOperation.PromRuleRequestNotValidError | Prometheus指标匹配规则请求有误 |
| FailedOperation.QueryTimeIntervalIsNotSupported | 查询时间区间不支持。 |
| FailedOperation.RegionNotSupport | 不支持该地域。 |
| FailedOperation.RouteNotAvailableError | 路由不可用 |
| FailedOperation.SampleNameConflict | 该实例下采样名重复。 |
| FailedOperation.SampleNotFound | 没有该采样规则。 |
| FailedOperation.SampleRuleConflict | 采样规则冲突。 |
| FailedOperation.SendRequest | 发送查询请求失败。 |
| FailedOperation.ServiceListExceedingLimitNumber | 应用数超过10个 |
| FailedOperation.ServiceListNull | 应用列表为空 |
| FailedOperation.ServiceNotFound | 没有找到应用资源 |
| FailedOperation.ServiceNotMatchAppIdErr | serviceId 与 appId 不匹配 |
| FailedOperation.TopicNotAvailableError | topic不可用 |
| FailedOperation.ViewNameNotExistOrIllegal | 视图名不存在或非法。 |
| InvalidParameter.FiltersFieldsNotExistOrIllegal | Filters 中的字段不存在或非法。 |
| InvalidParameter.GroupByFieldsNotExistOrIllegal | GroupBy 中的字段不存在或非法。 |
| InvalidParameter.MetricFiltersLackParams | Filters 中必须存在 service.name 字段,否则会报错。 |
| InvalidParameter.MetricsFieldNotExistOrIllegal | Metrics 中的字段不存在或非法。 |
| InvalidParameter.MetricsFieldsNotAllowEmpty | Metrics 中不允许为空。 |
| InvalidParameter.PeriodIsIllegal | Period不为空,0或60。 |
| InvalidParameter.QueryTimeIntervalIsNotSupported | 查询时间不支持,最多只能查询最近30天的数据。 |
| InvalidParameter.ViewNameNotExistOrIllegal | 视图名称不存在或非法。 |