Scaleway logo
Commands

Documentation for `scw datawarehouse`

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.

Data Warehouse API.

Database management commands

Manage databases within a deployment.

Create a new database within a deployment

Create a new database within a deployment.

Usage:

TerminalCode
scw datawarehouse database create [arg=value ...]

Arguments:

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

Delete a database from a deployment

Delete a database from a deployment.

Usage:

TerminalCode
scw datawarehouse database delete [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
deployment-idUUID of the deploymentRequired
nameName of the database to deleteRequired
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par

List databases within a deployment

List databases within a deployment.

Usage:

TerminalCode
scw datawarehouse database list [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
deployment-idUUID of the deploymentRequired
nameName of the database to filter by
order-byCriteria to use when ordering database listingsOne of: name_asc, name_desc, size_asc, size_desc
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, all

Deployment management commands

A deployment is composed of one or multiple replicas.

Create a deployment

Create a new deployment.

Usage:

TerminalCode
scw datawarehouse deployment 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 deployment
tags.{index}Tags to apply to the deployment
versionClickHouse® version to use for the deployment
replica-countNumber of replicas for the deployment
shard-countNumber of shard for the deployment
passwordPassword for the initial user
cpu-minMinimum CPU count for the deployment
cpu-maxMaximum CPU count for the deployment
endpoints.{index}.public
endpoints.{index}.private-network.private-network-idUUID of the Private Network
ram-per-cpuRAM per CPU count for the deployment (in GB)
move-factorFor the tiered storage policy, controls when data is moved from the hot volume (Block Storage) to the cold volume (Object Storage). Data is moved once free space on the hot volume drops below this fraction of its capacity. Value between 0 and 1 (default 0.1, i.e. data is moved when the hot volume is 90% full).
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par

Delete a deployment

Delete a given deployment, specified by the region and deployment_id parameters. Deleting a deployment is permanent, and cannot be undone. Upon deletion, all your data will be lost.

Usage:

TerminalCode
scw datawarehouse deployment delete <deployment-id ...> [arg=value ...]

Arguments:

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

Get a deployment

Retrieve information about a given deployment, specified by the region and deployment_id parameters. Its full details, including name, status are returned in the response object.

Usage:

TerminalCode
scw datawarehouse deployment get <deployment-id ...> [arg=value ...]

Arguments:

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

Get deployment TLS certificate

Retrieve the TLS certificate associated with a deployment.

Usage:

TerminalCode
scw datawarehouse deployment get-certificate <deployment-id ...> [arg=value ...]

Arguments:

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

List deployments

List all deployments in the specified region, for a given Scaleway Project. By default, the deployments returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field. You can define additional parameters for your query, such as tags and name. For the name parameter, the value you provide will be checked against the whole name string to see if it includes the string you put in the parameter.

Usage:

TerminalCode
scw datawarehouse deployment list [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
tags.{index}List deployments with a given tag
nameLists deployments that match a name pattern
order-byCriteria to use when ordering deployment listingsOne of: created_at_desc, created_at_asc, name_asc, name_desc
project-idProject ID the deployment belongs to
organization-idOrganization ID the deployment belongs to
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, all

Update a deployment

Update the parameters of a deployment.

Usage:

TerminalCode
scw datawarehouse deployment update <deployment-id ...> [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
deployment-idUUID of the deployment to updateRequired
nameName of the deployment
tags.{index}Tags of a deployment
cpu-minMinimum CPU count for the deployment
cpu-maxMaximum CPU count for the deployment
replica-countNumber of replicas for the deployment
move-factorFor the tiered storage policy, controls when data is moved from the hot volume (Block Storage) to the cold volume (Object Storage). Data is moved once free space on the hot volume drops below this fraction of its capacity. Value between 0 and 1 (default 0.1, i.e. data is moved when the hot volume is 90% full).
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par

Endpoint management commands

Manage endpoints associated with a deployment.

Create a new endpoint for a deployment

Create a new endpoint for a deployment.

Usage:

TerminalCode
scw datawarehouse endpoint create [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
deployment-idUUID of the deployment
endpoint.public
endpoint.private-network.private-network-idUUID of the Private Network
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par

Delete an endpoint from a deployment

Delete an endpoint from a deployment.

Usage:

TerminalCode
scw datawarehouse endpoint delete [arg=value ...]

Arguments:

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

List available presets

Data Warehouse preset to help you choose the best configuration.

List available presets

List available presets.

Usage:

TerminalCode
scw datawarehouse preset 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

User management commands

Manage users associated with a deployment.

Create a new user for a deployment

Create a new user for a deployment.

Usage:

TerminalCode
scw datawarehouse user create [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
deployment-idUUID of the deploymentRequired
nameName of the user
passwordPassword for the user
is-adminIndicates if the user is an administrator
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par

Delete a user from a deployment

Delete a user from a deployment.

Usage:

TerminalCode
scw datawarehouse user delete [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
deployment-idUUID of the deploymentRequired
nameName of the user to deleteRequired
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par

List users associated with a deployment

List users associated with a deployment.

Usage:

TerminalCode
scw datawarehouse user list [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
deployment-idUUID of the deploymentRequired
nameName of the user to filter by
order-byCriteria to use when ordering user listingsOne of: name_asc, name_desc
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, all

Update an existing user for a deployment

Update an existing user for a deployment.

Usage:

TerminalCode
scw datawarehouse user update [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
deployment-idUUID of the deploymentRequired
nameName of the userRequired
passwordNew password for the user
is-adminUpdates the user administrator permissions
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par

List available Clickhouse® versions

ClickHouse® versions powering your deployment.

List available ClickHouse® versions

List available ClickHouse® versions.

Usage:

TerminalCode
scw datawarehouse version list [arg=value ...]

Arguments:

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