Scaleway logo
Site-to-Site VPN

A connection represents the IPsec tunnel between VPN gateway and customer gateway.


List connections

GET
https://api.scaleway.com
/s2s-vpn/v1alpha1/regions/{region}/connections

List all your connections. A number of filters are available, including Project ID, name, tags and status.

List connections › path Parameters

region
​string · enum · required

The region you want to target

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

List connections › query Parameters

page
​integer · int32

Page number to return.

page_size
​integer · uint32

Maximum number of connections to return per page.

Order in which to return results.

Enum values:
created_at_asc
created_at_desc
name_asc
name_desc
status_asc
status_desc
Default: created_at_asc
project_id
​string

Project ID to filter for. (UUID format)

organization_id
​string

Organization ID to filter for. (UUID format)

name
​string

Connection name to filter for.

tags
​string[]

Tags to filter for.

Connection statuses to filter for.

Enum values:
unknown_status
active
limited_connectivity
down
locked
is_ipv6
​boolean

Filter connections with IP version of IPSec tunnel.

routing_policy_ids
​string[]

Filter for connections using these routing policies.

route_propagation_enabled
​boolean

Filter for connections with route propagation enabled.

vpn_gateway_ids
​string[]

Filter for connections attached to these VPN gateways.

customer_gateway_ids
​string[]

Filter for connections attached to these customer gateways.

List connections › Responses

200

List of connections on the current page.

total_count
​integer · uint64

Total number of connections.


Create a connection

POST
https://api.scaleway.com
/s2s-vpn/v1alpha1/regions/{region}/connections

Create a connection › path Parameters

region
​string · enum · required

The region you want to target

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

Create a connection › Request Body

project_id
​string · required

ID of the Project to create the connection in. (UUID format)

name
​string · required

Name of the connection.

initiation_policy
​scaleway.s2s_vpn.v1alpha1.CreateConnectionRequest.InitiationPolicy · enum · required

Who initiates the IPsec tunnel.

Enum values:
unknown_initiation_policy
vpn_gateway
customer_gateway
Default: unknown_initiation_policy
​scaleway.s2s_vpn.v1alpha1.Connection.Cipher[] · required

List of IKE v2 ciphers proposed for the IPsec tunnel.

​scaleway.s2s_vpn.v1alpha1.Connection.Cipher[] · required

List of ESP ciphers proposed for the IPsec tunnel.

vpn_gateway_id
​string · required

ID of the VPN gateway to attach to the connection. (UUID format)

customer_gateway_id
​string · required

ID of the customer gateway to attach to the connection. (UUID format)

tags
​string[]

List of tags to apply to the connection.

is_ipv6
​boolean

Defines IP version of the IPSec Tunnel.

enable_route_propagation
​boolean

Defines whether route propagation is enabled or not.

Previously created secret in Secret Manager containing the PSK to be used for the IPsec tunnel. If no secret is given, S2S VPN will create one automatically in Secret Manager, reference its secret_id and version in the connection and use the generated PSK. Secret version is also optional and maybe used to refer to a previous version. If no version is given, "latest" is used.

BGP config of IPv4 session, including interco private IPv4 subnet (first IP assigned to the VPN Gateway, second IP to the Customer Gateway) and attached routing policy.

BGP config of IPv6 session, including interco private IPv6 subnet (first IP assigned to the VPN Gateway, second IP to the Customer Gateway) and attached routing policy.

Create a connection › Responses

200

This connection.


Get a connection

GET
https://api.scaleway.com
/s2s-vpn/v1alpha1/regions/{region}/connections/{connection_id}

Get a connection for the given connection ID. The response object includes information about the connection's various configuration details.

Get a connection › path Parameters

region
​string · enum · required

The region you want to target

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

ID of the requested connection. (UUID format)

Get a connection › Responses

200
id
​string

Unique identifier of the connection. (UUID format)

srn
​string · pattern: ^srn://s2s-vpn\.[^/]…

The SRN of the connection.

project_id
​string

Project ID. (UUID format)

organization_id
​string

Organization ID. (UUID format)

name
​string

Name of the connection.

