dots.v2.vpcs.byVpc_Id().subnets.bySubnet_uuid().routes.get()
Generated on 5 Nov 2026
from DoTs version
v1.23.0
Usage
client.v2.vpcs.byVpc_Id(vpc_Id).subnets.bySubnet_uuid(subnet_uuid).routes.get(requestConfiguration?: RequestConfiguration<RoutesRequestBuilderGetQueryParameters>): Promise<undefined | RoutesGetResponse>Description
To list routes for a VPC subnet, send a GET request to
/v2/vpcs/{vpc_uuid}/subnets/{subnet_uuid}/routes. The response includes
VPC-scoped routes propagated into the subnet and subnet-scoped routes.
Parameters
Path Parameters
vpc_Idstring requiredExample:
997615ce-132d-4bae-9270-9ee21b395e5dThe unique identifier of the VPC.
subnet_uuidstring requiredExample:
4de7ac8b-495b-4884-9a69-1050c6793cd6The unique identifier of the VPC subnet.
Query Parameters
perPageinteger optionalExample:
2Number of items returned per page
pageinteger optionalExample:
1Which 'page' of paginated results to return.
Request Sample
Pagination
This method returns paginated results. The response includes a links.pages object with URLs for navigating between pages. To retrieve the next page, parse the next URL and pass the page query parameter:
let response = await client.v2.vpcs
.byVpc_Id("997615ce-132d-4bae-9270-9ee21b395e5d").subnets
.bySubnet_uuid("4de7ac8b-495b-4884-9a69-1050c6793cd6").routes.get();
let pages = response?.links?.pages;
while (pages && "next" in pages && typeof pages.next === "string") {
const page = Number(new URL(pages.next).searchParams.get("page"));
response = await client.v2.vpcs
.byVpc_Id("997615ce-132d-4bae-9270-9ee21b395e5d").subnets
.bySubnet_uuid("4de7ac8b-495b-4884-9a69-1050c6793cd6").routes.get({
queryParameters: {
page,
},
});
pages = response?.links?.pages;
}Response Example
More Information
See /v2/vpcs/{vpc_uuid}/subnets/{subnet_uuid}/routes in the API reference for additional detail on responses, headers, parameters, and more.