CreateCloudRouter
1. API Description
This API is used to create a Layer 3 cloud router.
Prerequisites
Query available VPCs You can call
DescribeCloudRouterAvailableVpcsto query VPCs that can be added in to the Layer 3 cloud router.Query available border gateways You can call
DescribeBorderGatewaysto query border gateways that can be added in to the Layer 3 cloud router.Query available ports You can call
DescribeCloudRouterAvailablePortsto query ports that can be added in to the Layer 3 cloud router.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.
Query available date centers for virtual edges
You can call
DescribeVirtualEdgeDatacentersto query date centers supporting virtual edges.
Note
Only operations on pay-as-you-go cloud router are supported.
A cloud router can contains several VPCs, while a VPC can only be added into one cloud router.
This API is an async API. A cloud router ID is returned after the creation request is sent. However, it does not mean the creation has been completed. The status of the cloud router will be
DEPLOYINGduring the creation. You can useDescribeCloudRoutersto query the status of the cloud router. IfcloudRouterStatuschanges fromDEPLOYINGtoRUNNING, it means that the cloud router has been created successfully; if no result has been queried, it means the cloud router has been created failed. Any operations on the cloud router are not allowed while creating.
2. Input Parameters
The following request parameter list only provides API request parameters.
cloudRouterName
No
String
Cloud router name.
Up to 255 characters in length are allowed. The default is cloud-router-{current time}.
cloudRouterDescription
No
String
Cloud router description. Up to 255 characters in length are allowed.
edgePoints
Yes
Array of CreateCloudRouterEdgePoint
Access point information in a cloud router. At least two access points must be added to a cloud router.
resourceGroupId
No
String
Resource group ID.
If the value is null, the cloud router will be added into the default resource group.
3. Output Parameters
requestId
String
The unique request ID, which is returned for each request. RequestId is required for locating a problem.
cloudRouterId
String
Cloud router ID.
4. Code Example
Create a Layer 3 cloud router with a port and a VPC as access points. The access bandwidth 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
No error codes related to the API business logic. For other error codes, see Common Error Codes.
Last updated