tags
​string[]

List of tags applied to the connection.

created_at
​string | null · date-time

Creation date of the connection. (RFC 3339 format)

updated_at
​string | null · date-time

Last modification date of the connection. (RFC 3339 format)

status
​scaleway.s2s_vpn.v1alpha1.Connection.Status · enum

Status of the connection.

Enum values:
unknown_status
active
limited_connectivity
down
locked
Default: unknown_status
is_ipv6
​boolean

IP version of the IPSec Tunnel.

initiation_policy
​scaleway.s2s_vpn.v1alpha1.Connection.InitiationPolicy · enum

Who initiates the IPsec tunnel.

Enum values:
unknown_initiation_policy
vpn_gateway
customer_gateway
Default: unknown_initiation_policy
secret_id
​string

ID of the secret in Secret Manager which contains the PSK. (UUID format)

secret_revision
​integer · uint32

Version number of the secret in Secret Manager which contains the PSK.

List of IKE v2 ciphers proposed for the IPsec tunnel.

List of ESP ciphers proposed for the IPsec tunnel.

route_propagation_enabled
​boolean

Defines whether route propagation is enabled or not.

vpn_gateway_id
​string

ID of the VPN gateway attached to the connection. (UUID format)

customer_gateway_id
​string

ID of the customer gateway attached to the connection. (UUID format)

tunnel_status
​scaleway.s2s_vpn.v1alpha1.TunnelStatus · enum

Status of the IPsec tunnel.

Enum values:
unknown_tunnel_status
up
down
Default: unknown_tunnel_status
bgp_status_ipv4
​scaleway.s2s_vpn.v1alpha1.BgpSession.Status · enum

Status of the BGP IPv4 session.

Enum values:
unknown_status
up
down
disabled
Default: unknown_status
bgp_status_ipv6
​scaleway.s2s_vpn.v1alpha1.BgpSession.Status · enum

Status of the BGP IPv6 session.

Enum values:
unknown_status
up
down
disabled
Default: unknown_status
​scaleway.s2s_vpn.v1alpha1.BgpSession

BGP IPv4 session, including status, interco private IPv4 subnet and attached routing policy.

​scaleway.s2s_vpn.v1alpha1.BgpSession

BGP IPv6 session, including status, interco private IPv6 subnet and attached routing policy.

region
​string

Region of the connection.


Update a connection

PATCH
https://api.scaleway.com
/s2s-vpn/v1alpha1/regions/{region}/connections/{connection_id}

Update an existing connection, specified by its connection ID.

Update a connection › path Parameters

region
​string · enum · required

The region you want to target

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

ID of the connection to update. (UUID format)

Update a connection › Request Body

name
​string | null

Name of the connection.

tags
​array | null

List of tags to apply to the connection.

Who initiates the IPsec tunnel.

Enum values:
unknown_initiation_policy
vpn_gateway
customer_gateway
Default: unknown_initiation_policy

List of IKE v2 ciphers proposed for the IPsec tunnel.

List of ESP ciphers proposed for the IPsec tunnel.

secret_id
​string | null

Secret ID in the client's project containing the PSK. (UUID format)

secret_revision
​integer | null · uint32

Secret version in the client's project containing the PSK. If not given it will not change. If secret_id is updated, secret_revision should be set accordingly.

Update a connection › Responses

200
id
​string

Unique identifier of the connection. (UUID format)

srn
​string · pattern: ^srn://s2s-vpn\.[^/]…

The SRN of the connection.

project_id
​string

Project ID. (UUID format)

organization_id
​string

Organization ID. (UUID format)

name
​string

Name of the connection.

tags
​string[]

List of tags applied to the connection.

created_at
​string | null · date-time

Creation date of the connection. (RFC 3339 format)

updated_at
​string | null · date-time

Last modification date of the connection. (RFC 3339 format)

status
​scaleway.s2s_vpn.v1alpha1.Connection.Status · enum

Status of the connection.

Enum values:
unknown_status
active
limited_connectivity
down
locked
Default: unknown_status
is_ipv6
​boolean

IP version of the IPSec Tunnel.

