This operation modifies a virtual physical connection.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| VlanId |
integer |
Yes |
The VLAN ID of the virtual physical connection. Valid values: 0 to 2999.
|
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:
|
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 |
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.