Scaleway logo
Commands

Documentation for `scw file`

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 File Storage resources.

Attachment management

Attachment management.

List filesystems attachments

List all existing attachments in a specified region. By default, the attachments listed are ordered by creation date in ascending order. This can be modified using the order_by field.

Usage:

TerminalCode
scw file attachment list [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
filesystem-idUUID of the File Storage volume
resource-idFilter by resource ID
resource-typeFilter by resource typeOne of: unknown_resource_type, instance_server
zoneFilter by resource zone
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, all

Filesystem management

Filesystem management.

Create a new filesystem

To create a new filesystem, you must specify a name, a size, and a project ID.

Usage:

TerminalCode
scw file filesystem create [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
nameName of the filesystemRequired
project-idProject ID to use. If none is passed the default project ID will be used
sizeFilesystem size in bytes, with a granularity in GB (10^9 bytes).Required
typeType of the filesystem
tags.{index}List of tags assigned to the filesystem
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par

Delete a detached filesystem

You must specify the filesystem_id of the filesystem you want to delete.

Usage:

TerminalCode
scw file filesystem delete <filesystem-id ...> [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
filesystem-idUUID of the filesystemRequired
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par

Get filesystem details

Retrieve all properties and current status of a specific filesystem identified by its ID.

Usage:

TerminalCode
scw file filesystem get <filesystem-id ...> [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
filesystem-idUUID of the filesystemRequired
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par

List all filesystems

Retrieve all filesystems in the specified region. By default, the filesystems listed are ordered by creation date in ascending order. This can be modified using the order_by field.

Usage:

TerminalCode
scw file filesystem list [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
order-byCriteria to use when ordering the listOne of: created_at_asc, created_at_desc, name_asc, name_desc
project-idFilter by project ID
nameFilter the returned filesystems by their names
filesystem-typeType of the filesystem
tags.{index}Filter by tags. Only filesystems with one or more matching tags will be returned
filesystem-ids.{index}Filter by filesystem IDs. Only filesystems with one or more matching IDs will be returned
organization-idFilter by organization ID
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, all

Update filesystem properties

Update the technical details of a filesystem, such as its name, tags or its new size.

Usage:

TerminalCode
scw file filesystem update [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
filesystem-idUUID of the filesystemRequired
nameWhen defined, is the new name of the filesystem
sizeOptional field for increasing the size of the filesystem (must be larger than the current size)
tags.{index}List of tags assigned to the filesystem
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par

Filesystem-type management

Filesystem-type management.

List filesystems types

List filesystems types.

Usage:

TerminalCode
scw file filesystem-type list [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, all