CreatePrivateConnect
1. API Description
This API is used to create a Layer 2 private connect.
Prerequisites
Query available ports You can call
DescribePrivateConnectAvailablePortsto query ports that can be added in to the Layer 2 private connect.Query available locations for public clouds
You can call
DescribeGoogleRegionsto query locations supporting for Google Cloud access point.You can call
DescribeAWSRegionsto query locations supporting for AWS access point.You can call
DescribeTencentRegionsto query locations supporting for Tencent Cloud access point.
Cloud Connect access bandwidth will be automatically adjusted to the nearest cap higher than the backbone bandwidth. If you need to configure Cloud Connect access bandwidth separately, you can call
DescribeCloudAvailableBandwidthTiersto query available cloud connect access bandwidth specifications.
Note
Only operations on pay-as-you-go private connects billed by flat rate are supported.
Please view Connections Validation on Public Cloud for more details.
This API is an async API. A private connect ID is returned after the creation request is sent. However, it does not mean the creation has been completed. The status of the private connect will be
DEPLOYINGduring the creation. You can useDescribePrivateConnectsto query the status of the private connect. If the status changes fromDEPLOYINGtoAVAILABLE, it means that the private connect has been created successfully; if no result has been queried, it means the private connect has been created failed. Any operations on the private connect are not allowed while creating.
2. Input Parameters
The following request parameter list only provides API request parameters.
privateConnectName
No
String
Private connect name.
Up to 255 characters in length are allowed. The default is private-connect-{current time}.
bandwidthMbps
No
Integer
Maximum bandwidth cap of the private connect, ranging from 1 to 500. Default value: 1
Unit: Mbps
resourceGroupId
No
String
Resource group ID.
If the value is null, then return all the private connects in the authorized resource groups.
3. Output Parameters
requestId
String
The unique request ID, which is returned for each request. RequestId is required for locating a problem.
privateConnectId
String
Private connect ID.
4. Code Example
Create a Layer 2 private connect with ports as both access point A and access point Z. The bandwidth cap is 10 Mbps.
5. Developer Resources
Zenlayer Cloud API 2.0 integrates SDKs to make it easier for you to call APIs. More programming languages will be supported.
6. Error Codes
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
404
INVALID_PORT_NOT_FOUND
Port does not exist.
400
INVALID_PORT_STATUS
The state of port should be Available.
400
INVALID_ENDPOINT_PARAMETER
Invalid access point type.
400
INVALID_CONNECT_ENDPOINT_CONFLICT
Duplicated access point A and Z.
Last updated