• Virtual Private Cloud

vpc
  1. Help Center
  2. Virtual Private Cloud
  3. API Reference
  4. Public Parameters
  5. Error Codes

Error Codes

Description

If an error occurs when an API is called, error information is returned. This section describes the error information for VPC APIs (excluding native OpenStack APIs).

Example of Returned Error Information

{
    "code": "VPC.0001",
    "message": "Token is null."
}

Error Code Description

Module

HTTP Status Code

Error Code

Description

Error Message

Handling Measure

Public

400

VPC.0002

The AZ is left blank.

Available zone Name is null.

Verify whether the availability_zone field in the request body for creating a subnet is empty.

404

VPC.0003

The VPC does not exist.

VPC does not exist.

Check whether the VPC ID is correct or whether the VPC exists under the tenant.

400

VPC.0004

The status of the VPC is abnormal.

VPC does not active, please try later.

Try again later or contact technical support.

400

VPC.0007

Inconsistent tenant IDs.

urlTenantId is not equal tokenTenantId

The tenant ID in the URL is different from that parsed in the token.

401

VPC.0008

Invalid token.

Invalid token in the header.

Check whether the token in the request header is valid.

401

VPC.0009

Real-name authentication fails.

real-name authentication fail.

Contact technical support.

403

VPC.2701

You do not have permission to perform this operation, or your account balance is insufficient.

Token not allowed to do this action.

Check whether the account balance is insufficient or whether your account has been frozen.

Public

403

VPC.0010

Insufficient permissions to make calls to the underlying system.

Rules on xx by ** disallowed by policy

Obtain the required permissions.

403

VPC.2201

Insufficient fine-grained permissions.

Policy doesn't allow <x:x:x> to be performed

Obtain the required permissions.

Creating a VPC

400

VPC.0101

VPC parameters are incorrect.

Param is invalid.

Check whether the parameter values are valid based on the returned error message and API reference document.

409

VPC.0114

The number of VPCs has reached the maximum allowed limit specified by the quota.

Quota exceeded for resources: ['router'].

Clear VPC resources that no longer will be used or apply for expanding the VPC resource quota.

400

VPC.0115

The VPC name already exists.

The router name has exist.

Change the VPC name.

Querying a VPC

400

VPC.0101

VPC parameters are incorrect.

getVpc error vpcId is invalid.

Ensure that the specified VPC ID is correct.

404/500

VPC.0105

The interface fails to invoke the background service.

Neutron Error.

Check whether the Neutron service is normal or contact technical support.

500

VPC.0106

An error is returned for the failure to invoke the background service.

get router is null.

Check whether the Neutron service is normal or contact technical support.

Querying VPCs

400

VPC.0101

Failed to query the VPCs.

Query vpc list error.

Check whether the parameter values are valid based on the returned error message.

500

VPC.0105

The interface fails to invoke the background service.

Neutron Error.

Check whether the Neutron service is normal or contact technical support.

500

VPC.0106

The response result of calls to the IaaS OpenStack system is null or empty.

query routers or getList are null.

Check whether the Neutron service is normal or contact technical support.

Deleting a VPC

400/404

VPC.0101

Invalid parameters.

Delete router error xx is invalid.

Check whether the parameter values are valid based on the returned error message.

500

VPC.0102

The interface fails to obtain the routing resources.

Delete router fail.

Contact technical support.

409

VPC.0103

The VPC cannot be deleted because it is being created.

Resource status is busy, try it again later.

Contact technical support.

409

VPC.0104

The VPC cannot be deleted because it contains subnets.

Router contains subnets, please delete subnet first.

Delete the subnet in the VPC.

404/500

VPC.0105

The interface fails to invoke the background service.

Neutron Error.

Check whether the Neutron service is normal or contact technical support.

500

VPC.0107

Failed to delete the VPC because it has firewalls associated.

Delete the firewall first before deleting the router.

Delete the firewalls of the tenant first.

500

VPC.0108

Failed to delete the VPC because it contains EIPs.

Router is used not allow deleted.

Delete EIPs of the tenant first.

500

VPC.0109

Failed to delete the VPC because one or more VPNs have been created for it.

Router is used not allow deleted.

Delete VPNs of the tenant.

500

VPC.0110

The VPC cannot be deleted because its status is unstable.

deleteDefaultNetworkFromRouter router status is invalid.

Contact technical support.

500

VPC.0111

