Scaleway logo
Commands

Documentation for `scw interlink`

The CLI documentation pages are currently under construction

The content is up to date. We're making improvements to the site over the next few weeks for a better experience.

This API allows you to manage your InterLink services.

Connection commands

Connection commands.

Connection commands.

Usage:

TerminalCode
scw interlink connection

Link commands.

Attach a routing policy

Attach a routing policy to an existing link. As all routes across the link are blocked by default, you must attach a routing policy to set IP prefix filters for allowed routes, facilitating traffic flow.

Usage:

TerminalCode
scw interlink link attach_policy <link-id ...> [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
link-idID of the link to attach a routing policy toRequired
routing-policy-idID of the routing policy to be attachedRequired
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, it-mil, nl-ams, pl-waw

Attach a VPC

Attach a VPC to an existing link. This facilitates communication between the resources in your Scaleway VPC, and your on-premises infrastructure.

Usage:

TerminalCode
scw interlink link attach_vpc <link-id ...> [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
link-idID of the link to attach VPC toRequired
vpc-idID of the VPC to attachRequired
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, it-mil, nl-ams, pl-waw

Create a link (InterLink session / logical InterLink resource) in a given PoP, specifying its various configuration details. Links can either be hosted (facilitated by partners' shared physical connections) or self-hosted (for users who have purchased a dedicated physical connection).

Usage:

TerminalCode
scw interlink link create [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
project-idProject ID to use. If none is passed the default project ID will be used
nameName of the linkRequired
tags.{index}List of tags to apply to the link
pop-idPoP (location) where the link will be createdRequired
bandwidth-mbpsDesired bandwidth for the link. Must be compatible with available link bandwidths and remaining bandwidth capacity of the connectionRequired
connection-idIf set, creates a self-hosted link using this dedicated physical connection. As the customer, specify the ID of the physical connection you already have for this link.
partner-idIf set, creates a hosted link on a partner's connection. Specify the ID of the chosen partner, who already has a shared connection with available bandwidth.
peer-asnFor self-hosted links we need the peer AS Number to establish BGP session. If not given, a default one will be assigned.
vlanFor self-hosted links only, it is possible to choose the VLAN ID. If the VLAN is not available (ie already taken or out of range), an error is returned.
routing-policy-v4-idIf set, attaches this routing policy containing IPv4 prefixes to the Link. Hence, a BGP IPv4 session will be created.
routing-policy-v6-idIf set, attaches this routing policy containing IPv6 prefixes to the Link. Hence, a BGP IPv6 session will be created.
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, it-mil, nl-ams, pl-waw

Delete an existing link, specified by its link ID. Note that as well as deleting the link here on the Scaleway side, it is also necessary to request deletion from the partner on their side. Only when this action has been carried out on both sides will the resource be completely deleted.

Usage:

TerminalCode
scw interlink link delete <link-id ...> [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
link-idID of the link to deleteRequired
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, it-mil, nl-ams, pl-waw

Detach a routing policy

Detach a routing policy from an existing link. Without a routing policy, all routes across the link are blocked by default.

Usage:

TerminalCode
scw interlink link detach_policy <link-id ...> [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
link-idID of the link to detach a routing policy fromRequired
routing-policy-idID of the routing policy to be detachedRequired
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, it-mil, nl-ams, pl-waw

Detach a VPC

Detach a VPC from an existing link.

Usage:

TerminalCode
scw interlink link detach_vpc <link-id ...> [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
link-idID of the link to detach the VPC fromRequired
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, it-mil, nl-ams, pl-waw

Disable route propagation

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

Usage:

TerminalCode
scw interlink link disable_propagation <link-id ...> [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
link-idID of the link on which to disable route propagationRequired
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, it-mil, nl-ams, pl-waw

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.

Usage:

TerminalCode
scw interlink link enable_propagation <link-id ...> [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
link-idID of the link on which to enable route propagationRequired
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, it-mil, nl-ams, pl-waw

Get a link (InterLink session / logical InterLink resource) for the given link ID. The response object includes information about the link's various configuration details.

Usage:

TerminalCode
scw interlink link get <link-id ...> [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
link-idID of the link to getRequired
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, it-mil, nl-ams, pl-waw

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

Usage:

TerminalCode
scw interlink link list [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
order-byOrder in which to return resultsOne of: created_at_asc, created_at_desc, name_asc, name_desc, status_asc, status_desc
project-idProject ID to filter for
nameLink name to filter for
tags.{index}Tags to filter for
statusLink status to filter forOne of: unknown_link_status, configuring, failed, requested, refused, expired, provisioning, active, limited_connectivity, all_down, deprovisioning, deleted, locked, ready
bgp-v4-statusBGP IPv4 status to filter forOne of: unknown_bgp_status, up, down, disabled
bgp-v6-statusBGP IPv6 status to filter forOne of: unknown_bgp_status, up, down, disabled
pop-idFilter for links attached to this PoP (via connections)
bandwidth-mbpsFilter for link bandwidth (in Mbps)
partner-idFilter for links hosted by this partner
vpc-idFilter for links attached to this VPC
routing-policy-idFilter for links using this routing policy
pairing-keyFilter for the link with this pairing_key
kindFilter for hosted or self-hosted linksOne of: hosted, self_hosted, l2_hosted, l3_hosted
connection-idFilter for links self-hosted on this connection
organization-idOrganization ID to filter for
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, it-mil, nl-ams, pl-waw, all

Update an existing link, specified by its link ID. Only its name and tags can be updated.

Usage:

TerminalCode
scw interlink link update <link-id ...> [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
link-idID of the link to updateRequired
nameName of the link
tags.{index}List of tags to apply to the link
peer-asnFor self-hosted links, AS Number to establish BGP session.
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, it-mil, nl-ams, pl-waw

Partner commands

Partner commands.

Get a partner

Get a partner for the given partner IP. The response object includes information such as the partner's name, email address and portal URL.

Usage:

TerminalCode
scw interlink partner get <partner-id ...> [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
partner-idID of partner to getRequired
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, it-mil, nl-ams, pl-waw

List available partners

List all available partners. By default, the partners returned in the list are ordered by name in ascending order, though this can be modified via the order_by field.

Usage:

TerminalCode
scw interlink partner list [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
order-byOrder in which to return resultsOne of: name_asc, name_desc
pop-ids.{index}Filter for partners present (offering a connection) in one of these PoPs
l3-connectivityFilter for partners supporting L3 connectivity
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, it-mil, nl-ams, pl-waw, all

PoP commands

PoP commands.

Get a PoP

Get a PoP for the given PoP ID. The response object includes the PoP's name and information about its physical location.

Usage:

TerminalCode
scw interlink pop get <pop-id ...> [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
pop-idID of PoP to getRequired
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, it-mil, nl-ams, pl-waw

List PoPs

List all available PoPs (locations) for a given region. By default, the results are returned in ascending alphabetical order by name.

Usage:

TerminalCode
scw interlink pop list [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
order-byOrder in which to return resultsOne of: name_asc, name_desc
namePoP name to filter for
hosting-provider-nameHosting provider name to filter for
partner-idFilter for PoPs hosting an available shared connection from this partner
link-bandwidth-mbpsFilter for PoPs with a connection allowing this bandwidth size. Note that we cannot guarantee that PoPs returned will have available capacity.
dedicated-availableFilter for PoPs with a dedicated connection available for self-hosted links.
l3-connectivity-partnersFilter for PoPs with a shared connection available from a partner supporting L3 connectivity
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, it-mil, nl-ams, pl-waw, all

Routing policy commands

Routing policy commands.

Create 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 peer, and the outgoing routes to announce to the peer.

Usage:

TerminalCode
scw interlink routing-policy create [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
project-idProject ID to use. If none is passed the default project ID will be used
nameName of the routing policyRequired
tags.{index}List of tags to apply to the routing policy
prefix-filter-in.{index}IP prefixes to accept from the peer (ranges of route announcements to accept)
prefix-filter-out.{index}IP prefix filters to advertise to the peer (ranges of routes to advertise)
is-ipv6IP prefixes version of the routing policy
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, it-mil, nl-ams, pl-waw

Delete a routing policy

Delete an existing routing policy, specified by its routing policy ID.

Usage:

TerminalCode
scw interlink routing-policy delete <routing-policy-id ...> [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
routing-policy-idID of the routing policy to deleteRequired
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, it-mil, nl-ams, pl-waw

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.

Usage:

TerminalCode
scw interlink routing-policy get <routing-policy-id ...> [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
routing-policy-idID of the routing policy to getRequired
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, it-mil, nl-ams, pl-waw

List routing policies

List all routing policies in a given region. A routing policy can be attached to one or multiple links (InterLink connections).

Usage:

TerminalCode
scw interlink routing-policy list [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
order-byOrder in which to return resultsOne of: created_at_asc, created_at_desc, name_asc, name_desc
project-idProject ID to filter for
nameRouting policy name to filter for
tags.{index}Tags to filter for
ipv6Filter for the routing policies based on IP prefixes version
organization-idOrganization ID to filter for
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, it-mil, nl-ams, pl-waw, all

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.

Usage:

TerminalCode
scw interlink routing-policy update <routing-policy-id ...> [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
routing-policy-idID of the routing policy to updateRequired
nameName of the routing policy
tags.{index}List of tags to apply to the routing policy
prefix-filter-in.{index}IP prefixes to accept from the peer (ranges of route announcements to accept)
prefix-filter-out.{index}IP prefix filters for routes to advertise to the peer (ranges of routes to advertise)
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, it-mil, nl-ams, pl-waw