错误码
功能说明
API调用发生错误时,会有错误结构体返回,该小节主要是对EIP封装接口(不包括OpenStack原生接口)错误结构的解释。
返回体格式
{
"code": "VPC.0504",
"message": "Floating IP could not be found."
} 错误码说明
当您调用API时,如果遇到“APIGW”开头的错误码,请参见API网关错误码进行处理。
| 模块 | 状态码 | 错误码 | 错误信息 | 描述 | 处理措施 |
|---|---|---|---|---|---|
| 公共 | 400 | VPC.0002 | AZ name is null. | 可用区为空 | 请确认创建子网的请求体中availability_zone字段是否为空 |
| 404 | VPC.0003 | VPC does not exist. | VPC不存在 | 请确认VPC的id是否填写正确或该租户下是否确实存在该VPC | |
| 400 | VPC.0004 | VPC is not active. Try again later. | VPC状态异常 | 请稍后重试或联系技术支持 | |
| 401 | VPC.0009 | Real-name authentication failed. | 实名认证失败 | 请联系技术支持 | |
| 公共 | 400 | VPC.0007 | Inconsistent tenant IDs. | tenantID不一致 | url里的tenant_id和token中解析到的tenant_id不一致 |
| 401 | VPC.0008 | Invalid token in the header. | token非法 | 请确认请求头中的token是否合法 | |
| 403 | VPC.2701 | Token not allowed to do this action. | 无权操作,或账户余额不足 | 请确认账户是否余额不足或被冻结 | |
| 公共 | 403 | VPC.0010 | Insufficient permissions to make calls to the underlying system. | 调用底层权限不足 | 请赋予正确的细粒度权限 |
| 403 | VPC.2201 | Policy does not allow <x:x:x> to be performed. | 细粒度权限不足 | 请赋予正确的细粒度权限 | |
| 公共 | 400 | VPC.0014 | The enterprise project is unavailable. | 企业项目不可用 | 更换其他可用企业项目id |
| 400 | VPC.0011 | Invalid enterprise project ID. | 企业项目id非法 | 输入合法的企业项目id | |
| 500 409 | VPC.0304 | An internal error occurs when operations are being performed on the bandwidth. | 带宽操作内部异常 | 请根据实际返回的Error Message联系技术支持处理 | |
| 申请弹性公网IP | 400 | VPC.0301 | Bandwidth name or share_type is invalid. | 创建弹性公网IP时,带宽参数错误 | 请检查传入的带宽参数值是否合法 |
| 400 | VPC.0501 | Bandwidth share_type is invalid. | 弹性公网IP参数错误 | 请根据实际返回的Error Message参考接口文档检查传入的参数值是否合法 | |
| 403 | VPC.0502 | You are not allowed to assign the EIP. | 用户受限,不允许申请弹性公网IP | 请确认账户是否余额不足或被冻结 | |
| 500 | VPC.0503 | Failed to assign the EIP. | 创建弹性公网IP失败 | 请联系技术支持 | |
| 500 | VPC.0504 | FloatIp is null. | 未找到弹性公网IP,申请失败 | 请联系技术支持 | |
| 500 | VPC.0508 | Port is invalid. | 未找到port相关资源 | 请联系技术支持 | |
| 409 | VPC.0510 | EIP has already been bound to a port. | 弹性公网IP已经绑定其他虚拟机 | 请先将该弹性公网IP与其他虚拟机解绑定 | |
| 409 | VPC.0511 | The port has already been bound with an EIP. | port已经绑定弹性公网IP | 请先将该端口与其他弹性公网IP解绑定 | |
| 409 | VPC.0521 | Quota exceeded for resources: ['floatingip']. | EIP配额不足 | 请先释放未绑定的弹性公网IP或申请扩大弹性公网IP资源的配额值 | |
| 409 | VPC.0522 | The IP address is in use. | IP格式不合法或者IP被占用 | 请确认IP格式是否合法或更换其他IP地址 | |
| 409 | VPC.0532 | No more IP addresses available on network. | IP资源池占满,无法分配新IP | 请先释放未绑定的弹性公网IP或稍后重试 | |
| 404 | VPC.0012 | Requested resources not found. | 企业项目id不存在 | 请确认该租户下是否存在该id对应的企业项目 | |
| 400 | EIP.7901 | Invalid input parameter. | 无效的请求体 | 1.检查json格式2.按message提示检查取值范围 | |
| 查询弹性公网IP | 400 | VPC.0501 | Invalid floatingip_id. | 弹性公网IP参数错误 | 请确认弹性公网IP的id是否合法 |
| 404 | VPC.0504 | Floating IP could not be found. | 未找到弹性公网IP | 请确认传入的弹性公网IP的id是否正确 | |
| 500 | VPC.0514 | Neutron error. | 底层异常 | 请确认NEUTRON服务是否正常或联系技术支持 | |
| 查询弹性公网IP列表 | 400 | VPC.0501 | Invalid limit. | 弹性公网IP参数错误 | 请根据实际返回的Error Message参考接口文档检查传入的参数值是否合法 |
| 删除弹性公网IP | 400 | VPC.0501 | Invalid param. | 弹性公网IP参数错误 | 请联系技术支持 |
| 404 | VPC.0504 | Floating IP could not be found. | 未找到弹性公网IP | 请确认传入的弹性公网IP的id是否正确 | |
| 409 | VPC.0512 | Resource status is busy, try it again later. | 弹性公网IP状态异常 | 请稍后重试或联系技术支持 | |
| 500 | VPC.0513 | Network resources not found. | 未找到网络资源 | 请联系技术支持 | |
| 500 | VPC.0516 | EIP is being used by ELB. | 弹性公网IP被ELB使用,删除失败 | 请先将该弹性公网IP与ELB解绑定 | |
| 409 | VPC.0517 | EIP is bound to a port. Unbind it first. | 弹性公网IP绑定虚拟机,删除失败 | 请先将该弹性公网IP与ECS解绑定 | |
| 500 | VPC.0518 | EIP has firewall rules. | 弹性公网IP被网络ACL使用,删除失败 | 请联系技术支持 | |
| 409 | VPC.0525 | A yearly/monthly EIP cannot be released. | 包周期EIP不支持直接删除 | 请进行退订操作 | |
| 更新弹性公网IP | 400 | VPC.0501 | Port id is invalid. | 弹性公网IP参数错误 | 请确认port的id是否合法 |
| 404 | VPC.0504 | Floating IP could not be found. | 未找到弹性公网IP | 请确认传入的弹性公网IP的id是否正确 | |
| 500 | VPC.0509 | The port has already been bound with an EIP. | port已经绑定弹性公网IP | 请先将该端口与其他弹性公网IP解绑定 | |
| 409 | VPC.0510 | EIP has already been bound to a port. | 弹性公网IP已经绑定其他虚拟机 | 请先将该弹性公网IP与其他虚拟机解绑定 | |
| 409 | VPC.0511 | The port has already been bound with an EIP. | 虚拟机已经绑定弹性公网IP,不能再绑定 | 请先将该虚拟机与其他弹性公网IP解绑定 | |
| 409 | VPC.0512 | Resource status is busy, try it again later. | 弹性公网IP状态异常 | 请稍后重试或联系技术支持 | |
| 404/500 | VPC.0514 | Neutron error. | 底层异常 | 请确认NEUTRON服务是否正常或联系技术支持 | |
| 查询带宽 | 400 | VPC.0301 | getBandwidth error bandwidthId is invalid. | 带宽参数错误 | 请确认带宽的id是否合法 |
| 404 | VPC.0306 | EIP bandwidth with the ID not found. | 带宽对象不存在 | 所查询的带宽对象不存在 | |
| 500 | VPC.0302 | Neutron error. | 底层异常 | 请确认NEUTRON服务是否正常或联系技术支持 | |
| 查询带宽列表 | 400 | VPC.0301 | Get bandwidths error limit is invalid. | 带宽参数错误 | 请根据实际返回的Error Message参考接口文档检查传入的参数值是否合法 |
| 404 | VPC.0306 | EIP bandwidth with the ID not found. | 带宽对象不存在 | 所查询的带宽对象不存在 | |
| 500 | VPC.0302 | Neutron error. | 底层异常 | 请确认NEUTRON服务是否正常或联系技术支持 | |
| 更新带宽 | 401 | VPC.0301 | updateBandwidth input param is invalid. | 带宽参数错误 | 请根据实际返回的Error Message参考接口文档检查传入的参数值是否合法 |
| 500 | VPC.0302 | Neutron error. | 带宽获取底层资源异常 | 请确认NEUTRON服务是否正常或联系技术支持 | |
| 500 | VPC.0305 | Bandwidth update error. | 更新带宽内部异常 | 请联系技术支持 | |
| 创建共享带宽 | 400 | VPC.0310 | Insufficient shared bandwidth quota. | 共享带宽配额不足 | 请删除不使用的共享带宽或联系技术支持 |
| 共享带宽插入/移除弹性公网IP | 400 | VPC.0301 | Invalid publicip_id | 无效的publicip_id | 请检查publicip_info里面的publicip_id是否合法 |
| 400 | VPC.0323 | EIPs cannot be added to or removed from the shared bandwidth. | 共享带宽无法插入/移除弹性公网IP | 请检查共享带宽或者弹性公网IP的状态是否正常 | |
| 查询配额 | 400 | VPC.1207 | Invalid resource type. | 指定的类型不存在 | 请使用已存在的正确类型。 |