initiation_policy
​scaleway.s2s_vpn.v1alpha1.Connection.InitiationPolicy · enum

Who initiates the IPsec tunnel.

Enum values:
unknown_initiation_policy
vpn_gateway
customer_gateway
Default: unknown_initiation_policy
secret_id
​string

ID of the secret in Secret Manager which contains the PSK. (UUID format)

secret_revision
​integer · uint32

Version number of the secret in Secret Manager which contains the PSK.

List of IKE v2 ciphers proposed for the IPsec tunnel.

List of ESP ciphers proposed for the IPsec tunnel.

route_propagation_enabled
​boolean

Defines whether route propagation is enabled or not.

vpn_gateway_id
​string

ID of the VPN gateway attached to the connection. (UUID format)

customer_gateway_id
​string

ID of the customer gateway attached to the connection. (UUID format)

tunnel_status
​scaleway.s2s_vpn.v1alpha1.TunnelStatus · enum

Status of the IPsec tunnel.

Enum values:
unknown_tunnel_status
up
down
Default: unknown_tunnel_status
bgp_status_ipv4
​scaleway.s2s_vpn.v1alpha1.BgpSession.Status · enum

Status of the BGP IPv4 session.

Enum values:
unknown_status
up
down
disabled
Default: unknown_status
bgp_status_ipv6
​scaleway.s2s_vpn.v1alpha1.BgpSession.Status · enum

Status of the BGP IPv6 session.

Enum values:
unknown_status
up
down
disabled
Default: unknown_status
​scaleway.s2s_vpn.v1alpha1.BgpSession

BGP IPv4 session, including status, interco private IPv4 subnet and attached routing policy.

​scaleway.s2s_vpn.v1alpha1.BgpSession

BGP IPv6 session, including status, interco private IPv6 subnet and attached routing policy.

region
​string

Region of the connection.


Delete a connection

DELETE
https://api.scaleway.com
/s2s-vpn/v1alpha1/regions/{region}/connections/{connection_id}

Delete an existing connection, specified by its connection ID.

Delete a connection › path Parameters

region
​string · enum · required

The region you want to target

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

ID of the connection to delete. (UUID format)

Delete a connection › Responses

No data returned

Change pre-shared key

POST
https://api.scaleway.com
/s2s-vpn/v1alpha1/regions/{region}/connections/{connection_id}/change-psk

Change pre-shared key for a given connection.

Change pre-shared key › path Parameters

region
​string · enum · required

The region you want to target

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

ID of the connection to renew the PSK. (UUID format)

Change pre-shared key › Request Body

New PSK Secret of the connection.

Change pre-shared key › Responses


Detach a routing policy

POST
https://api.scaleway.com
/s2s-vpn/v1alpha1/regions/{region}/connections/{connection_id}/detach-routing-policy

Detach an existing routing policy from a connection, specified by its connection ID.

Detach a routing policy › path Parameters

region
​string · enum · required

The region you want to target

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

ID of the connection from which routing policy is being detached. (UUID format)

Detach a routing policy › Request Body

routing_policy_v4
​string | null

ID of the routing policy to detach from the BGP IPv4 session. (UUID format) Precisely one of routing_policy_v4, routing_policy_v6 can be set.

routing_policy_v6
​string | null

ID of the routing policy to detach from the BGP IPv6 session. (UUID format) Precisely one of routing_policy_v4, routing_policy_v6 can be set.

Detach a routing policy › Responses

200
id
​string

Unique identifier of the connection. (UUID format)

srn
​string · pattern: ^srn://s2s-vpn\.[^/]…

The SRN of the connection.

project_id
​string

Project ID. (UUID format)

organization_id
​string

Organization ID. (UUID format)

name
​string

Name of the connection.

tags
​string[]

List of tags applied to the connection.

created_at
​string | null · date-time

Creation date of the connection. (RFC 3339 format)

updated_at
​string | null · date-time

Last modification date of the connection. (RFC 3339 format)

status
​scaleway.s2s_vpn.v1alpha1.Connection.Status · enum

Status of the connection.

Enum values:
unknown_status
active
limited_connectivity
down
locked
Default: unknown_status
is_ipv6
​boolean

