All Products
Document Center

Virtual Private Cloud:UpdateVirtualPhysicalConnection

Last Updated:Dec 06, 2023

Changes the virtual local area network (VLAN) ID of a hosted connection over Express Connect circuit.


You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.


Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
  • PhysicalConnection

Request parameters


The VLAN ID of the hosted connection over Express Connect circuit. Valid values: 0 to 2999.

  • If the VLAN ID is set to 0, it indicates that the switch port of the virtual border router (VBR) is a Layer 3 router interface instead of a VLAN interface. When a Layer 3 router interface is used, each Express Connect circuit corresponds to a VBR.
  • If the VLAN ID is set to a value from 1 to 2999, the switch port of the VBR is a Layer 3 VLAN subinterface. When a Layer 3 VLAN subinterface is used, each VLAN ID corresponds to one VBR. In this case, the Express Connect circuit with which the VBR is associated can be used to connect to virtual private clouds (VPCs) that belong to different Alibaba Cloud accounts. VBRs in different VLANs are isolated from each other at Layer 2.

The ID of the hosted connection over Express Connect circuit.


The client token that is used to ensure the idempotence of the request.

You can use the client to generate the token, but you must make sure that the token is unique among different requests. The client token can contain only ASCII characters.

Note If you do not specify this parameter, the system automatically uses the request ID as the client token. The request ID may be different for each request.

Specifies whether to perform only a dry run, without performing the actual request. Valid values: Valid values:

  • true: performs only a dry run. The system checks the request for potential issues, including required parameters, request syntax, and instance status. If the request fails to pass the dry run, an error message is returned. If the request passes the dry run, the system returns the ID of the request.
  • false (default): performs a dry run and performs the actual request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed.

The estimated bandwidth value of the hosted connection. The estimated bandwidth value takes effect only after the payment is completed.

Valid values: 50M, 100M, 200M, 300M, 400M, 500M, 1G, 2G, 5G, 8G, and 10G.

Note 2G, 5G, 8G, and 10G are unavailable by default. If you want to use these bandwidth values, contact your account manager.

M indicates Mbit/s and G indicates Gbit/s.


The region ID of the hosted connection.

You can call the DescribeRegions operation to obtain the region ID.


Response parameters


The response parameters.


The request ID.


Indicates whether the VLAN ID of the hosted connection is changed. Valid values:

  • true
  • false


Sample success responses


  "RequestId": "7035627E-1C1D-5BC7-A830-F897A35912D1",
  "Success": "true"

Error codes

HTTP status codeError codeError messageDescription
400IllegalParam.VlanIdThe param of VlanId is illegal.The VlanId parameter is set to an invalid value.
400ResourceNotFound.PhysicalConnectionIdThe specified PhysicalConnectionId [%s] is not found.PhysicalConnectionId is set to an invalid value.
400ResourceNotEnough.BandwidthThe specified resource of Bandwidth is not enough.The specified resource of Bandwidth is insufficient.
400IllegalParam.BandwidthThe param of bandwidth is illegal.The Bandwidth parameter is set to an invalid value.
400OperationDenied.CreateVpconnYou are not allowed to create virtual physical connection. Please contact you CBM.You do not have the permissions to create a hosted connection. Contact your sales manager.
400Forbidden.PhysicalConnectionOnly parent physical connection account is allowed to modify the virtual physical connection.You can modify only the physical port to which the shared port belongs.
400OperationFailed.PhysicalConnectionFinancialLockedUpdate failed, the physical connection is financial locked.The shared port is locked due to overdue payments and you cannot modify the VLAN.
400OperationFailed.PhysicalConnectionTerminatedUpdate failed, the physical connection is terminated.The shared port is disabled and you cannot modify the VLAN.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2021-11-16The error codes of the API operation change.,The input parameters of the API operation change.see changesets
Change itemChange content
Error CodesThe error codes of the API operation change.
    delete Error Codes: 400
Input ParametersThe input parameters of the API operation change.
    Added Input Parameters: ExpectSpec
2021-09-27Add Operationsee changesets