CreatePhysicalConnection
This API has been deprecated. We recommend migrating to Vpc(2016-04-28) - CreatePhysicalConnection for enhanced functionality and continued support. While the deprecated API remains temporarily accessible, no further updates or bug fixes will be provided.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vpc:CreatePhysicalConnection |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
DescribeRegions operation to obtain the latest list of regions. |
|
| AccessPointId |
string |
Yes |
|
|
| Type |
string |
No |
VPC, which is also the default. |
|
| LineOperator |
string |
Yes |
|
|
| bandwidth |
integer |
No |
Valid values: 2 to 10240. If you omit this parameter, the system applies the default bandwidth for the specified port type. |
|
| PeerLocation |
string |
Yes |
|
|
| PortType |
string |
No |
|
|
| RedundantPhysicalConnectionId |
string |
No |
|
|
| Description |
string |
No |
The description must be 2 to 256 characters long and cannot start with |
|
| Name |
string |
No |
The name must be 2 to 128 characters long and start with a letter. It can contain letters, digits, underscores (_), and hyphens (-). The name cannot start with |
|
| CircuitCode |
string |
No |
|
|
| ClientToken |
string |
Yes |
|
|
| ClientToken |
string |
No |
|
|
| UserCidr |
string |
No |
|
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|
||
| PhysicalConnectionId |
string |
|
|
| RequestId |
string |
|
Examples
Success response
JSON format
{
"PhysicalConnectionId": "",
"RequestId": ""
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Invalid.Status | The device or interface status invalid, or has been used.. | |
| 400 | InvalidAccessPointId.NotEnabled | Invalid access point status. | |
| 400 | InvalidType.Malformd | The Type provided was invalid. | The type is invalid. |
| 400 | InvalidPeerLocation.Malformd | The PeerLocation provided was invalid. | The specified PeerLocation parameter is invalid. |
| 400 | InvalidLineOperator.Malformd | The LineOperator provided was invalid. | The specified LineOperator parameter is invalid. |
| 400 | InvalidPortType.Malformd | The PortType provided was invalid. | The specified PortType parameter is invalid. |
| 400 | InvalidDescription.Malformed | The specifid ??Description?? is not valid. | |
| 400 | InvalidRedundantPhysicalConnectionId.NotFound | The RedundantPhysicalConnectionId does not found. | |
| 400 | InvalidName.Malformed | The specified ??Name?? is not valid. | |
| 400 | QuotaExceeded.pConnPerAP | Physical connection count per ap quota exceed. | The maximum number of physical connections per AP has been reached. |
| 400 | InvalidBandwidth | invalid physical connection banwidth. | The specified bandwidth value of the physical connection is invalid. |
| 400 | InvalidRedundantPhysicalConnection | redundant physical connection doesn't belong to current user. | |
| 400 | InvalidRedundantPhysicalConnectionStatus | invalid redundant physical connection status. | The state of the standby physical connection is invalid. |
| 400 | InvalidCircuitCode.Malformed | circuitCode is illegal. | |
| 400 | QuotaExceeded.freePconnPerAP | free physical connections count excceeded. | The free quota on physical connections has been used up. |
| 400 | InvalidPhysicalConnectionOperator.Malformed | Specified PhysicalConnection Operator is not valid. | |
| 400 | InvalidPhysicalConnectionPortType.Malformed | Specified PhysicalConnection PortType is not valid. | |
| 400 | InvalidPhysicalConnectionBandwidth.Malformed | Specified PhysicalConnection Bandwidth is not valid. | |
| 400 | IllegalParam.ClientToken | Token verify failed because client token length too long. | |
| 404 | InvalidRegionId.NotFound | The RegionId provided does not exist in our records. | Region information error |
| 404 | InvalidAccessPointId.NotFound | The AccessPointId provided does not exist in our records. | The specified AccessPointId parameter does not exist. |
| 404 | InvalidPortType.NotFound | There are no resources with the portType. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.