An internal VPC exception occurs.

Database Error.

Contact technical support.

409

VPC.0112

The VPC cannot be deleted because it contains security groups.

Delete the securitygroup first before deleting the router.

Delete security groups of the tenant.

409

VPC.0118

The VPC cannot be deleted because it contains load balancers.

ELB exists under this router, delete ELB firstly.

Delete load balancers in the VPC.

500

VPC.0119

An error occurred when the VPC service makes calls to the ELB service.

ELB Error.

Check whether the ELB service is normal or contact technical support.

409

VPC.0120

The VPC cannot be deleted because it contains extension routes.

exroutes exists under this router, delete exroutes firstly.

Delete extension routes in the VPC.

Updating a VPC

400

VPC.0101

Invalid parameters.

Update router xx is invalid.

Check whether the parameter values are valid based on the returned error message.

404/500

VPC.0105

The interface fails to invoke the background service.

Neutron Error.

Check whether the Neutron service is normal or contact technical support.

500

VPC.0113

The VPC cannot be updated because the status of the VPC is abnormal.

Router status is not active.

Try again later or contact technical support.

400

VPC.0115

The VPC name already exists.

The router name has exist.

Change the VPC name.

400

VPC.0117

The subnet parameters are invalid. The network segment of the VPC does not contain all those of the subnets.

Cidr can not contain subnetList cidr.

Change the CIDR block of the VPC.

Creating a subnet

400

VPC.0201

Incorrect subnet parameters.

Subnet name is invalid.

Check whether the parameter values are valid based on the returned error message and API reference document.

500

VPC.0202

An internal error occurs in the subnet.

Create subnet failed.

Contact technical support.

400

VPC.0203

The network segment of the subnet is not in the range of the VPC.

Subnet is not in the range of VPC.

Change the CIDR block of the subnet.

400

VPC.0204

The network segment of the subnet already exists in the VPC.

The subnet has already existed in the VPC, or has been in conflict with the VPC subnet.

Change the CIDR block of the subnet.

400

VPC.0212

Invalid subnet CIDR block.

The subnet cidr is not valid.

Check whether the subnet CIDR block is valid.

Querying a subnet

400

VPC.0201

Invalid subnet ID.

Subnet ID is invalid.

Check whether the subnet ID is valid.

404/500

VPC.0202

Failed to query the subnet.

Query subnet fail.

Contact technical support.

Querying subnets

400

VPC.0201

Failed to query the subnets.

Query subnets list error.

Check whether the parameter values are valid based on the returned error message.

500

VPC.0202

Failed to query the subnets.

List subnets error.

Contact technical support.

Deleting a subnet

400

VPC.0201

Invalid subnet ID.

Subnet ID is invalid.

Check whether the parameter values are valid based on the returned error message.

404/500

VPC.0202

An internal error occurs in the subnet.

Neutron Error.

Contact technical support.

500

VPC.0206

The subnet cannot be deleted because it is being used by the VPN.

Subnet has been used by VPN, please remove the subnet from the VPN and try again.

Delete the subnet that is used by the VPN.

400

VPC.0207

This operation is not allowed because the subnet does not belong to the VPC.

Subnet does not belong to the VPC.

Check whether the subnet is in the VPC.

500

VPC.0208

The subnet cannot be deleted because it is being used by the private IP address.

Subnet is used by private IP, can not be deleted.

Delete the private IP address of the subnet.

500

VPC.0209

The subnet cannot be deleted because it is being used by an ECS or load balancer.

Subnet is still used, such as computer, LB.

Delete the ECS or load balancer in the subnet.

500

VPC.0210

The subnet cannot be deleted because it is being used by the custom route.

Subnet has been used by routes, please remove the routes first and try again.

Delete the custom route.

500

VPC.0211

The subnet cannot be deleted because it is being used by load balancers.

subnet is still used by LBaas.

Delete load balancers in the subnet.

Updating a subnet

400

VPC.0201

Incorrect subnet parameters.

xx is invalid.

Check whether the parameter values are valid based on the returned error message.

404/500

VPC.0202

An internal error occurs in the subnet.

Neutron Error.

Contact technical support.

500

VPC.0205

The subnet cannot be updated because it is being processed.

Subnet states is invalid, please try again later.

Try again later or contact technical support.

400

VPC.0207

This operation is not allowed because the subnet does not belong to the VPC.

Subnet does not belong to the VPC.

