有奖捉虫:云通信与企业服务文档专题,速来> HOT

功能说明

如果返回结果中存在 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签名/鉴权错误。
FailedOperation.AccountCommon 获取用户认证信息失败。
FailedOperation.AccountUserNotAuthenticated 账户未通过认证。
FailedOperation.AsCommon 伸缩组资源创建报错。
FailedOperation.CVMUnexpectedError CVM未知错误。
FailedOperation.CamNoAuth 无该接口CAM权限。
FailedOperation.ClusterForbiddenToDelete 集群禁止删除。
FailedOperation.ClusterNotFound 集群未找到。
FailedOperation.ClusterState 集群状态错误。
FailedOperation.ClusterUpgradeNodeVersion 集群节点版本过低。
FailedOperation.ComponentClientCommon 内部Client错误。
FailedOperation.ComponentClientHttp 内部HTTP客户端错误。
FailedOperation.ComponentClientUnpack 内部HTTP解包失败。
FailedOperation.ComponentClinetHttp 请求(http请求)其他云服务失败。
FailedOperation.CreateClsClient 创建CLS客户端失败。
FailedOperation.CreateClsConfig 创建CLS采集配置失败。
FailedOperation.CreateClsIndex 创建CLS索引失败。
FailedOperation.CreateClsLogSet 创建CLS日志集失败。
FailedOperation.CreateClsMachineGroup 创建CLS机器组失败。
FailedOperation.CreateClsTopic 创建 CLS 主题失败。
FailedOperation.CvmCommon cvm创建节点报错。
FailedOperation.CvmNumberNotMatch 存在云服务器在CVM侧查询不到。
FailedOperation.CvmVpcidNotMatch CVM 和 VPC ID 不匹配。
FailedOperation.Db db错误。
FailedOperation.DbRecordNotFound 记录未找到。
FailedOperation.DfwGetUSGQuota 获得安全组配额失败。
FailedOperation.DisableVPCCNIFailed 集群关闭 VPC-CNI 模式失败。
FailedOperation.EnableVPCCNIFailed 开启 VPC-CNI 模式失败。
FailedOperation.GetClsConfig 获取CLS采集配置失败。
FailedOperation.GetClsConfigMachineGroups 获取CLS采集配置绑定的机器组失败。
FailedOperation.GetClsIndex 获取CLS索引配置失败。
FailedOperation.GetClsLogSet 查询主题集失败。
FailedOperation.GetClsMachineGroup 获取CLS机器组失败。
FailedOperation.GetClsMachineGroupConfigs 获取CLS机器组绑定的采集配置失败。
FailedOperation.GetClsTopic 获取CLS日志主题失败。
FailedOperation.K8sClientBuildError Kubernetes client建立失败。
FailedOperation.KubeClientConf 通过配置文件创建集群Client错误。
FailedOperation.KubeClientConnection 连接用户Kubernetes集群失败。
FailedOperation.KubeCommon KubernetesAPI错误。
FailedOperation.KubernetesClientBuildError Kubernetes client建立失败。
FailedOperation.KubernetesCreateOperationError 创建集群Client出错。
FailedOperation.KubernetesDeleteOperationError Kubernetes Delete 操作错误。
FailedOperation.KubernetesGetOperationError 获取Kubernetes资源失败。
FailedOperation.KubernetesInternal Kubernetes未知错误。
FailedOperation.KubernetesListOperationError 获取Kubernetes资源列表失败。
FailedOperation.KubernetesPatchOperationError Kubernetes patch 操作失败。
FailedOperation.LbCommon 底层调用CLB未知错误。
FailedOperation.MarketGetAuthFailed 获取集群认证信息失败。
FailedOperation.MarketReleaseOperation 操作应用Release失败。
FailedOperation.ModifyClsConfig 修改CLS采集配置失败。
FailedOperation.ModifyClsIndex 修改CLS索引失败。
FailedOperation.ModifyClsTopic 修改CLS日志主题失败。
FailedOperation.NetworkScaleError 网络扩展错误。
FailedOperation.NodeExistsSecondaryNetworkInterface 节点存在辅助网卡
FailedOperation.OsNotSupport 镜像OS不支持。
FailedOperation.Param 参数错误。
FailedOperation.PolicyServerCommonError gpe错误。
FailedOperation.QuotaMaxClsLimit 超过配额限制。
FailedOperation.QuotaMaxNodLimit 超过配额限制。
FailedOperation.QuotaUSGLimit 安全组配额不足。
FailedOperation.RBACForbidden 子账户RBAC权限不足。
FailedOperation.RecordNotFound 记录没有发现。
FailedOperation.TagCommon tag错误
FailedOperation.TaskAlreadyRunning 已有相同任务执行中。
FailedOperation.TaskLifeStateError 任务当前所处状态不支持此操作。
FailedOperation.TradeCommon 询价错误。
FailedOperation.UnexpectedError 不可预知的错误。
FailedOperation.VPCUnexpectedError VPC未知错误。
FailedOperation.VpcCommon VPC报错。
FailedOperation.VpcRecodrNotFound 未发现vpc记录。
FailedOperation.WhitelistUnexpectedError 白名单错误。
InternalError.AccountCommon 获取用户认证信息失败。
InternalError.AccountUserNotAuthenticated 账户未通过认证。
InternalError.AsCommon 伸缩组资源创建报错。
InternalError.CamNoAuth 没有权限。
InternalError.CidrConflictWithOtherCluster CIDR和其他集群CIDR冲突。
InternalError.CidrConflictWithOtherRoute CIDR和其他路由冲突。
InternalError.CidrConflictWithVpcCidr CIDR和vpc冲突。
InternalError.CidrConflictWithVpcGlobalRoute CIDR和全局路由冲突。
InternalError.CidrInvali CIDR无效。
InternalError.CidrMaskSizeOutOfRange CIDR掩码无效。
InternalError.CidrOutOfRouteTable CIDR不在路由表之内。
InternalError.ClusterNotFound 集群未找到。
InternalError.ClusterState 集群状态错误。
InternalError.ClusterUpgradeNodeVersion 集群节点版本过低。
InternalError.CmdTimeout 执行命令超时。
InternalError.ComponentClientHttp 内部HTTP客户端错误。
InternalError.ComponentClinetHttp 请求(http请求)其他云服务失败。
InternalError.ContainerNotFound 容器未找到。
InternalError.CreateMasterFailed 创建集群失败。
InternalError.CvmCommon cvm创建节点报错。
InternalError.CvmNotFound cvm不存在。
InternalError.CvmNumberNotMatch 存在云服务器在CVM侧查询不到。
InternalError.CvmStatus cvm状态不正常。
InternalError.Db db错误。
InternalError.DbAffectivedRows DB错误。
InternalError.DbRecordNotFound 记录未找到。
InternalError.DfwGetUSGCount 获得当前安全组总数失败。
InternalError.DfwGetUSGQuota 获得安全组配额失败。
InternalError.EmptyClusterNotSupport 不支持空集群。
InternalError.GatewayAlreadyAssociatedCidr 下一跳地址已关联CIDR。
InternalError.ImageIdNotFound 镜像未找到。
InternalError.InitMasterFailed 初始化master失败。
InternalError.InsufficientBalance 余额不足。
InternalError.InvalidPrivateNetworkCidr 无效CIDR。
InternalError.KubeClientConnection 连接用户Kubernetes集群失败。
InternalError.KubeClientCreate 创建集群Client出错。
InternalError.KubeCommon KubernetesAPI错误。
InternalError.KubernetesClientBuildError kubernetes client建立失败。
InternalError.KubernetesCreateOperationError 创建Kubernetes资源失败。
InternalError.KubernetesDeleteOperationError 删除Kubernetes资源失败。
InternalError.KubernetesGetOperationError 获取Kubernetes资源失败。
InternalError.KubernetesInternal Kubernetes未知错误。
InternalError.KubernetesListOperationError 获取Kubernetes资源列表失败。
InternalError.KubernetesPatchOperationError Kubernetes Patch操作失败。
InternalError.LbCommon 底层调用CLB未知错误。
InternalError.MarketGetAuthFailed 获取集群认证信息失败。
InternalError.MarketInternalServerError 应用市场服务操作错误。
InternalError.MarketReleaseOperation 操作应用Release失败。
InternalError.NoPaymentAccess 无支付权限。
InternalError.NotVerified 未实名认证。
InternalError.OsNotSupport 镜像OS不支持。
InternalError.Param Param。
InternalError.PodNotFound Pod未找到。
InternalError.PublicClusterOpNotSupport 集群不支持当前操作。
InternalError.QuotaMaxClsLimit 超过配额限制。
InternalError.QuotaMaxNodLimit 超过配额限制。
InternalError.QuotaMaxRtLimit 超过配额限制。
InternalError.QuotaUSGLimit 安全组配额不足。
InternalError.ResourceExistAlready 资源已存在。
InternalError.RouteTableNotEmpty 路由表非空。
InternalError.RouteTableNotFound 路由表不存在。
InternalError.TaskAlreadyRunning 已有相同任务执行中。
InternalError.TaskCreateFailed 创建任务失败。
InternalError.TaskLifeStateError 任务当前所处状态不支持此操作。
InternalError.TaskNotFound 任务未找到。
InternalError.TradeCommon 计费错误。
InternalError.TradeInsufficientBalance 账户余额不足。
InternalError.UnexceptedInternal 内部错误。
InternalError.UnexpectedInternal 未知的内部错误。
InternalError.VPCUnexpectedError VPC未知错误。
InternalError.VpcCommon VPC报错。
InternalError.VpcPeerNotFound 对等连接不存在。
InternalError.VpcRecodrNotFound 未发现vpc记录。
InternalError.VstationError VstationError。
InternalError.WhitelistUnexpectedError 白名单未知错误。
InvalidParameter.AsCommonError 弹性伸缩组创建参数错误。
InvalidParameter.CIDRInvalid 非法的CIDR。
InvalidParameter.CIDRMaskSizeOutOfRange CIDR掩码超出范围(集群CIDR范围 最小值: 10 最大值: 24)。
InvalidParameter.CidrConflictWithOtherCluster CIDR和其他集群CIDR冲突。
InvalidParameter.CidrConflictWithOtherRoute 创建的路由与已存在的其他路由产生冲突。
InvalidParameter.CidrConflictWithVpcCidr CIDR和vpc的CIDR冲突。
InvalidParameter.CidrConflictWithVpcGlobalRoute 创建的路由与VPC下已存在的全局路由产生冲突。
InvalidParameter.CidrInvali CIDR无效。
InvalidParameter.CidrInvalid 参数错误,CIDR不符合规范。
InvalidParameter.CidrOutOfRouteTable CIDR不在路由表之内。
InvalidParameter.ClusterNotFound 集群ID不存在。
InvalidParameter.GatewayAlreadyAssociatedCidr 下一跳地址已关联CIDR。
InvalidParameter.InvalidPrivateNetworkCIDR 无效的私有CIDR网段。
InvalidParameter.OsNotSupport 镜像OS不支持。
InvalidParameter.Param 参数错误。
InvalidParameter.PromClusterNotFound Prometheus未关联本集群。
InvalidParameter.PromInstanceNotFound Prometheus实例不存在。
InvalidParameter.ResourceNotFound 资源未找到。
InvalidParameter.RouteTableNotEmpty 路由表非空。
InvalidParameter.SubnetInvalidError 子网不合法。
InvalidParameter.SubnetNotExist 子网不存在。
OperationDenied 操作被拒绝。
OperationDenied.ClusterInDeletionProtection 集群处于删除保护中,禁止删除。
ResourceInUse.ExistRunningPod 存在运行中的Pod。
ResourceInUse.ResourceExistAlready 资源已存在。
ResourceInUse.SubnetAlreadyExist 所选子网已存在。
ResourceInsufficient.SpecifiedInstanceType CVM资源不足。
ResourceNotFound.AsAsgNotExist 伸缩组不存在。
ResourceNotFound.ClusterNotFound 集群不存在。
ResourceNotFound.KubeResourceNotFound 用户Kubernetes集群中未找到指定资源。
ResourceNotFound.KubernetesResourceNotFound 未找到该kubernetes资源。
ResourceNotFound.NotFound 资源未找到。
ResourceNotFound.RouteTableNotFound 找不到对应路由表。
ResourceUnavailable.ClusterInAbnormalStat 集群状态异常。
ResourceUnavailable.ClusterState 集群状态不支持该操作。
ResourceUnavailable.EksContainerStatus Eks Container Instance状态不支持改操作。
ResourceUnavailable.NodePoolStateNotNormal 节点池状态不正常。
ResourcesSoldOut 资源售罄。
UnauthorizedOperation.CamNoAuth 无该接口CAM权限。
UnsupportedOperation.CaEnableFailed AS伸缩关闭导致无法开启CA。
UnsupportedOperation.ClusterNotSuitAddClusterCIDR 集群不支持添加 ClusterCIDR。
UnsupportedOperation.ClusterNotSuitEnableVPCCNI 集群不支持开启 VPC-CNI 模式。
UnsupportedOperation.NotInWhitelist 非白名单用户。
UnsupportedOperation.NotSupportInstallVirtualKubelet 不支持安装虚拟节点。