IP version of the IPSec Tunnel.

initiation_policy
​scaleway.s2s_vpn.v1alpha1.Connection.InitiationPolicy · enum

Who initiates the IPsec tunnel.

Enum values:
unknown_initiation_policy
vpn_gateway
customer_gateway
Default: unknown_initiation_policy
secret_id
​string

ID of the secret in Secret Manager which contains the PSK. (UUID format)

secret_revision
​integer · uint32

Version number of the secret in Secret Manager which contains the PSK.

List of IKE v2 ciphers proposed for the IPsec tunnel.

List of ESP ciphers proposed for the IPsec tunnel.

route_propagation_enabled
​boolean

Defines whether route propagation is enabled or not.

vpn_gateway_id
​string

ID of the VPN gateway attached to the connection. (UUID format)

customer_gateway_id
​string

ID of the customer gateway attached to the connection. (UUID format)

tunnel_status
​scaleway.s2s_vpn.v1alpha1.TunnelStatus · enum

Status of the IPsec tunnel.

Enum values:
unknown_tunnel_status
up
down
Default: unknown_tunnel_status
bgp_status_ipv4
​scaleway.s2s_vpn.v1alpha1.BgpSession.Status · enum

Status of the BGP IPv4 session.

Enum values:
unknown_status
up
down
disabled
Default: unknown_status
bgp_status_ipv6
​scaleway.s2s_vpn.v1alpha1.BgpSession.Status · enum

Status of the BGP IPv6 session.

Enum values:
unknown_status
up
down
disabled
Default: unknown_status
​scaleway.s2s_vpn.v1alpha1.BgpSession

BGP IPv4 session, including status, interco private IPv4 subnet and attached routing policy.

​scaleway.s2s_vpn.v1alpha1.BgpSession

BGP IPv6 session, including status, interco private IPv6 subnet and attached routing policy.

region
​string

Region of the connection.


Disable route propagation

POST
https://api.scaleway.com
/s2s-vpn/v1alpha1/regions/{region}/connections/{connection_id}/disable-route-propagation

Prevent any prefixes from being announced in the BGP session. Traffic will not be able to flow over the VPN Gateway until route propagation is re-enabled.

Disable route propagation › path Parameters

region
​string · enum · required

The region you want to target

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

ID of the connection on which to disable route propagation. (UUID format)

Disable route propagation › Request Body

Disable route propagation › Responses

200
id
​string

Unique identifier of the connection. (UUID format)

srn
​string · pattern: ^srn://s2s-vpn\.[^/]…

The SRN of the connection.

project_id
​string

Project ID. (UUID format)

organization_id
​string

Organization ID. (UUID format)

name
​string

Name of the connection.

tags
​string[]

List of tags applied to the connection.

created_at
​string | null · date-time

Creation date of the connection. (RFC 3339 format)

updated_at
​string | null · date-time

Last modification date of the connection. (RFC 3339 format)

status
​scaleway.s2s_vpn.v1alpha1.Connection.Status · enum

Status of the connection.

Enum values:
unknown_status
active
limited_connectivity
down
locked
Default: unknown_status
is_ipv6
​boolean

IP version of the IPSec Tunnel.

initiation_policy
​scaleway.s2s_vpn.v1alpha1.Connection.InitiationPolicy · enum

Who initiates the IPsec tunnel.

Enum values:
unknown_initiation_policy
vpn_gateway
customer_gateway
Default: unknown_initiation_policy
secret_id
​string

ID of the secret in Secret Manager which contains the PSK. (UUID format)

secret_revision
​integer · uint32

Version number of the secret in Secret Manager which contains the PSK.

List of IKE v2 ciphers proposed for the IPsec tunnel.

List of ESP ciphers proposed for the IPsec tunnel.

route_propagation_enabled
​boolean

Defines whether route propagation is enabled or not.

vpn_gateway_id
​string

ID of the VPN gateway attached to the connection. (UUID format)

customer_gateway_id
​string

ID of the customer gateway attached to the connection. (UUID format)

