错误码
调用接口出错后,将不会返回结果数据。调用方可根据每个接口对应的错误码来定位错误原因。 当调用出错时,HTTP 请求返回一个 4xx 或 5xx 的 HTTP 状态码。返回的消息体中是具体的错误代码及错误信息。在调用方找不到错误原因时,可以联系华为云客服,并提供错误码,以便我们尽快帮您解决问题。
错误响应Body体格式说明
当接口调用出错时,会返回错误码及错误信息说明,错误响应的Body体格式如下所示。
{
"error_msg": "The format of message is error",
"error_code": "EMS.00010001"
} 其中,error_code表示错误码,error_msg表示错误描述信息。
错误码说明
当您调用API时,如果遇到“APIGW”开头的错误码,请参见API网关错误码进行处理。
| 状态码 | 错误码 | 错误信息 | 描述 | 处理措施 |
|---|---|---|---|---|
| 400 | EMS.00030033 | Cluster name exists, please change cluster name | 集群名称已存在,请更改集群名称。 | 集群名称已存在,请更改集群名称。 |
| 400 | EMS.00030034 | Invalid cluster status | 集群状态无效。 | 集群状态无效。 |
| 400 | EMS.00030038 | The clusterId exists | clusterId已存在。 | clusterId已存在。 |
| 400 | EMS.00030039 | Failed to check k8sClusterId and namespace | 检查k8sClusterId和命名空间失败。 | 检查k8sClusterId和命名空间失败。 |
| 400 | EMS.00030040 | The k8s cluster node count is %s, required range is [%s,%s] | K8s集群节点数为%s,要求范围为[%s,%s]。 | K8s集群节点数为%s,要求范围为[%s,%s]。 |
| 400 | EMS.00030042 | Failed to expand ems cluster. | 扩展EMS集群失败。 | 扩展EMS集群失败。 |
| 400 | EMS.00030043 | Failed to shrink ems cluster. | 收缩EMS集群失败。 | 收缩EMS集群失败。 |
| 400 | EMS.00030049 | Invalid node list: %s | 节点列表无效: %s。 | 节点列表无效: %s。 |
| 400 | EMS.00030050 | Insufficient cluster nodes, minimum %s required | 集群节点不足,最低需要%s个。 | 集群节点不足,最低需要%s个。 |
| 400 | EMS.00030051 | Failed to rollback shrink ems cluster. | 回滚收缩EMS集群失败。 | 回滚收缩EMS集群失败。 |
| 400 | EMS.00030052 | Invalid cluster label | 集群标签无效。 | 集群标签无效。 |
| 400 | EMS.00030054 | Failed to upgrade ems cluster. | 升级EMS集群失败。 | 升级EMS集群失败。 |
| 400 | EMS.00030058 | Failed to upgrade workload pods. | 升级工作负载Pod失败。 | 升级工作负载Pod失败。 |
| 400 | EMS.00030059 | template value path invalid. | 模板值路径无效。 | 模板值路径无效。 |
| 400 | EMS.00030060 | Failed to check cluster status. | 检查集群状态失败。 | 检查集群状态失败。 |
| 400 | EMS.00030061 | K8s event log group already exists for CCE cluster: %s | CCE集群%s的K8s事件日志组已存在。 | CCE集群%s的K8s事件日志组已存在。 |
| 400 | EMS.00030062 | K8s event log group type conflict. Existing type: %s, requested type: %s | K8s事件日志组类型冲突。现有类型: %s,请求类型: %s。 | K8s事件日志组类型冲突。现有类型: %s,请求类型: %s。 |
| 400 | EMS.00030065 | Invalid parameter. | 参数无效。 | 参数无效。 |
| 400 | EMS.00030068 | Invalid queue job status. | 队列任务状态无效。 | 队列任务状态无效。 |
| 400 | EMS.00030069 | ProjectId cannot be empty. | ProjectId不能为空。 | ProjectId不能为空。 |
| 400 | EMS.00030070 | TenantName cannot be empty. | TenantName不能为空。 | TenantName不能为空。 |
| 400 | EMS.00030071 | Failed to get agency token. | 获取代理令牌失败。 | 获取代理令牌失败。 |
| 400 | EMS.00030072 | RequestBody cannot be null. | RequestBody不能为null。 | RequestBody不能为null。 |
| 400 | EMS.00030073 | EmsClusterId cannot be empty. | EmsClusterId不能为空。 | EmsClusterId不能为空。 |
| 400 | EMS.00030074 | Failed to create K8s events LTS transfer. | 创建K8s事件LTS传输失败。 | 创建K8s事件LTS传输失败。 |
| 400 | EMS.00030075 | LTS is not enabled for the cluster. | 集群未启用LTS。 | 集群未启用LTS。 |
| 400 | EMS.00030076 | CCE clusterId not found for EMS clusterId. | 找不到CCE clusterId。 | 找不到CCE clusterId。 |
| 400 | EMS.00030077 | AddonName cannot be empty. | AddonName不能为空。 | AddonName不能为空。 |
| 400 | EMS.00030078 | EMS cluster not found for CCE cluster ID. | 找不到CCE集群ID对应的EMS集群。 | 找不到CCE集群ID对应的EMS集群。 |
| 400 | EMS.00030079 | Tenant not found for project ID. | 找不到项目ID对应的租户。 | 找不到项目ID对应的租户。 |
| 400 | EMS.00030080 | Addon not found with template name. | 找不到模板名称对应的插件。 | 找不到模板名称对应的插件。 |
| 400 | EMS.00030081 | Addon instance not found. | 找不到插件实例。 | 找不到插件实例。 |
| 400 | EMS.00030083 | Failed to update addon. | 更新插件失败。 | 更新插件失败。 |
| 400 | EMS.00030084 | Invalid job id. | 任务ID无效。 | 任务ID无效。 |
| 400 | EMS.00030085 | This operation is not allowed in the job status. | 此任务状态下不允许此操作。 | 此任务状态下不允许此操作。 |
| 400 | EMS.00030088 | Version not found. | 找不到版本。 | 找不到版本。 |
| 400 | EMS.00030089 | node label conflict | 节点标签冲突。 | 节点标签冲突。 |
| 400 | EMS.00030090 | node conflict with another ems | 节点与其他EMS冲突。 | 节点与其他EMS冲突。 |
| 400 | EMS.00030094 | Event log stream is not in the correct log group | 事件日志流不在正确的日志组中。 | 事件日志流不在正确的日志组中。 |
| 400 | EMS.00040004 | handle raw cdr from ems-server failed | 处理来自ems-server的原始CDR失败。 | 处理来自ems-server的原始CDR失败。 |
| 400 | EMS.00040005 | delete history cdrs failed | 删除历史CDR失败。 | 删除历史CDR失败。 |
| 400 | EMS.00050001 | Ems cluster not found. | 找不到EMS集群。 | 找不到EMS集群。 |
| 400 | EMS.00050002 | DB error, get ems cluster failed. | 数据库错误,获取EMS集群失败。 | 数据库错误,获取EMS集群失败。 |
| 400 | EMS.00050003 | All resource names are invalid. | 所有资源名称无效。 | 所有资源名称无效。 |
| 400 | EMS.00050004 | Resource type is invalid. | 资源类型无效。 | 资源类型无效。 |
| 400 | EMS.00050005 | Unable to offline all pods or nodes, at least one must remain. | 无法下线所有Pod或节点,必须至少保留一个。 | 无法下线所有Pod或节点,必须至少保留一个。 |
| 400 | EMS.00050006 | Pod label is invalid. | Pod标签无效。 | Pod标签无效。 |
| 400 | EMS.00050007 | Update node label failed, return null. | 更新节点标签失败,返回null。 | 更新节点标签失败,返回null。 |
| 400 | EMS.00050008 | Update node label retry exceeded max times. | 更新节点标签重试次数超过最大次数。 | 更新节点标签重试次数超过最大次数。 |
| 400 | EMS.00050009 | Delete node label failed, return null. | 删除节点标签失败,返回null。 | 删除节点标签失败,返回null。 |
| 400 | EMS.00050010 | Delete node label retry exceeded max times. | 删除节点标签重试次数超过最大次数。 | 删除节点标签重试次数超过最大次数。 |
| 400 | EMS.00050011 | Delete pod failed. | 删除Pod失败。 | 删除Pod失败。 |
| 400 | EMS.00050012 | Delete pods failed. | 删除Pods失败。 | 删除Pods失败。 |
| 400 | EMS.00050013 | list request failed. | 列表请求失败。 | 列表请求失败。 |
| 400 | EMS.00050014 | check exist resource error, list interface failed. | 检查存在资源错误,列表接口失败。 | 检查存在资源错误,列表接口失败。 |
| 400 | EMS.00050015 | get node failed. | 获取节点失败。 | 获取节点失败。 |
| 400 | EMS.00060002 | job ids not found | 任务ID未找到。 | 任务ID未找到。 |
| 400 | EMS.00070001 | Missed parameter | 缺少参数。 | 缺少参数。 |
| 400 | EMS.00070002 | Version not found | 找不到版本。 | 找不到版本。 |
| 400 | EMS.00070003 | Failed to add ems version | 添加EMS版本失败。 | 添加EMS版本失败。 |
| 400 | EMS.00070004 | Failed to update ems version | 更新EMS版本失败。 | 更新EMS版本失败。 |
| 400 | EMS.00070005 | Failed to delete ems version | 删除EMS版本失败。 | 删除EMS版本失败。 |
| 400 | EMS.00070006 | Failed to add ems feature | 添加EMS特性失败。 | 添加EMS特性失败。 |
| 400 | EMS.00070007 | Failed to update ems feature | 更新EMS特性失败。 | 更新EMS特性失败。 |
| 400 | EMS.00070008 | Failed to delete ems feature | 删除EMS特性失败。 | 删除EMS特性失败。 |
| 400 | EMS.00070010 | Failed to list features | 列出特性失败。 | 列出特性失败。 |
| 403 | EMS.00040002 | Tenant is disabled. | 租户已被禁用。 | 租户已被禁用。 |
| 404 | EMS.00030005 | Cluster not found | 集群未找到。 | 集群未找到。 |
| 404 | EMS.00030067 | Queue job not found. | 队列任务未找到。 | 队列任务未找到。 |
| 404 | EMS.00030091 | job id not found in memory. | 内存中未找到任务ID。 | 内存中未找到任务ID。 |
| 404 | EMS.00040001 | Tenant not found. | 租户未找到。 | 租户未找到。 |
| 404 | EMS.00060001 | job not found | 任务未找到。 | 任务未找到。 |
| 500 | EMS.00000001 | Scc encrypt failed. | SCC加密失败。 | SCC加密失败。 |
| 500 | EMS.00000002 | Scc decrypt failed. | SCC解密失败。 | SCC解密失败。 |
| 500 | EMS.00000003 | Scc register key failed. | SCC注册密钥失败。 | SCC注册密钥失败。 |
| 500 | EMS.00000004 | http client send request failed. | HTTP客户端发送请求失败。 | HTTP客户端发送请求失败。 |
| 500 | EMS.00000005 | init SSLContext failed. | 初始化SSLContext失败。 | 初始化SSLContext失败。 |
| 500 | EMS.00000006 | json parse failed. | JSON解析失败。 | JSON解析失败。 |
| 500 | EMS.00000007 | failed to push events. | 推送事件失败。 | 推送事件失败。 |
| 500 | EMS.00000008 | config param error | 配置参数错误。 | 配置参数错误。 |
| 500 | EMS.00010001 | Failed for hash validate when generate hash code. | 生成哈希码时哈希验证失败。 | 生成哈希码时哈希验证失败。 |
| 500 | EMS.00010002 | Failed to create new credential | 创建新凭证失败。 | 创建新凭证失败。 |
| 500 | EMS.00020001 | batch create raw cdr records failed. | 批量创建原始CDR记录失败。 | 批量创建原始CDR记录失败。 |
| 500 | EMS.00020002 | generate hourly cdr summary failed | 生成每小时CDR汇总失败。 | 生成每小时CDR汇总失败。 |
| 500 | EMS.00020003 | SDR get meter from ems-manager failed | 从ems-manager获取仪表盘失败。 | 从ems-manager获取仪表盘失败。 |
| 500 | EMS.00020004 | handle raw cdr from ems-server failed | 处理来自ems-server的原始CDR失败。 | 处理来自ems-server的原始CDR失败。 |
| 500 | EMS.00020005 | delete history cdrs failed | 删除历史CDR失败。 | 删除历史CDR失败。 |
| 500 | EMS.00020006 | generate hourly cdr count failed | 生成每小时CDR计数失败。 | 生成每小时CDR计数失败。 |
| 500 | EMS.00020007 | No cdr in db the previous hour | 前一小时无CDR数据。 | 前一小时无CDR数据。 |
| 500 | EMS.00030001 | Failed to insert cluster entity. | 插入集群实体失败。 | 插入集群实体失败。 |
| 500 | EMS.00030002 | Failed to create cluster. | 创建集群失败。 | 创建集群失败。 |
| 500 | EMS.00030003 | Failed to update cluster status to DELETING | 更新集群状态为DELETING失败。 | 更新集群状态为DELETING失败。 |
| 500 | EMS.00030004 | Failed to update cluster status | 更新集群状态失败。 | 更新集群状态失败。 |
| 500 | EMS.00030006 | Failed to send request to rfs. | 发送请求到RFS失败。 | 发送请求到RFS失败。 |
| 500 | EMS.00030007 | Failed to receive response from rfs. | 从RFS接收响应失败。 | 从RFS接收响应失败。 |
| 500 | EMS.00030008 | Failed to parse response from rfs. | 解析RFS响应失败。 | 解析RFS响应失败。 |
| 500 | EMS.00030009 | Failed to create resource stack | 创建资源栈失败。 | 创建资源栈失败。 |
| 500 | EMS.00030010 | Failed to get execution plan metadata due to timeout | 获取执行计划元数据超时。 | 获取执行计划元数据超时。 |
| 500 | EMS.00030011 | Failed to create execution plan | 创建执行计划失败。 | 创建执行计划失败。 |
| 500 | EMS.00030012 | Failed to get resource stack metadata due to timeout | 获取资源栈元数据超时。 | 获取资源栈元数据超时。 |
| 500 | EMS.00030013 | Failed to deploy resource | 部署资源失败。 | 部署资源失败。 |
| 500 | EMS.00030014 | Failed to insert data to db. | 插入数据到数据库失败。 | 插入数据到数据库失败。 |
| 500 | EMS.00030015 | Failed to update data to db. | 更新数据库数据失败。 | 更新数据库数据失败。 |
| 500 | EMS.00030016 | Failed to delete data to db. | 删除数据库数据失败。 | 删除数据库数据失败。 |
| 500 | EMS.00030017 | Failed to get helm package version info. | 获取Helm包版本信息失败。 | 获取Helm包版本信息失败。 |
| 500 | EMS.00030018 | Failed to modify helm package. | 修改Helm包失败。 | 修改Helm包失败。 |
| 500 | EMS.00030019 | Failed to send request to cce. | 发送请求到CCE失败。 | 发送请求到CCE失败。 |
| 500 | EMS.00030020 | Failed to receive response from cce. | 从CCE接收响应失败。 | 从CCE接收响应失败。 |
| 500 | EMS.00030021 | Failed to parse response from cce. | 解析CCE响应失败。 | 解析CCE响应失败。 |
| 500 | EMS.00030022 | Failed to get template instance info due to TIMEOUT. | 获取模板实例信息超时。 | 获取模板实例信息超时。 |
| 500 | EMS.00030023 | Failed to deploy template instance. | 部署模板实例失败。 | 部署模板实例失败。 |
| 500 | EMS.00030024 | Failed to activate ems cluster. | 激活EMS集群失败。 | 激活EMS集群失败。 |
| 500 | EMS.00030025 | Failed to delete ems cluster. | 删除EMS集群失败。 | 删除EMS集群失败。 |
| 500 | EMS.00030026 | Failed to delete ems resource stack. | 删除EMS资源栈失败。 | 删除EMS资源栈失败。 |
| 500 | EMS.00030027 | Failed to send request to vpcep | 发送请求到VPCEP失败。 | 发送请求到VPCEP失败。 |
| 500 | EMS.00030028 | Failed to add domain id to vpcep service, vpcep service id and domain id : | 添加域ID到VPCEP服务失败。 | 添加域ID到VPCEP服务失败。 |
| 500 | EMS.00030029 | Failed to create lts agency log access for tenant: | 为租户创建LTS代理日志访问失败。 | 为租户创建LTS代理日志访问失败。 |
| 500 | EMS.00030030 | Failed to find agency | 查找代理失败。 | 查找代理失败。 |
| 500 | EMS.00030031 | Failed to get job status! | 获取任务状态失败。 | 获取任务状态失败。 |
| 500 | EMS.00030032 | Failed to delete lts. | 删除LTS失败。 | 删除LTS失败。 |
| 500 | EMS.00030035 | Failed to delete security group. | 删除安全组失败。 | 删除安全组失败。 |
| 500 | EMS.00030036 | Failed to delete vpcep. | 删除VPCEP失败。 | 删除VPCEP失败。 |
| 500 | EMS.00030037 | Failed to enroll cluster. | 注册集群失败。 | 注册集群失败。 |
| 500 | EMS.00030041 | Failed to get memory specification | 获取内存规格失败。 | 获取内存规格失败。 |
| 500 | EMS.00030044 | Failed to delete LTS resources. | 删除LTS资源失败。 | 删除LTS资源失败。 |
| 500 | EMS.00030045 | Failed to delete RFS resources. | 删除RFS资源失败。 | 删除RFS资源失败。 |
| 500 | EMS.00030046 | Failed to delete LogAgent config. | 删除LogAgent配置失败。 | 删除LogAgent配置失败。 |
| 500 | EMS.00030047 | Failed to update cluster status to DELETED. | 更新集群状态为DELETED失败。 | 更新集群状态为DELETED失败。 |
| 500 | EMS.00030048 | Failed to delete template instance. | 删除模板实例失败。 | 删除模板实例失败。 |
| 500 | EMS.00030053 | Failed to clean up hugepage. | 清理大页失败。 | 清理大页失败。 |
| 500 | EMS.00030055 | Failed to get log group | 获取日志组失败。 | 获取日志组失败。 |
| 500 | EMS.00030056 | Failed to get log stream | 获取日志流失败。 | 获取日志流失败。 |
| 500 | EMS.00030057 | Failed to get template values. | 获取模板值失败。 | 获取模板值失败。 |
| 500 | EMS.00030063 | Failed to check k8s event log group | 检查K8s事件日志组失败。 | 检查K8s事件日志组失败。 |
| 500 | EMS.00030064 | Failed to check lts_connect_type conflict | 检查lts_connect_type冲突失败。 | 检查lts_connect_type冲突失败。 |
| 500 | EMS.00030066 | Failed to create queue job. | 创建队列任务失败。 | 创建队列任务失败。 |
| 500 | EMS.00030082 | Failed to get addon details. | 获取插件详情失败。 | 获取插件详情失败。 |
| 500 | EMS.00030086 | Failed to create EMS agent LTS. | 创建EMS代理LTS失败。 | 创建EMS代理LTS失败。 |
| 500 | EMS.00030087 | Failed to delete EMS agent LTS. | 删除EMS代理LTS失败。 | 删除EMS代理LTS失败。 |
| 500 | EMS.00030092 | Failed to create EMS agent. | 创建EMS代理失败。 | 创建EMS代理失败。 |
| 500 | EMS.00030093 | Failed to delete EMS agent. | 删除EMS代理失败。 | 删除EMS代理失败。 |
| 500 | EMS.00030095 | Failed to check event log stream location | 检查事件日志流位置失败。 | 检查事件日志流位置失败。 |
| 500 | EMS.00030096 | Failed to delete EMS upgrade record. | 删除EMS升级记录失败。 | 删除EMS升级记录失败。 |
| 500 | EMS.00040003 | Tenant validation failed. | 租户验证失败。 | 租户验证失败。 |
| 500 | EMS.00070009 | Failed to list versions | 列出版本失败。 | 列出版本失败。 |