VPC Routes
[BETA] Create and manipulate routing rules
create-route
[BETA] Create a route
POST /vpc/{vpc-id}/subnet/{subnet-id}/routePath parameters
| Name | In | Description |
|---|---|---|
vpc-id | path | Must be a valid UUID. |
subnet-id | path | Must be a valid UUID. |
Request body
Content-Type: application/json
| Property | Type | Required | Description |
|---|---|---|---|
destination | string | yes | Route destination CIDR |
target | string | yes | Route target |
description | string | no | Route description Max length: 4096. |
Example
{
"description": "string",
"destination": "string",
"target": "string"
}Responses
Status: 200 - 200
Content-Type: application/json
| Property | Type | Description |
|---|---|---|
description | string | Route description Max length: 4096. |
destination | string | Route destination CIDR |
id | string | Route ID Must be a valid UUID. |
kind | string | Route kind Allowed values: Subnet, Vpc. |
target | string | Route target |
Example output
{
"description": "string",
"destination": "string",
"id": "string",
"kind": "Subnet",
"target": "string"
}SDK reference for create-route: golang | Python | Java
CLI: exo api create-route
delete-route
[BETA] Delete a route
DELETE /vpc/{vpc-id}/subnet/{subnet-id}/route/{id}Path parameters
| Name | In | Description |
|---|---|---|
vpc-id | path | Must be a valid UUID. |
subnet-id | path | Must be a valid UUID. |
id | path | Must be a valid UUID. |
Responses
Status: 204 - 204
SDK reference for delete-route: golang | Python | Java
CLI: exo api delete-route
Other Operations
list-routes
[BETA] List Subnet routes
GET /vpc/{vpc-id}/subnet/{subnet-id}/routePath parameters
| Name | In | Description |
|---|---|---|
vpc-id | path | Must be a valid UUID. |
subnet-id | path | Must be a valid UUID. |
Responses
Status: 200 - 200
Content-Type: application/json
| Property | Type | Description |
|---|---|---|
routes | array of Route |
Example output
{
"routes": [
{
"description": "string",
"destination": "string",
"id": "string",
"kind": "Subnet",
"target": "string"
}
]
}SDK reference for list-routes: golang | Python | Java
CLI: exo api list-routes
list-vpc-routes
[BETA] List VPC routes
GET /vpc/{vpc-id}/routePath parameters
| Name | In | Description |
|---|---|---|
vpc-id | path | Must be a valid UUID. |
Responses
Status: 200 - 200
Content-Type: application/json
| Property | Type | Description |
|---|---|---|
routes | array of Route |
Example output
{
"routes": [
{
"description": "string",
"destination": "string",
"id": "string",
"kind": "Subnet",
"target": "string"
}
]
}SDK reference for list-vpc-routes: golang | Python | Java
CLI: exo api list-vpc-routes
Last updated on