UpdateVirtualPhysicalConnection

Updated at:

Invokes the UpdateVirtualPhysicalConnection operation to modify the information about shared Express Connect circuits.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

vpc:UpdateVirtualPhysicalConnection

update

*PhysicalConnection

acs:vpc:{#regionId}:{#accountId}:physicalconnection/{#physicalconnectionId}

None None

Request parameters

Parameter

Type

Required

Description

Example

VlanId

integer

Yes

The VLAN ID of the shared Express Connect circuits. Valid values: 0 to 2999.

  • If the VLAN ID is set to 0, the physical vSwitch port of the Virtual Border vRouter (VBR) does not use the VLAN mode, but uses the Layer 3 routing interface mode. In the Layer 3 routing interface mode, each Express Connect circuit corresponds to one VBR.

  • If the VLAN ID is set to a value from 1 to 2999, the physical vSwitch port of the VBR uses a VLAN-based Layer 3 sub-interface. In the Layer 3 sub-interface mode, each VLAN ID corresponds to one VBR. In this case, the Express Connect circuit of the VBR can be used to connect VPCs that belong to different accounts. VBRs in different VLANs have Layer 2 network isolation and cannot communicate with each other.

1

InstanceId

string

Yes

The instance ID of the shared Express Connect circuits.

pc-bp1mrgfbtmc9brre7****

Token

string

No

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

You can generate a parameter value on your client to ensure that the value 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 RequestId of the API request as the ClientToken. The RequestId of each API request may be different.

CBCE910E-D396-4944-8****

DryRun

boolean

No

Specifies whether to perform a dry run on the request. Valid values:

  • true: sends a check request and does not modify the VLAN ID of the shared Express Connect circuits. The system checks whether the required parameters are specified, the request format is valid, and the instance status is normal. If the request fails the dry run, an error message is returned. If the request passes the dry run, the ID of the request is returned.

  • false (default): sends a normal request and directly modifies the VLAN ID of the shared Express Connect circuits if the request passes the check.

false

ExpectSpec

string

No

The expected bandwidth of the shared Express Connect circuits. The bandwidth takes effect only after the payment is completed.

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

Note

The bandwidth values 2G, 5G, 8G, and 10G are not available by default. To use these values, contact your account manager.

Unit: M indicates Mbps, and G indicates Gbps.

50M

RegionId

string

Yes

The region ID of the shared Express Connect circuits.

You can invoke the DescribeRegions operation to query region IDs.

cn-hangzhou

Response elements

Element

Type

Description

Example

object

The response.

RequestId

string

The request ID.

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

Success

string

Indicates whether the VLAN ID of the shared Express Connect circuits is successfully modified.

  • true: The VLAN ID was modified.

  • false: The VLAN ID was not modified.

true

Examples

Success response

JSON format

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

Error codes

HTTP status code

Error code

Error message

Description

400 IllegalParam.VlanId The param of VlanId is illegal. The VlanId parameter is set to an invalid value.
400 ResourceNotFound.PhysicalConnectionId The specified PhysicalConnectionId [%s] is not found. PhysicalConnectionId is set to an invalid value.
400 ResourceNotEnough.Bandwidth The specified resource of Bandwidth is not enough. The specified resource of Bandwidth is insufficient.
400 IllegalParam.Bandwidth The param of bandwidth is illegal. The Bandwidth parameter is set to an invalid value.
400 Forbidden.PhysicalConnection Only 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.
400 OperationFailed.PhysicalConnectionFinancialLocked Update failed, the physical connection is financial locked. The shared port is locked due to overdue payments and you cannot modify the VLAN.
400 OperationFailed.PhysicalConnectionTerminated Update failed, the physical connection is terminated. The shared port is disabled and you cannot modify the VLAN.
400 OperationDenied.CreateVpconn You 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.
400 IncorrectStatus.VBR The status of VBR is incorrect. The operation failed because the status of the VBR is invalid.
400 IllegalParam.Spec The param of Spec is illegal. The Spec parameter is set to an invalid value.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.