All Products
Search
Document Center

Virtual Private Cloud:UpdateVirtualPhysicalConnection

Last Updated:Mar 22, 2024

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

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

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
vpc:UpdateVirtualPhysicalConnectionWrite
  • PhysicalConnection
    acs:vpc:{#regionId}:{#accountId}:physicalconnection/{#physicalconnectionId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
VlanIdlongYes

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.
1
InstanceIdstringYes

The ID of the hosted connection over Express Connect circuit.

pc-bp1mrgfbtmc9brre7****
TokenstringNo

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.
CBCE910E-D396-4944-8****
DryRunbooleanNo

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.
false
ExpectSpecstringNo

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.

50M
RegionIdstringYes

The region ID of the hosted connection.

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

cn-hangzhou

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The request ID.

7035627E-1C1D-5BC7-A830-F897A35912D1
Successstring

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

  • true
  • false
true

Examples

Sample success responses

JSONformat

{
  "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.
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.
400OperationDenied.CreateVpconnYou are not allowed to create virtual physical connection. Please contact your CBM.If you do not have permission to create a shared line, please contact the business manager.

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

Change history

Change timeSummary of changesOperation
2023-12-21The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    Error Codes 400 change
2021-11-16The Error code has changed. The request parameters of the API has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400
Input ParametersThe request parameters of the API has changed.
    Added Input Parameters: ExpectSpec
2021-09-27Add Operationsee changesets