错误码
功能说明
API调用发生错误时,会有错误结构体返回,该小节主要是对EIP封装接口(不包括OpenStack原生接口)错误结构的解释。
返回体格式
{
"code": "VPC.0504",
"message": "Floating IP could not be found."
} 错误码说明
| 模块 | http状态码 | 错误码 | 错误说明 | Error Message | 处理措施 |
|---|---|---|---|---|---|
| 公共 | 400 | VPC.0002 | 可用区为空 | Available zone Name is null. | 请确认创建子网的请求体中availability_zone字段是否为空 |
| 404 | VPC.0003 | VPC不存在 | VPC does not exist. | 请确认VPC的id是否填写正确或该租户下是否确实存在该VPC | |
| 400 | VPC.0004 | VPC状态异常 | VPC does not active,please try later. | 请稍后重试或联系技术支持 | |
| 401 | VPC.0009 | 实名认证失败 | real-name authentication fail. | 请联系技术支持 | |
| 公共 | 400 | VPC.0007 | tenantID不一致 | urlTenantId is not equal tokenTenantId | url里的tenant_id和token中解析到的tenant_id不一致 |
| 401 | VPC.0008 | token非法 | Invalid token in the header. | 请确认请求头中的token是否合法 | |
| 403 | VPC.2701 | 无权操作,或账户余额不足 | Token not allowed to do this action. | 请确认账户是否余额不足或被冻结 | |
| 申请弹性公网IP | 400 | VPC.0301 | 创建弹性公网IP时,带宽参数错误 | Bandwidth name or share_type is invalid. | 请检查传入的带宽参数值是否合法 |
| 400 | VPC.0501 | 弹性公网IP参数错误 | Bandwidth share_type is invalid. | 请根据实际返回的Error Message参考接口文档检查传入的参数值是否合法 | |
| 403 | VPC.0502 | 用户受限,不允许申请弹性公网IP | Tenant status is op_restricted. | 请确认账户是否余额不足或被冻结 | |
| 500 | VPC.0503 | 创建弹性公网IP失败 | Creating publicIp failed. | 请联系技术支持 | |
| 500 | VPC.0504 | 未找到弹性公网IP,申请失败 | FloatIp is null. | 请联系技术支持 | |
| 500 | VPC.0508 | 未找到port相关资源 | Port is invalid. | 请联系技术支持 | |
| 409 | VPC.0510 | 弹性公网IP已经绑定其他虚拟机 | Floatingip has already associated with port. | 请先将该弹性公网IP与其他虚拟机解绑定 | |
| 409 | VPC.0511 | port已经绑定 | Port has already associated with floatingip. | 请先将该端口与其他弹性公网IP解绑定 | |
| 409 | VPC.0521 | EIP配额不足 | Quota exceeded for resources: ['floatingip']. | 请先释放未绑定的弹性公网IP或申请扩大弹性公网IP资源的配额值 | |
| 409 | VPC.0522 | IP格式不合法或者IP被占用 | The IP address is in use. | 请确认IP格式是否合法或更换其他IP地址 | |
| 409 | VPC.0532 | IP资源池占满,无法分配新IP | No more IP addresses available on network. | 请先释放未绑定的弹性公网IP或稍后重试 | |
| 查询弹性公网IP | 400 | VPC.0501 | 弹性公网IP参数错误 | Invalid floatingip_id. | 请确认弹性公网IP的id是否合法 |
| 404 | VPC.0504 | 未找到弹性公网IP | Floating IP could not be found. | 请确认传入的弹性公网IP的id是否正确 | |
| 500 | VPC.0514 | 底层异常 | Neutron Error. | 请确认NEUTRON服务是否正常或联系技术支持 | |
| 查询弹性公网IP列表 | 400 | VPC.0501 | 弹性公网IP参数错误 | Invalid limit. | 请根据实际返回的Error Message参考接口文档检查传入的参数值是否合法 |
| 删除弹性公网IP | 400 | VPC.0501 | 弹性公网IP参数错误 | Invalid param. | 请联系技术支持 |
| 404 | VPC.0504 | 未找到弹性公网IP | Floating IP could not be found. | 请确认传入的弹性公网IP的id是否正确 | |
| 409 | VPC.0512 | 弹性公网IP状态异常 | Resource status is busy, try it again later. | 请稍后重试或联系技术支持 | |
| 500 | VPC.0513 | 未找到网络资源 | getElementByKey error. | 请联系技术支持 | |
| 500 | VPC.0516 | 弹性公网IP被ELB使用,删除失败 | Publicip is in used by ELB. | 请先将该弹性公网IP与ELB解绑定 | |
| 409 | VPC.0517 | 弹性公网IP绑定虚拟机,删除失败 | Floatingip has associated with port, please disassociate it firstly. | 请先将该弹性公网IP与ECS解绑定 | |
| 500 | VPC.0518 | 弹性公网IP被网络ACL使用,删除失败 | Public IP has firewall rules. | 请联系技术支持 | |
| 更新弹性公网IP | 400 | VPC.0501 | 弹性公网IP参数错误 | Port id is invalid. | 请确认port的id是否合法 |
| 404 | VPC.0504 | 未找到弹性公网IP | Floating IP could not be found. | 请确认传入的弹性公网IP的id是否正确 | |
| 500 | VPC.0509 | port已经绑定弹性公网IP | Floating ip double status is invalid. | 请先将该端口与其他弹性公网IP解绑定 | |
| 409 | VPC.0510 | 弹性公网IP已经绑定其他虚拟机 | Floatingip has already associated with port. | 请先将该弹性公网IP与其他虚拟机解绑定 | |
| 409 | VPC.0511 | 虚拟机已经绑定弹性公网IP,不能再绑定 | Port has already associated with floatingip. | 请先将该虚拟机与其他弹性公网IP解绑定 | |
| 409 | VPC.0512 | 弹性公网IP状态异常 | Resource status is busy, try it again later. | 请稍后重试或联系技术支持 | |
| 404/500 | VPC.0514 | 底层异常 | Neutron Error. | 请确认NEUTRON服务是否正常或联系技术支持 | |
| 查询带宽 | 400 | VPC.0301 | 带宽参数错误 | getBandwidth error bandwidthId is invalid. | 请确认带宽的id是否合法 |
| 404 | VPC.0306 | 带宽对象不存在 | No Eip bandwidth exist with id. | 所查询的带宽对象不存在 | |
| 500 | VPC.0302 | 底层异常 | Neutron Error. | 请确认NEUTRON服务是否正常或联系技术支持 | |
| 查询带宽列表 | 400 | VPC.0301 | 带宽参数错误 | Get bandwidths error limit is invalid. | 请根据实际返回的Error Message参考接口文档检查传入的参数值是否合法 |
| 404 | VPC.0306 | 带宽对象不存在 | No Eip bandwidth exist with id. | 所查询的带宽对象不存在 | |
| 500 | VPC.0302 | 底层异常 | Neutron Error. | 请确认NEUTRON服务是否正常或联系技术支持 | |
| 更新带宽 | 400 | VPC.0301 | 带宽参数错误 | updateBandwidth input param is invalid. | 请根据实际返回的Error Message参考接口文档检查传入的参数值是否合法 |
| 500 | VPC.0302 | 带宽获取底层资源异常 | Neutron Error. | 请确认NEUTRON服务是否正常或联系技术支持 | |
| 500 | VPC.0305 | 更新带宽内部异常 | updateBandwidth error. | 请联系技术支持 | |
| 创建共享带宽 | 400 | VPC.0310 | 共享带宽配额不足 | NO QUOTAS for shareBandwidth! | 请删除不使用的共享带宽或联系技术支持 |
| 共享带宽插入/移除弹性公网IP | 400 | VPC.0301 | 无效的publicip_id | Invalid publicip_id | 请检查publicip_info里面的publicip_id是否合法 |
| 400 | VPC.0323 | 共享带宽无法插入/移除弹性公网IP | publicIp can not be operate with this bandwidth | 请检查共享带宽或者弹性公网IP的状态是否正常 | |
| 查询配额 | 400 | VPC.1207 | 指定的类型不存在 | resource type is invalid. | 请使用已存在的正确类型。 |