tunnel_status
​scaleway.s2s_vpn.v1alpha1.TunnelStatus · enum

Status of the IPsec tunnel.

Enum values:
unknown_tunnel_status
up
down
Default: unknown_tunnel_status
bgp_status_ipv4
​scaleway.s2s_vpn.v1alpha1.BgpSession.Status · enum

Status of the BGP IPv4 session.

Enum values:
unknown_status
up
down
disabled
Default: unknown_status
bgp_status_ipv6
​scaleway.s2s_vpn.v1alpha1.BgpSession.Status · enum

Status of the BGP IPv6 session.

Enum values:
unknown_status
up
down
disabled
Default: unknown_status
​scaleway.s2s_vpn.v1alpha1.BgpSession

BGP IPv4 session, including status, interco private IPv4 subnet and attached routing policy.

​scaleway.s2s_vpn.v1alpha1.BgpSession

BGP IPv6 session, including status, interco private IPv6 subnet and attached routing policy.

region
​string

Region of the connection.


Enable route propagation

POST
https://api.scaleway.com
/s2s-vpn/v1alpha1/regions/{region}/connections/{connection_id}/enable-route-propagation

Enable all allowed prefixes (defined in a routing policy) to be announced in the BGP session. This allows traffic to flow between the attached VPC and the on-premises infrastructure along the announced routes. Note that by default, even when route propagation is enabled, all routes are blocked. It is essential to attach a routing policy to define the ranges of routes to announce.

Enable route propagation › path Parameters

region
​string · enum · required

The region you want to target

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

ID of the connection on which to enable route propagation. (UUID format)

Enable route propagation › Request Body

Enable route propagation › Responses

200
id
​string

Unique identifier of the connection. (UUID format)

srn
​string · pattern: ^srn://s2s-vpn\.[^/]…

The SRN of the connection.

project_id
​string

Project ID. (UUID format)

organization_id
​string

Organization ID. (UUID format)

name
​string

Name of the connection.

tags
​string[]

List of tags applied to the connection.

created_at
​string | null · date-time

Creation date of the connection. (RFC 3339 format)

updated_at
​string | null · date-time

Last modification date of the connection. (RFC 3339 format)

status
​scaleway.s2s_vpn.v1alpha1.Connection.Status · enum

Status of the connection.

Enum values:
unknown_status
active
limited_connectivity
down
locked
Default: unknown_status
is_ipv6
​boolean

IP version of the IPSec Tunnel.

initiation_policy
​scaleway.s2s_vpn.v1alpha1.Connection.InitiationPolicy · enum

Who initiates the IPsec tunnel.

Enum values:
unknown_initiation_policy
vpn_gateway
customer_gateway
Default: unknown_initiation_policy
secret_id
​string

ID of the secret in Secret Manager which contains the PSK. (UUID format)

secret_revision
​integer · uint32

Version number of the secret in Secret Manager which contains the PSK.

List of IKE v2 ciphers proposed for the IPsec tunnel.

List of ESP ciphers proposed for the IPsec tunnel.

route_propagation_enabled
​boolean

Defines whether route propagation is enabled or not.

vpn_gateway_id
​string

ID of the VPN gateway attached to the connection. (UUID format)

customer_gateway_id
​string

ID of the customer gateway attached to the connection. (UUID format)

tunnel_status
​scaleway.s2s_vpn.v1alpha1.TunnelStatus · enum

Status of the IPsec tunnel.

Enum values:
unknown_tunnel_status
up
down
Default: unknown_tunnel_status
bgp_status_ipv4
​scaleway.s2s_vpn.v1alpha1.BgpSession.Status · enum

Status of the BGP IPv4 session.

Enum values:
unknown_status
up
down
disabled
Default: unknown_status
bgp_status_ipv6
​scaleway.s2s_vpn.v1alpha1.BgpSession.Status · enum

Status of the BGP IPv6 session.

Enum values:
unknown_status
up
down
disabled
Default: unknown_status
​scaleway.s2s_vpn.v1alpha1.BgpSession

BGP IPv4 session, including status, interco private IPv4 subnet and attached routing policy.

