错误码
功能说明
API调用发生错误时,会有错误结构体返回,该小节主要是对ESW封装接口错误结构的解释。
返回体格式
{
"error_msg": "The tunnel number and the remote tunnel IP between the instance's Layer 2 connection are the same",
"error_code": "l2cg.9935",
"request_id": "6d09de70c2881ed2a229d512d2342a61"
} 错误码说明
当您调用API时,如果遇到“APIGW”开头的错误码,请参见API网关错误码进行处理。
| 模块 | 状态码 | 错误码 | 错误信息 | 描述 | 处理措施 |
|---|---|---|---|---|---|
| 公共 | 409 | l2cg.9920 | The status of the instance xxx is not active. | 企业交换机实例状态不是运行中。 | 请确认请求中指定的实例状态是否非active,待实例状态为active后重试 |
| 404 | l2cg.9923 | instance xxx could not be found. | 企业交换机实例不存在。 | 请确认请求中指定的实例id是否正确 | |
| 实例 | 409 | l2cg.9907 | The instance contains some layer 2 connections, can not be deleted. | 当前企业交换机包含二层连接,不能删除。 | 请确认当前请求指定的实例下是否存在二层连接,在删除所有二层连接后重试 |
| 400 | l2cg.9941 | flavor could not be found: xxx | 企业交换机规格不存在。 | 请确认请求中指定的flavor是否正确 | |
| 400 | l2cg.9901 | The instance tunnel ip: xxx is not available. | 企业交换机隧道IP不可用。 | 请确认请求体中指定的隧道IP是否已被占用,更换一个未被使用的IP重试操作 | |
| 409 | l2cg.9921 | The instance xxx is being built or is being deleted. | 企业交换机实例在当前状态下不能删除。 | 请确认当前实例状态是否为build或者已经被删除,如果为build状态则等待实例创建结束后再重试操作 | |
| 409 | l2cg.9922 | This tunnel subnet: xxx is already used by Layer 2 connection objects: xxx | 企业交换机实例隧道子网不能和任一实例的二层连接子网相同。 | 替换请求体中指定的隧道子网,并确保其未被用于构建二层连接 | |
| 二层连接 | 409 | l2cg.9930 | The connection xxx is being built and is not allowed to delete. | 二层连接在当前状态下不能删除。 | 请确认目标操作的二层连接状态是否为pending,待二层连接创建结束后重试操作 |
| 404 | l2cg.9904 | connection xxx in instance xxx could not be found. | 二层连接不存在。 | 请确认请求中的二层连接id是否正确存在 | |
| 403 | l2cg.9931 | Instance xxx is frozen, not support this operation. | 当实例状态为冻结时,连接操作受限。 | 请确认目标操作的实例状态是否为frozen,待状态恢复active后重试操作 | |
| 409 | l2cg.9932 | The connection under the instance: xxx has reached its maximum: xxx. | 超过实例支持的二层连接个数上限。 | 请选用更大规格的实例 | |
| 409 | l2cg.9933 | Layer 2 connection subnet: xxx is the same as the local tunnel subnet in the instance: xxx | 二层连接子网不能和任一实例的隧道子网相同。 | 替换请求体中指定的二层连接子网,并确保其未被作为任一实例的隧道子网 | |
| 409 | l2cg.9935 | The tunnel number and the remote tunnel IP between the instance's Layer 2 connection are the same | 二层连接的远端隧道号和隧道IP不能与该实例下其他连接的相同。 | 请确认请求中的远端隧道号和隧道IP不与当前实例下的其他二层连接配置相同 | |
| 409 | l2cg.9936 | This subnet: xxx is already used by Layer 2 connection objects: xxx | 同一个子网只能被一个二层连接绑定。 | 请确认请求中指定的子网未被其他二层连接使用 | |
| 404 | l2cg.9950 | vport xxx could not be found. | Vport不存在。 | 请确认请求中指定的虚拟IP真实存在 |