CreatePrivateConnect
1. API Description
This API is used to create a Layer 2 private connect.
Prerequisites
You can call DescribePrivateConnectAvailablePorts
to query ports that can be added in to the Layer 2 private connect.
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