DeleteCloudRouter

1. API Description

This API is used to delete a Layer 3 cloud router.

Note

  • If you delete your cloud router, the Layer 3 network connection will be interrupted and corresponding business will stop. Please operate with caution.

  • Operations on cloud routers in state of CREATING or UPDATING are not supported.

  • Your cloud router will be stored for 2 days after deletion. See Cloud Router Deletion for more details. During this period, the state of your cloud router will change to RECYCLED. You can call RenewCloudRouter to restore it manually.

2. Input Parameters

The following request parameter list only provides API request parameters.

Parameter NameRequiredTypeDescription

cloudRouterId

Yes

String

Cloud router ID.

3. Output Parameters

Parameter NameTypeDescription

requestId

String

The unique request ID, which is returned for each request. RequestId is required for locating a problem.

4. Code Example

Delete a Layer 3 cloud router.

POST /api/v2/sdn HTTP/1.1
Host: console.zenlayer.com
Content-Type: application/json
X-ZC-Action: DeleteCloudRouter
<Common Request Params>

Request:
{
    "cloudRouterId": "your-cloud-router-id"
}

Response:
{   
  "requestId": "T98044459-95B2-477E-9A2F-00253A70CC6E",
  "response": {
     "requestId": "T98044459-95B2-477E-9A2F-00253A70CC6E"
  }
}

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