Check whether the subnet is in the VPC.

Assigning an EIP

400

VPC.0301

The specified bandwidth parameter for assigning an EIP is invalid.

Bandwidth name or share_type is invalid.

Check whether the specified bandwidth parameter is valid.

400

VPC.0501

Invalid EIP parameters.

Bandwidth share_type is invalid.

Check whether the parameter values are valid based on the returned error message and API reference document.

403

VPC.0502

You are not allowed to assign the EIP.

Tenant status is op_restricted.

Check whether the account balance is insufficient or whether your account has been frozen.

500

VPC.0503

Failed to assign the EIP.

Creating publicIp failed.

Contact technical support.

500

VPC.0504

Failed to assign the EIP because no IP address is found.

FloatIp is null.

Contact technical support.

500

VPC.0508

Port-related resources could not be found.

Port is invalid.

Contact technical support.

409

VPC.0510

The EIP has already been bound with another ECS.

Floatingip has already associated with port.

Unbind the EIP from the ECS.

409

VPC.0511

The port has already been bound with an EIP.

Port has already associated with floatingip.

Unbind the port from the EIP.

409

VPC.0521

Insufficient EIP quota.

Quota exceeded for resources: ['floatingip'].

Release the unbound EIPs or request to increase the EIP quota.

409

VPC.0522

The IP address is invalid or in use.

The IP address is in use.

Check whether the IP address format is valid or replace it to another IP address.

409

VPC.0532

Failed to assign the IP address because no IP addresses are available.

No more IP addresses available on network.

Release unbound EIPs or try again later.

Querying an EIP

400

VPC.0501

Invalid EIP parameters.

Invalid floatingip_id.

Check whether the EIP ID is valid.

404

VPC.0504

The EIP could not be found.

Floating IP could not be found.

Check whether the specified EIP ID is valid.

500

VPC.0514

An exception occurs in the IaaS OpenStack system.

Neutron Error.

Check whether the Neutron service is normal or contact technical support.

Querying EIPs

400

VPC.0501

Invalid EIP parameters.

Invalid limit.

Check whether the parameter values are valid based on the returned error message and API reference document.

Releasing an EIP

400

VPC.0501

Invalid EIP parameters.

Invalid param.

Contact technical support.

404

VPC.0504

The EIP could not be found.

Floating IP could not be found.

Check whether the specified EIP ID is valid.

409

VPC.0512

The EIP status is abnormal.

Resource status is busy, try it again later.

Try again later or contact technical support.

500

VPC.0513

Network resources cannot be found.

getElementByKey error.

Contact technical support.

500

VPC.0516

Failed to release the EIP because it is being used by a load balancer.

Publicip is in used by ELB.

Disassociate the EIP from the load balancer.

409

VPC.0517

Failed to release the EIP because it is bound to an ECS.

Floatingip has associated with port, please disassociate it firstly.

Unbind the EIP from the ECS.

500

VPC.0518

Failed to release the EIP because it is being used by a firewall.

Public IP has firewall rules.

Contact technical support.

Updating an EIP

400

VPC.0501

Invalid EIP parameters.

Port id is invalid.

Check whether the port ID is valid.

404

VPC.0504

The EIP could not be found.

Floating IP could not be found.

Check whether the specified EIP ID is valid.

500

VPC.0509

The port has already been bound with an EIP.

Floating ip double status is invalid.

Unbind the port from the EIP.

409

VPC.0510

The EIP has already been bound with another ECS.

Floatingip has already associated with port.

Unbind the EIP from the ECS.

409

VPC.0511

Failed to bind the EIP to the ECS because another EIP has already been bound to the ECS.

Port has already associated with floatingip.

Unbind the EIP from the ECS.

409

VPC.0512

The EIP status is abnormal.

Resource status is busy, try it again later.

Try again later or contact technical support.

404/500

VPC.0514

An exception occurs in the IaaS OpenStack system.

Neutron Error.

Check whether the Neutron service is normal or contact technical support.

Querying a bandwidth

400

VPC.0301

The bandwidth parameters are incorrect.

getBandwidth error bandwidthId is invalid.

Check whether the bandwidth ID is valid.

404

VPC.0514

The bandwidth object does not exist.

No Eip bandwidth exist with id.

The bandwidth object to be queried does not exist.

500

VPC.0302

An exception occurs in the IaaS OpenStack system.

Neutron Error.