​scaleway.s2s_vpn.v1alpha1.BgpSession

BGP IPv6 session, including status, interco private IPv6 subnet and attached routing policy.

region
​string

Region of the connection.


Renew pre-shared key

POST
https://api.scaleway.com
/s2s-vpn/v1alpha1/regions/{region}/connections/{connection_id}/renew-psk

Renew pre-shared key for a given connection.

Renew pre-shared key › path Parameters

region
​string · enum · required

The region you want to target

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

ID of the connection to renew the PSK. (UUID format)

Renew pre-shared key › Request Body

generate_revision
​boolean | null

Generate a new version or update to the latest existing one.

Renew pre-shared key › Responses

200

This connection.


Set a new routing policy

POST
https://api.scaleway.com
/s2s-vpn/v1alpha1/regions/{region}/connections/{connection_id}/set-routing-policy

Set a new routing policy on a connection, overriding the existing one if present, specified by its connection ID.

Set a new routing policy › path Parameters

region
​string · enum · required

The region you want to target

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

ID of the connection whose routing policy is being updated. (UUID format)

Set a new routing policy › Request Body

routing_policy_v4
​string | null

ID of the routing policy to set for the BGP IPv4 session. (UUID format) Precisely one of routing_policy_v4, routing_policy_v6 can be set.

routing_policy_v6
​string | null

ID of the routing policy to set for the BGP IPv6 session. (UUID format) Precisely one of routing_policy_v4, routing_policy_v6 can be set.

Set a new routing policy › Responses

200
id
​string

Unique identifier of the connection. (UUID format)

srn
​string · pattern: ^srn://s2s-vpn\.[^/]…

The SRN of the connection.

project_id
​string

Project ID. (UUID format)

organization_id
​string

Organization ID. (UUID format)

name
​string

Name of the connection.

tags
​string[]

List of tags applied to the connection.

created_at
​string | null · date-time

Creation date of the connection. (RFC 3339 format)

updated_at
​string | null · date-time

Last modification date of the connection. (RFC 3339 format)

status
​scaleway.s2s_vpn.v1alpha1.Connection.Status · enum

Status of the connection.

Enum values:
unknown_status
active
limited_connectivity
down
locked
Default: unknown_status
is_ipv6
​boolean

IP version of the IPSec Tunnel.

initiation_policy
​scaleway.s2s_vpn.v1alpha1.Connection.InitiationPolicy · enum

Who initiates the IPsec tunnel.

Enum values:
unknown_initiation_policy
vpn_gateway
customer_gateway
Default: unknown_initiation_policy
secret_id
​string

ID of the secret in Secret Manager which contains the PSK. (UUID format)

secret_revision
​integer · uint32

Version number of the secret in Secret Manager which contains the PSK.

List of IKE v2 ciphers proposed for the IPsec tunnel.

List of ESP ciphers proposed for the IPsec tunnel.

route_propagation_enabled
​boolean

Defines whether route propagation is enabled or not.

vpn_gateway_id
​string

ID of the VPN gateway attached to the connection. (UUID format)

customer_gateway_id
​string

ID of the customer gateway attached to the connection. (UUID format)

tunnel_status
​scaleway.s2s_vpn.v1alpha1.TunnelStatus · enum

Status of the IPsec tunnel.

Enum values:
unknown_tunnel_status
up
down
Default: unknown_tunnel_status
bgp_status_ipv4
​scaleway.s2s_vpn.v1alpha1.BgpSession.Status · enum

Status of the BGP IPv4 session.

Enum values:
unknown_status
up
down
disabled
Default: unknown_status
bgp_status_ipv6
​scaleway.s2s_vpn.v1alpha1.BgpSession.Status · enum

Status of the BGP IPv6 session.

Enum values:
unknown_status
up
down
disabled
Default: unknown_status
​scaleway.s2s_vpn.v1alpha1.BgpSession

BGP IPv4 session, including status, interco private IPv4 subnet and attached routing policy.

​scaleway.s2s_vpn.v1alpha1.BgpSession

BGP IPv6 session, including status, interco private IPv6 subnet and attached routing policy.

region
​string

Region of the connection.