Scaleway logo
VPC API

Custom routes that will be pushed to your private networks resources.


Create a Route

POST
https://api.scaleway.com
/vpc/v2/regions/{region}/routes

Create a new custom Route.

Create a Route › path Parameters

region
​string · enum · required

The region you want to target

Enum values:
fr-par
it-mil
nl-ams
pl-waw

Create a Route › Request Body

description
​string

Route description.

tags
​string[]

Tags of the Route.

vpc_id
​string

VPC the Route belongs to. (UUID format)

destination
​string

Destination of the Route. (IP network)

nexthop_resource_id
​string | null

ID of the nexthop resource. (UUID format)

nexthop_private_network_id
​string | null

ID of the nexthop private network. (UUID format)

nexthop_vpc_connector_id
​string | null

ID of the nexthop VPC Connector. (UUID format)

Create a Route › Responses

200
id
​string

Route ID. (UUID format)

srn
​string

The SRN of the route.

description
​string

Route description.

tags
​string[]

Tags of the Route.

vpc_id
​string

VPC the Route belongs to. (UUID format)

destination
​string

Destination of the Route. (IP network)

nexthop_resource_id
​string | null

ID of the nexthop resource. (UUID format)

nexthop_private_network_id
​string | null

ID of the nexthop private network. (UUID format)

nexthop_vpc_connector_id
​string | null

ID of the nexthop VPC connector. (UUID format)

created_at
​string | null · date-time

Date the Route was created. (RFC 3339 format)

updated_at
​string | null · date-time

Date the Route was last modified. (RFC 3339 format)

is_read_only
​boolean

Defines whether the route can be modified or deleted by the user.

type
​scaleway.vpc.v2.RouteType · enum

Type of the Route.

Enum values:
unknown_route_type
subnet
default
custom
interlink
s2s_vpn
Default: unknown_route_type
region
​string

Region of the Route.


Get a Route

GET
https://api.scaleway.com
/vpc/v2/regions/{region}/routes/{route_id}

Retrieve details of an existing Route, specified by its Route ID.

Get a Route › path Parameters

region
​string · enum · required

The region you want to target

Enum values:
fr-par
it-mil
nl-ams
pl-waw
route_id
​string · required

Route ID. (UUID format)

Get a Route › Responses

200
id
​string

Route ID. (UUID format)

srn
​string

The SRN of the route.

description
​string

Route description.

tags
​string[]

Tags of the Route.

vpc_id
​string

VPC the Route belongs to. (UUID format)

destination
​string

Destination of the Route. (IP network)

nexthop_resource_id
​string | null

ID of the nexthop resource. (UUID format)

nexthop_private_network_id
​string | null

ID of the nexthop private network. (UUID format)

nexthop_vpc_connector_id
​string | null

ID of the nexthop VPC connector. (UUID format)

created_at
​string | null · date-time

Date the Route was created. (RFC 3339 format)

updated_at
​string | null · date-time

Date the Route was last modified. (RFC 3339 format)

is_read_only
​boolean

Defines whether the route can be modified or deleted by the user.

type
​scaleway.vpc.v2.RouteType · enum

Type of the Route.

Enum values:
unknown_route_type
subnet
default
custom
interlink
s2s_vpn
Default: unknown_route_type
region
​string

Region of the Route.


Delete a Route

DELETE
https://api.scaleway.com
/vpc/v2/regions/{region}/routes/{route_id}

Delete a Route specified by its Route ID.

Delete a Route › path Parameters

region
​string · enum · required

The region you want to target

Enum values:
fr-par
it-mil
nl-ams
pl-waw
route_id
​string · required

Route ID. (UUID format)

Delete a Route › Responses

No data returned

Update Route

PATCH
https://api.scaleway.com
/vpc/v2/regions/{region}/routes/{route_id}

Update parameters of the specified Route.

Update Route › path Parameters

region
​string · enum · required

The region you want to target

Enum values:
fr-par
it-mil
nl-ams
pl-waw
route_id
​string · required

Route ID. (UUID format)

Update Route › Request Body

description
​string | null

Route description.

tags
​array | null

Tags of the Route.

destination
​string | null

Destination of the Route. (IP network)

nexthop_resource_id
​string | null

ID of the nexthop resource. (UUID format)

nexthop_private_network_id
​string | null

ID of the nexthop private network. (UUID format)

nexthop_vpc_connector_id
​string | null

ID of the nexthop VPC connector. (UUID format)

Update Route › Responses

200
id
​string

Route ID. (UUID format)

srn
​string

The SRN of the route.

description
​string

Route description.

tags
​string[]

Tags of the Route.

vpc_id
​string

VPC the Route belongs to. (UUID format)

destination
​string

Destination of the Route. (IP network)

nexthop_resource_id
​string | null

ID of the nexthop resource. (UUID format)

nexthop_private_network_id
​string | null

ID of the nexthop private network. (UUID format)

nexthop_vpc_connector_id
​string | null

ID of the nexthop VPC connector. (UUID format)

created_at
​string | null · date-time

Date the Route was created. (RFC 3339 format)

updated_at
​string | null · date-time

Date the Route was last modified. (RFC 3339 format)

is_read_only
​boolean

Defines whether the route can be modified or deleted by the user.

type
​scaleway.vpc.v2.RouteType · enum

Type of the Route.

Enum values:
unknown_route_type
subnet
default
custom
interlink
s2s_vpn
Default: unknown_route_type
region
​string

Region of the Route.