Scaleway logo
Commands

Documentation for `scw fip`

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 Elastic Metal servers' flexible public IP addresses.

Flexible IP management commands

A flexible IP can be attached to any Elastic Metal server within the same zone. Multiple flexible IPs can be attached to a server.

Attach an existing flexible IP to a server

Attach an existing flexible IP to a specified Elastic Metal server.

Usage:

TerminalCode
scw fip ip attach [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
fips-ids.{index}List of flexible IP IDs to attach to a serverRequired
server-idID of the server on which to attach the flexible IPsRequired
zoneZone to target. If none is passed will use default zone from the configDefault: fr-par-1
One of: fr-par-1, fr-par-2, nl-ams-1, nl-ams-2, pl-waw-2, pl-waw-3

Create a new flexible IP

Generate a new flexible IP within a given zone, specifying its configuration including Project ID and description.

Usage:

TerminalCode
scw fip ip create [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
project-idProject ID to use. If none is passed the default project ID will be used
descriptionFlexible IP description (max. of 255 characters)
tags.{index}Tags to associate to the flexible IP
server-idID of the server to which the newly created flexible IP will be attached.
reverseValue of the reverse DNS
is-ipv6Defines whether the flexible IP has an IPv6 address.
zoneZone to target. If none is passed will use default zone from the configDefault: fr-par-1
One of: fr-par-1, fr-par-2, nl-ams-1, nl-ams-2, pl-waw-2, pl-waw-3

Delete an existing flexible IP

Delete an existing flexible IP, specified by its ID and zone. Note that deleting a flexible IP is permanent and cannot be undone.

Usage:

TerminalCode
scw fip ip delete <fip-id ...> [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
fip-idID of the flexible IP to deleteRequired
zoneZone to target. If none is passed will use default zone from the configDefault: fr-par-1
One of: fr-par-1, fr-par-2, nl-ams-1, nl-ams-2, pl-waw-2, pl-waw-3

Detach an existing flexible IP from a server

Detach an existing flexible IP from a specified Elastic Metal server.

Usage:

TerminalCode
scw fip ip detach [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
fips-ids.{index}List of flexible IP IDs to detach from a server. Multiple IDs can be provided. Note that flexible IPs must belong to the same MAC group.Required
zoneZone to target. If none is passed will use default zone from the configDefault: fr-par-1
One of: fr-par-1, fr-par-2, nl-ams-1, nl-ams-2, pl-waw-2, pl-waw-3

Get an existing flexible IP

Retrieve information about an existing flexible IP, specified by its ID and zone. Its full details, including Project ID, description and status, are returned in the response object.

Usage:

TerminalCode
scw fip ip get <fip-id ...> [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
fip-idID of the flexible IPRequired
zoneZone to target. If none is passed will use default zone from the configDefault: fr-par-1
One of: fr-par-1, fr-par-2, nl-ams-1, nl-ams-2, pl-waw-2, pl-waw-3

List flexible IPs

List all flexible IPs within a given zone.

Usage:

TerminalCode
scw fip ip list [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
order-bySort order of the returned flexible IPsOne of: created_at_asc, created_at_desc
tags.{index}Filter by tag, only flexible IPs with one or more matching tags will be returned
status.{index}Filter by status, only flexible IPs with this status will be returnedOne of: unknown, ready, updating, attached, error, detaching, locked
server-ids.{index}Filter by server IDs, only flexible IPs with these server IDs will be returned
project-idFilter by Project ID, only flexible IPs from this Project will be returned
organization-idFilter by Organization ID, only flexible IPs from this Organization will be returned
zoneZone to target. If none is passed will use default zone from the configDefault: fr-par-1
One of: fr-par-1, fr-par-2, nl-ams-1, nl-ams-2, pl-waw-2, pl-waw-3, all

Update an existing flexible IP

Update the parameters of an existing flexible IP, specified by its ID and zone. These parameters include tags and description.

Usage:

TerminalCode
scw fip ip update <fip-id ...> [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
fip-idID of the flexible IP to updateRequired
descriptionFlexible IP description (max. 255 characters)
tags.{index}Tags associated with the flexible IP
reverseValue of the reverse DNS
zoneZone to target. If none is passed will use default zone from the configDefault: fr-par-1
One of: fr-par-1, fr-par-2, nl-ams-1, nl-ams-2, pl-waw-2, pl-waw-3

MAC address management commands

MAC address management commands.

Generate a virtual MAC address on an existing flexible IP

Generate a virtual MAC (Media Access Control) address on an existing flexible IP.

Usage:

TerminalCode
scw fip mac create [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
fip-idID of the flexible IP for which to generate a virtual MACRequired
mac-typeTODORequired
One of: unknown_type, vmware, xen, kvm
zoneZone to target. If none is passed will use default zone from the configDefault: fr-par-1
One of: fr-par-1, fr-par-2, nl-ams-1, nl-ams-2, pl-waw-2, pl-waw-3

Detach a given virtual MAC address from an existing flexible IP

Detach a given MAC (Media Access Control) address from an existing flexible IP.

Usage:

TerminalCode
scw fip mac delete [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
fip-idID of the flexible IP from which to delete the virtual MACRequired
zoneZone to target. If none is passed will use default zone from the configDefault: fr-par-1
One of: fr-par-1, fr-par-2, nl-ams-1, nl-ams-2, pl-waw-2, pl-waw-3

Duplicate a virtual MAC address to another flexible IP

Duplicate a virtual MAC address from a given flexible IP to another flexible IP attached to the same server.

Usage:

TerminalCode
scw fip mac duplicate [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
fip-idID of the flexible IP on which to duplicate the virtual MACRequired
duplicate-from-fip-idID of the flexible IP to duplicate the Virtual MAC fromRequired
zoneZone to target. If none is passed will use default zone from the configDefault: fr-par-1
One of: fr-par-1, fr-par-2, nl-ams-1, nl-ams-2, pl-waw-2, pl-waw-3

Relocate an existing virtual MAC address to a different flexible IP

Relocate a virtual MAC (Media Access Control) address from an existing flexible IP to a different flexible IP.

Usage:

TerminalCode
scw fip mac move [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
fip-idRequired
dst-fip-id
zoneZone to target. If none is passed will use default zone from the configDefault: fr-par-1
One of: fr-par-1, fr-par-2, nl-ams-1, nl-ams-2, pl-waw-2, pl-waw-3