Invokes the CreateVirtualPhysicalConnection operation to create shared Express Connect circuits.
Operation description
Before calling this operation, familiarize yourself with the creation process and environment requirements for shared Express Connect circuits. For more information, see Overview of shared Express Connect circuits and Partner operation guide.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vpc:CreateVirtualPhysicalConnection |
create |
*PhysicalConnection
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| OrderMode |
string |
Yes |
The payer of the shared Express Connect circuits. Valid values:
|
PayByVirtualPhysicalConnectionOwner |
| VlanId |
integer |
Yes |
The VLAN ID of the shared Express Connect circuits. Valid values: 0 to 2999.
|
4 |
| Spec |
string |
Yes |
The bandwidth value of the shared Express Connect circuits. 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 Mbit/s. G indicates Gbit/s. |
50M |
| VpconnAliUid |
integer |
Yes |
The Alibaba Cloud account ID of the tenant. |
1210123456123456 |
| PhysicalConnectionId |
string |
Yes |
The ID of the Express Connect circuit associated with the shared Express Connect circuits. |
pc-bp1ciz7ekd2grn1as**** |
| Name |
string |
No |
The name of the shared Express Connect circuits. The name must be 2 to 128 characters in length and must start with a letter or a Chinese character. It can contain digits, underscores (_), and hyphens (-) but cannot start with |
nametest |
| Token |
string |
No |
The client token that is used to ensure the idempotence of the request. Generate a parameter value from your client to ensure uniqueness across different requests. ClientToken supports only ASCII characters. Note
If you do not specify this parameter, the system uses the RequestId of the API request as the ClientToken. The RequestId may be different for each API request. |
CBCE910E-D396-4944-8**** |
| DryRun |
boolean |
No |
Specifies whether to perform a dry run. Valid values:
|
false |
| Description |
string |
No |
The description of the shared Express Connect circuits. The description must be 2 to 256 characters in length and must start with a letter or a Chinese character. It cannot start with |
desctest |
| RegionId |
string |
Yes |
The region ID of the shared Express Connect circuits. You can invoke the DescribeRegions operation to query the region ID. |
cn-hangzhou |
| ResourceGroupId |
string |
No |
The ID of the resource group to which the shared Express Connect circuits belong. |
rg-aekzjty2chzuqky |
| Tag |
array<object> |
No |
The list of tags. |
|
|
object |
No |
The list of tags. |
||
| Key |
string |
No |
The tag key of the resource. You can specify up to 20 tag keys. The tag key cannot be an empty string. The tag key can be up to 64 characters in length and can contain digits, periods (.), underscores (_), and hyphens (-). It cannot start with |
FinanceDept |
| Value |
string |
No |
The tag value of the resource. You can specify up to 20 tag values. The tag value can be an empty string. The tag value can be up to 128 characters in length and can contain digits, periods (.), underscores (_), and hyphens (-). It cannot start with |
FinanceJoshua |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The request ID. |
||
| RequestId |
string |
The request ID. |
CD14EA74-E9C3-59A9-942A-DFEC7E12818D |
| VirtualPhysicalConnection |
string |
The instance ID of the shared Express Connect circuits. |
pc-bp1mrgfbtmc9brre7**** |
Examples
Success response
JSON format
{
"RequestId": "CD14EA74-E9C3-59A9-942A-DFEC7E12818D",
"VirtualPhysicalConnection": "pc-bp1mrgfbtmc9brre7****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | OperationFailed.VbrBindedPconn | The operation is failed because of VbrBindedPconn. | A hosted connection is created for the VBR. |
| 400 | IllegalParam.Bandwidth | The param of Bandwidth [%s] is illegal. | The specified bandwidth value is invalid. |
| 400 | ResourceNotFound.PhysicalConnectionId | The specified PhysicalConnectionId [%s] is not found. | PhysicalConnectionId is set to an invalid value. |
| 400 | OperationFailed.VPconnCreated | The operation is failed because of VPconnCreated. | You cannot create an Express Connect circuit. |
| 400 | MissingParam.Spec | The param of Spec is missing. | The Spec parameter is not set. |
| 400 | IllegalParam.Spec | The param of Spec is illegal. | The Spec parameter is set to an invalid value. |
| 400 | IllegalParam.VlanId | The param of VlanId is illegal. | The VlanId parameter is set to an invalid value. |
| 400 | VLAN_ID_HAS_BEEN_USED_IN_PHYSICAL_CONNECTION | vlan id has been used in physical connection | |
| 400 | InvalidPhysicalConnectionId.NotFound | The specified PhysicalConnectionId is not found. | The specified Express Connect circuit ID does not exist. |
| 400 | MissingParameter | The input parameter 'PhysicalConnectionId' that is mandatory for processing this request is not supplied. | |
| 400 | InvalidPhysicalConnectionId.NotEnabled | The specified PhysicalConnectionId is not in Enabled state. | |
| 400 | OperationFailed.PconnAllocateVlan0 | The operation is failed because of PconnAllocatedResource. | |
| 400 | InvalidVlanId.Malformed | The specified VlanId is not valid. | |
| 400 | InvalidName.Malformed | The specified Name is not valid. | The Name parameter 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.VpconnAliUid | The specified AliUid of Vpconn is illegal. | The AliUid parameter of the Express Connect circuit is set to an invalid value. |
| 400 | IllegalParam.OrderMode | The param of OrderMode is illegal. | The OrderMode parameter is set to an invalid value. |
| 400 | Forbidden.VpconnAliUid | Vpconn UID is forbidden to belong to a RAM account or partner account. | The UID of a shared port cannot be the UID of a RAM user or a partner account. |
| 400 | QuotaExceeded.VPCONN | The quota of VPCONN_COUNT_PER_PCONN is exceeded | The number of shared ports created for an Express Connect circuit exceeds the upper limit. |
| 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 | InvalidDescription.Malformed | The specified Description is not valid. | Parameter Description value is illegal |
| 400 | EcAssociatedQoSPconnNotAllowCreateVpconn | The specified Pconn associated with Qos is not allowed to create Vpconn.Please contact the business manager. | Exclusive physical lines bound with QoS policies are not allowed to create shared physical lines. Please contact the business manager. |
| 400 | IllegalParam.ResourceGroupId | Invalid ResourceGroupld value. | The specified resource group is invalid or does not exist. |
| 400 | Forbidden.VpconnCrossBid | Not allow to create across bid virtual physical connection. | |
| 400 | IncorrectStatus.PhysicalConnection | Invalid physical connection status. | The Express Connect circuit is in an invalid state. |
| 400 | OperationDenied.PhysicalConnectionNotSupportMPBGPAndMPBGP-v6 | The operation is not allowed because this physical connection not support MPBGP and MPBGP-v6. | The operation is not allowed because the current physical port does not support advanced capabilities such as MPBGP and MPBGP-v6. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.