UpdateVirtualPhysicalConnection

更新时间:
复制 MD 格式

This operation modifies a virtual physical connection.

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

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

VlanId

integer

Yes

The VLAN ID of the virtual physical connection. Valid values: 0 to 2999.

  • If you set the VLAN ID to 0, the physical switch port of the Virtual Border Router (VBR) operates in Layer 3 routed interface mode. In this mode, one physical connection corresponds to one VBR.

  • If you set the VLAN ID to a value from 1 to 2999, the physical switch port of the VBR uses a VLAN-based Layer 3 subinterface. In this mode, each VLAN ID corresponds to one VBR. The physical connection can be attached to VPCs that belong to different accounts. VBRs in different VLANs are isolated at Layer 2 and cannot communicate with each other.

1

InstanceId

string

Yes

The ID of the virtual physical connection instance.

pc-bp1mrgfbtmc9brre7****

Token

string

No

The client token that ensures the idempotence of the request.

A client-generated value that must be unique across 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 request as the ClientToken. The RequestId is different for each request.

CBCE910E-D396-4944-8****

DryRun

boolean

No

Specifies whether to perform a dry run. Valid values:

  • true: Performs a dry run to check for required parameters, the request format, and the instance status. The VLAN ID of the virtual physical connection is not modified. If the check fails, an error message is returned. If it passes, the request ID is returned.

  • false (default): Sends the request. If the check passes, the VLAN ID of the virtual physical connection is modified.

false

ExpectSpec

string

No

The expected bandwidth of the virtual physical connection. The new bandwidth takes effect only after the payment is complete.

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

Note

Bandwidth settings of 2G, 5G, 8G, and 10G are not enabled by default. To use these settings, contact your account manager.

Units: M indicates Mbps and G indicates Gbps.

50M

RegionId

string

Yes

The ID of the region where the virtual physical connection is deployed.

You can call the DescribeRegions operation to obtain region IDs.

cn-hangzhou

Response elements

Element

Type

Description

Example

object

The response object.

RequestId

string

The request ID.

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

Success

string

Indicates whether the VLAN ID of the virtual physical connection was 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.