Check whether the Neutron service is normal or contact technical support.

Querying bandwidths

400

VPC.0301

The bandwidth parameters are incorrect.

Get bandwidths error limit is invalid.

Check whether the parameter values are valid based on the returned error message and API reference document.

500

VPC.0302

An exception occurs in the IaaS OpenStack system.

Neutron Error.

Check whether the Neutron service is normal or contact technical support.

Updating a bandwidth

400

VPC.0301

The bandwidth parameters are incorrect.

updateBandwidth input param is invalid.

Check whether the parameter values are valid based on the returned error message and API reference document.

500

VPC.0302

Failed to obtain underlying resources.

Neutron Error.

Check whether the Neutron service is normal or contact technical support.

500

VPC.0305

An internal error occurs during the bandwidth update.

updateBandwidth error.

Contact technical support.

Querying quotas

400

VPC.1207

The specified resource type does not exist.

resource type is invalid.

Use an existing resource type.

Assigning a private IP address.

500

VPC.0701

The private IP address already exists.

The IP has been used.

Change another private IP address and try again.

400

VPC.0705

Invalid private IP address

IP address is not a valid IP for the specified subnet.

Check whether the specified IP address in the request body is within the subnet CIDR block.

404

VPC.2204

The resource does not exist or the permission is insufficient.

Query resource by id fail.

Check whether the specified subnet in the request body exists or the current account has the permission to query the subnet.

Querying a Private IP Address

404

VPC.0704

The private IP address does not exist.

Query resource by id fail.

Check whether the private IP address exists.

Querying Private IP Addresses

400

VPC.0702

Invalid parameters.

query privateIps error.

Check whether the parameter values are valid based on the returned error message.

Releasing a Private IP Address

404

VPC.0704

The private IP address does not exist.

Query resource by id fail.

Check whether the private IP address exists.

500

VPC.0706

An error occurs when the private IP address is being released.

Delete port fail.

Try again later or contact technical support.

409

VPC.0707

The private IP address is in use.

privateIp is in use.

Check whether the private IP address is being used by other resource.

Creating a security group

400

VPC.0601

The parameters of the security group are incorrect.

Creating securitygroup name is invalid.

Check whether the parameter values are valid based on the returned error message and API reference document.

500

VPC.0602

An internal error occurs in the security group.

Add security group fail.

Check whether the Neutron service is normal or contact technical support.

Querying a security group

400

VPC.0601

The parameters of the security group are incorrect.

Securitygroup id is invalid.

Check whether the security group ID is valid.

500

VPC.0602

An internal error occurs in the security group.

Query security group fail.

Check whether the Neutron service is normal or contact technical support.

404

VPC.0603

The security group does not exist.

Securitygroup is not exit.

Check whether the security group ID is correct or whether the security group exists under the tenant.

404/500

VPC.0612

An internal error occurs in the security group.

Neutron Error.

Contact technical support.

Querying security groups

400

VPC.0601

The parameters of the security group are incorrect.

Query security groups error limit is invalid.

Check whether the parameter values are valid based on the returned error message and API reference document.

500

VPC.0602

An internal error occurs in the security group.

Query security groups fail.

Check whether the Neutron service is normal or contact technical support.

Associating multiple NIC ports to or disassociating them from a security group at a time

400

VPC.0606

Invalid security group ID.

Security group id is invalid

Use a valid security group ID.

400

VPC.0606

The request structure is missing.

Request is invalid

Use a valid request body.

400

VPC.0606

The request is empty.

Request is null

Use a valid request body.

400

VPC.0606

Invalid action value.

Action is invalid

Use a valid action value (add or remove).

400

VPC.0606

The ports are an empty list.

Ports list is empty

Use a valid ports list.

400

VPC.0606

The ports list contains invalid port IDs.

Port id is invalid

Use a valid ports list.

400

VPC.0609

The ports list contains more than 20 IDs.

Ports list exceeds limit

Use a valid ports list.

400

VPC.0606

Invalid endpoint.

Endpoint is invalid

Contact technical support.

200

VPC.0607

The security group does not exist.

Security group of this instance doesn't exist

Use a valid security group ID.

200

VPC.0607

Do not disassociate the instance from the security group when it is associated with only one security group.

An instance must belong to at least one security group

Perform other operations.

200

VPC.0608

An internal error occurs when you perform batch operations.

Neutron Error

Contact technical support.