By default, all routes across the Site-to-Site VPN (between VPN gateway and customer gateway) are blocked. Routing policies allow you to set filters to define the IP prefixes to allow.
List routing policies
List all routing policies in a given region. A routing policy can be attached to one or multiple connections (S2S VPN connections).
path Parameters
regionThe region you want to target
query Parameters
pagePage number to return.
page_sizeMaximum number of routing policies to return per page.
order_byOrder in which to return results.
project_idProject ID to filter for. (UUID format)
organization_idOrganization ID to filter for. (UUID format)
nameRouting policy name to filter for.
tagsTags to filter for.
ipv6Filter for the routing policies based on IP prefixes version.
List routing policies › Responses
total_countCreate a routing policy
Create a routing policy. Routing policies allow you to set IP prefix filters to define the incoming route announcements to accept from the customer gateway, and the outgoing routes to announce to the customer gateway.
path Parameters
regionThe region you want to target
Create a routing policy › Request Body
project_idID of the Project to create the routing policy in. (UUID format)
nameName of the routing policy.
tagsList of tags to apply to the routing policy.
is_ipv6IP prefixes version of the routing policy.
prefix_filter_inIP prefixes to accept from the peer (ranges of route announcements to accept). (IP network)
prefix_filter_outIP prefix filters to advertise to the peer (ranges of routes to advertise). (IP network)
Create a routing policy › Responses
idUnique identifier of the routing policy. (UUID format)
project_idProject ID. (UUID format)
organization_idOrganization ID. (UUID format)
nameName of the routing policy.
tagsList of tags associated with the routing policy.
created_atCreation date of the routing policy. (RFC 3339 format)
updated_atLast modification date of the routing policy. (RFC 3339 format)
is_ipv6IP prefixes version of the routing policy.
prefix_filter_inIP prefixes to accept from the peer (ranges of route announcements to accept). (IP network)
prefix_filter_outIP prefix filters to advertise to the peer (ranges of routes to advertise). (IP network)
regionRegion of the routing policy.
Get routing policy
Get a routing policy for the given routing policy ID. The response object gives information including the policy's name, tags and prefix filters.
path Parameters
regionThe region you want to target
routing_policy_idID of the routing policy to get. (UUID format)
Get routing policy › Responses
idUnique identifier of the routing policy. (UUID format)
project_idProject ID. (UUID format)
organization_idOrganization ID. (UUID format)
nameName of the routing policy.
tagsList of tags associated with the routing policy.
created_atCreation date of the routing policy. (RFC 3339 format)
updated_atLast modification date of the routing policy. (RFC 3339 format)
is_ipv6IP prefixes version of the routing policy.
prefix_filter_inIP prefixes to accept from the peer (ranges of route announcements to accept). (IP network)
prefix_filter_outIP prefix filters to advertise to the peer (ranges of routes to advertise). (IP network)
regionRegion of the routing policy.
Delete a routing policy
Delete an existing routing policy, specified by its routing policy ID.
path Parameters
regionThe region you want to target
routing_policy_idID of the routing policy to delete. (UUID format)
Delete a routing policy › Responses
Update a routing policy
Update an existing routing policy, specified by its routing policy ID. Its name, tags and incoming/outgoing prefix filters can be updated.
path Parameters
regionThe region you want to target
routing_policy_idID of the routing policy to update. (UUID format)
Update a routing policy › Request Body
nameName of the routing policy.
tagsList of tags to apply to the routing policy.
prefix_filter_inIP prefixes to accept from the peer (ranges of route announcements to accept).
prefix_filter_outIP prefix filters for routes to advertise to the peer (ranges of routes to advertise).
Update a routing policy › Responses
idUnique identifier of the routing policy. (UUID format)
project_idProject ID. (UUID format)
organization_idOrganization ID. (UUID format)
nameName of the routing policy.
tagsList of tags associated with the routing policy.
created_atCreation date of the routing policy. (RFC 3339 format)
updated_atLast modification date of the routing policy. (RFC 3339 format)
is_ipv6IP prefixes version of the routing policy.
prefix_filter_inIP prefixes to accept from the peer (ranges of route announcements to accept). (IP network)
prefix_filter_outIP prefix filters to advertise to the peer (ranges of routes to advertise). (IP network)
regionRegion of the routing policy.