CreateCloudRouter
1. API Description
This API is used to create a Layer 3 cloud router.
Prerequisites
Query available VPCs You can call
DescribeCloudRouterAvailableVpcs
to query VPCs that can be added in to the Layer 3 cloud router.Query available ports You can call
DescribeCloudRouterAvailablePorts
to query ports that can be added in to the Layer 3 cloud router.Query available locations for public clouds
You can call
DescribeGoogleRegions
to query locations supported for Google Cloud access point.You can call
DescribeAWSRegions
to query locations supported for AWS access point.You can call
DescribeTencentRegions
to query locations supported for Tencent Cloud access point.
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
DEPLOYING
during the creation. You can useDescribeCloudRouters
to query the status of the cloud router. IfcloudRouterStatus
changes fromDEPLOYING
toRUNNING
, 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
No
Access point information in 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