AddCloudRouterEdgePoints
1. API Description
This API is used to add one or more new access point to 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.
Note
Only operations on ports in state of
ACTIVE
are supported.This API is an async API. A request ID is returned after the request is sent. However, it does not mean the operation has been completed. The status of the cloud router will be
UPDATING
during the operation. If the cloud router state changes fromUPDATING
toRUNNING
, it means that the access point has been added.Any operations on the cloud routers are not allowed while adding access points.
2. Input Parameters
The following request parameter list only provides API request parameters.
Parameter Name | Required | Type | Description |
---|---|---|---|
cloudRouterId | Yes | String | Cloud router ID. |
edgePoints | Yes | Array of CreateCloudRouterEdgePoint | Information on access points. |
3. Output Parameters
Parameter Name | Type | Description |
---|---|---|
requestId | String | The unique request ID, which is returned for each request. RequestId is required for locating a problem. |
edgePointIds | Array of String | Access point ID. Consistent with the adding order. |
4. Code Example
Add a VPC access point to a Layer 3 cloud router with access bandwidth of 1 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.
HTTP Status Code | Error Code | Description |
---|---|---|
404 | INVALID_CLOUD_ROUTER_NOT_FOUND | Cloud router doesn't exist. |
Last updated