Scaleway logo
Commands

Documentation for `scw webhosting`

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 list and restore backups for your cPanel and WordPress Web Hosting service.

Backups

Backups represent snapshots of your hosting environment. You can list and restore individual items such as files, databases, or mailboxes.

Get info about a backup specified by the backup ID.

Get info about a backup specified by the backup ID.

Usage:

TerminalCode
scw webhosting backup get [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
hosting-idUUID of the hosting accountRequired
backup-idID of the backup to retrieveRequired
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, nl-ams, pl-waw

List all available backups for a hosting account.

List all available backups for a hosting account.

Usage:

TerminalCode
scw webhosting backup list [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
hosting-idUUID of the hosting accountRequired
order-byOrder in which to return the list of backupsOne of: created_at_desc, created_at_asc
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, nl-ams, pl-waw, all

Restore an entire backup to your hosting environment.

Restore an entire backup to your hosting environment.

Usage:

TerminalCode
scw webhosting backup restore [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
hosting-idUUID of the hosting accountRequired
backup-idID of the backup to fully restoreRequired
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, nl-ams, pl-waw

Backups items

Backups represent dedicated snapshots of services of your hosting. You can list and restore individual items such as files, databases, or mailboxes.

List items within a specific backup, grouped by type.

List items within a specific backup, grouped by type.

Usage:

TerminalCode
scw webhosting backup-item list [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
hosting-idUUID of the hosting accountRequired
backup-idID of the backup to list items from
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, nl-ams, pl-waw

Restore specific items from a backup (e.g., a database or mailbox).

Restore specific items from a backup (e.g., a database or mailbox).

Usage:

TerminalCode
scw webhosting backup-item restore [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
hosting-idUUID of the hosting accountRequired
item-ids.{index}List of backup item IDs to restore individually
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, nl-ams, pl-waw

Control Panels

Control panels represent the kind of administration panel to manage your Web Hosting plan, cPanel or plesk.

"List the control panels type: cpanel or plesk."

"List the control panels type: cpanel or plesk.".

Usage:

TerminalCode
scw webhosting control-panel 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, nl-ams, pl-waw, all

Database

Databases represent the databases you can create and manage within your Web Hosting plan. Supported types are MySQL and PostgreSQL.

"Create a new database within your hosting plan"

"Create a new database within your hosting plan".

Usage:

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

Arguments:

NameDescriptionArgument Specifications
hosting-idUUID of the hosting plan where the database will be createdRequired
database-nameName of the database to be created
new-user.username
new-user.password
existing-username(Optional) Username to link an existing user to the database
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, nl-ams, pl-waw

"Delete a database within your hosting plan"

"Delete a database within your hosting plan".

Usage:

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

Arguments:

NameDescriptionArgument Specifications
hosting-idUUID of the hosting planRequired
database-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, nl-ams, pl-waw

"Get details of a database within your hosting plan"

"Get details of a database within your hosting plan".

Usage:

TerminalCode
scw webhosting database get [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
hosting-idUUID of the hosting planRequired
database-nameName of the databaseRequired
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, nl-ams, pl-waw

"List all databases within your hosting plan"

"List all databases within your hosting plan".

Usage:

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

Arguments:

NameDescriptionArgument Specifications
hosting-idUUID of the hosting planRequired
order-bySort order of databases in the responseOne of: database_name_asc, database_name_desc
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, nl-ams, pl-waw, all

Database User

Database users represent the users that can access and manage the databases in your Web Hosting plan.

"Assign a database user to a database"

"Assign a database user to a database".

Usage:

TerminalCode
scw webhosting database-user assign [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
hosting-idUUID of the hosting planRequired
usernameName of the user to assign
database-nameName of the database to be assignedRequired
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, nl-ams, pl-waw

"Change the password of a database user"

"Change the password of a database user".

Usage:

TerminalCode
scw webhosting database-user change-password [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
hosting-idUUID of the hosting planRequired
usernameName of the user to updateRequired
passwordNew password
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, nl-ams, pl-waw

"Create a new database user"

"Create a new database user".

Usage:

TerminalCode
scw webhosting database-user create [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
hosting-idUUID of the hosting planRequired
usernameName of the user to create
passwordPassword of the user to create
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, nl-ams, pl-waw

"Delete a database user"

"Delete a database user".

Usage:

TerminalCode
scw webhosting database-user delete [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
hosting-idUUID of the hosting planRequired
usernameName of the database user to deleteRequired
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, nl-ams, pl-waw

"Get details of a database user"

"Get details of a database user".

Usage:

TerminalCode
scw webhosting database-user get [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
hosting-idUUID of the hosting planRequired
usernameName of the database user to retrieve detailsRequired
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, nl-ams, pl-waw

"List all database users"

"List all database users".

Usage:

TerminalCode
scw webhosting database-user list [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
hosting-idUUID of the hosting planRequired
order-bySort order of database users in the responseOne of: username_asc, username_desc
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, nl-ams, pl-waw, all

"Unassign a database user from a database"

"Unassign a database user from a database".

Usage:

TerminalCode
scw webhosting database-user unassign [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
hosting-idUUID of the hosting planRequired
usernameName of the user to unassign
database-nameName of the database to be unassignedRequired
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, nl-ams, pl-waw

Domain information commands

With a Scaleway Web Hosting plan, you can manage your domain, configure your web hosting services, manage your emails and more. Get dns records status and check if you own the domain with these calls.

Get DNS records

Get the set of DNS records of a specified domain associated with a Web Hosting plan's domain.

Usage:

TerminalCode
scw webhosting dns-records get-dns-records [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
domainDomain associated with the DNS recordsRequired
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, nl-ams, pl-waw

Examples:

Get DNS records associated to the given domain

TerminalCode
scw webhosting dns-records get-dns-records domain=foo.com

Domain information commands

With a Scaleway Web Hosting plan, you can manage your domain, configure your web hosting services, manage your emails and more. Get dns records status and check if you own the domain with these calls.

Check whether you own this domain or not.

Check whether you own this domain or not.

Usage:

TerminalCode
scw webhosting domain check-ownership [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
project-idProject ID to use. If none is passed the default project ID will be used
domainDomain for which ownership is to be verified.Required
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, nl-ams, pl-waw

Retrieve detailed information about a specific domain, including its status, DNS configuration, and ownership.

Retrieve detailed information about a specific domain, including its status, DNS configuration, and ownership.

Usage:

TerminalCode
scw webhosting domain get [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
domain-nameDomain name to get.Required
project-idProject ID to use. If none is passed the default project ID will be used
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, nl-ams, pl-waw

Synchronize your DNS records on the Elements Console and on cPanel.

Synchronize your DNS records on the Elements Console and on cPanel.

Usage:

TerminalCode
scw webhosting domain sync-dns-records [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
domainDomain for which the DNS records will be synchronized.Required
update-web-recordsWhether or not to synchronize the web records (deprecated, use auto_config_domain_dns).Deprecated
update-mail-recordsWhether or not to synchronize the mail records (deprecated, use auto_config_domain_dns).Deprecated
update-all-recordsWhether or not to synchronize all types of records. This one has priority (deprecated, use auto_config_domain_dns).Deprecated
update-nameserversWhether or not to synchronize domain nameservers (deprecated, use auto_config_domain_dns).Deprecated
custom-records.{index}.name
custom-records.{index}.typeOne of: unknown_type, a, cname, mx, txt, ns, aaaa
auto-config-domain-dns.nameserversWhether or not to synchronize domain nameservers.
auto-config-domain-dns.web-recordsWhether or not to synchronize web records.
auto-config-domain-dns.mail-recordsWhether or not to synchronize mail records.
auto-config-domain-dns.all-recordsWhether or not to synchronize all types of records. Takes priority over the other fields.
auto-config-domain-dns.noneNo automatic domain configuration. Users must configure their domain for the Web Hosting to work.
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, nl-ams, pl-waw

Domain information commands

With a Scaleway Web Hosting plan, you can manage your domain, configure your web hosting services, manage your emails and more. Get dns records status and check if you own the domain with these calls.

Search for available domains based on domain name.

Search for available domains based on domain name.

Usage:

TerminalCode
scw webhosting domain-availability search [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
domain-nameDomain name to search.
project-idProject ID to use. If none is passed the default project ID will be used
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, nl-ams, pl-waw

Free domains

A free subdomain provided by Scaleway for your hosting.

Check whether a given slug and free domain combination is available.

Check whether a given slug and free domain combination is available.

Usage:

TerminalCode
scw webhosting freedomain check-availability [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
slugCustom prefix used for the free domain.
root-domainFree root domain provided by Web Hosting, selected from the list returned by ListFreeRootDomains.
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, nl-ams, pl-waw

Retrieve the list of free root domains available for a Web Hosting.

Retrieve the list of free root domains available for a Web Hosting.

Usage:

TerminalCode
scw webhosting freedomain 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, nl-ams, pl-waw, all

FTP Account

FTP accounts represent the access credentials for FTP (File Transfer Protocol) used to manage files on your web hosting plan.

Create a new FTP account within your hosting plan.

Create a new FTP account within your hosting plan.

Usage:

TerminalCode
scw webhosting ftp-account create [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
hosting-idUUID of the hosting planRequired
usernameUsername for the new FTP account
pathPath for the new FTP account
passwordPassword for the new FTP account
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, nl-ams, pl-waw

Delete a specific FTP account within your hosting plan.

Delete a specific FTP account within your hosting plan.

Usage:

TerminalCode
scw webhosting ftp-account delete [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
hosting-idUUID of the hosting planRequired
usernameUsername of the FTP account to be deletedRequired
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, nl-ams, pl-waw

List all FTP accounts within your hosting plan.

List all FTP accounts within your hosting plan.

Usage:

TerminalCode
scw webhosting ftp-account list [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
order-bySort order of FTP accounts in the responseOne of: username_asc, username_desc
hosting-idUUID of the hosting planRequired
domainDomain to filter the FTP accounts
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, nl-ams, pl-waw, all

Hosting management commands

With a Scaleway Web Hosting plan, you can manage your domain, configure your web hosting services, manage your emails and more. Create, list, update and delete your Web Hosting plans with these calls.

Order a Web Hosting plan

Order a Web Hosting plan, specifying the offer type required via the offer_id parameter.

Usage:

TerminalCode
scw webhosting hosting create [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
offer-idID of the selected offer for the Web Hosting plan
project-idProject ID to use. If none is passed the default project ID will be used
emailContact email for the Web Hosting client
tags.{index}List of tags for the Web Hosting plan
domainDomain name to link to the Web Hosting plan. You must already own this domain name, and have completed the DNS validation process beforehand
subdomainThe name prefix to use as a free subdomain (for example, mysite) assigned to the Web Hosting plan. The full domain will be automatically created by adding it to the fixed base domain (e.g. mysite.scw.site). You do not need to include the base domain yourself.
offer-options.{index}.idOffer option ID
offer-options.{index}.quantityThe option requested quantity to set for the Web Hosting plan
languageDefault language for the control panel interfaceOne of: unknown_language_code, en_US, fr_FR, de_DE
domain-configuration.update-nameservers
domain-configuration.update-web-record
domain-configuration.update-mail-record
domain-configuration.update-all-records
skip-welcome-emailIndicates whether to skip a welcome email to the contact email containing hosting info.
auto-config-domain-dns.nameserversWhether or not to synchronize domain nameservers.
auto-config-domain-dns.web-recordsWhether or not to synchronize web records.
auto-config-domain-dns.mail-recordsWhether or not to synchronize mail records.
auto-config-domain-dns.all-recordsWhether or not to synchronize all types of records. Takes priority over the other fields.
auto-config-domain-dns.noneNo automatic domain configuration. Users must configure their domain for the Web Hosting to work.
offer-commitment-idOffer commitment ID to which the hosting will be engaged
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, nl-ams, pl-waw

Create a user session

Create a user session.

Usage:

TerminalCode
scw webhosting hosting create-session [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
hosting-idHosting IDRequired
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, nl-ams, pl-waw

Delete a Web Hosting plan

Delete a Web Hosting plan, specified by its hosting_id. Note that deletion is not immediate: it will take place at the end of the calendar month, after which time your Web Hosting plan and all its data (files and emails) will be irreversibly lost.

Usage:

TerminalCode
scw webhosting hosting delete [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
hosting-idHosting IDRequired
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, nl-ams, pl-waw

Examples:

Delete a Hosting with the given ID

TerminalCode
scw webhosting hosting delete hosting-id=a3244331-5d32-4e36-9bf9-b60233e201c7

Get a Web Hosting plan

Get the details of one of your existing Web Hosting plans, specified by its hosting_id.

Usage:

TerminalCode
scw webhosting hosting get [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
hosting-idHosting IDRequired
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, nl-ams, pl-waw

Examples:

Get a Hosting with the given ID

TerminalCode
scw webhosting hosting get hosting-id=a3244331-5d32-4e36-9bf9-b60233e201c7

List all Web Hosting plans

List all of your existing Web Hosting plans. Various filters are available to limit the results, including filtering by domain, status, tag and Project ID.

Usage:

TerminalCode
scw webhosting hosting list [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
order-bySort order for Web Hosting plans in the responseOne of: created_at_asc, created_at_desc
tags.{index}Tags to filter for, only Web Hosting plans with matching tags will be returned
statuses.{index}Statuses to filter for, only Web Hosting plans with matching statuses will be returnedOne of: unknown_status, delivering, ready, deleting, error, locked, migrating, updating, payment_pending, payment_failed
domainDomain to filter for, only Web Hosting plans associated with this domain will be returned
project-idProject ID to filter for, only Web Hosting plans from this Project will be returned
control-panels.{index}Name of the control panel to filter for, only Web Hosting plans from this control panel will be returned
subdomainOptional free subdomain linked to the Web Hosting plan
organization-idOrganization ID to filter for, only Web Hosting plans from this Organization will be returned
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, nl-ams, pl-waw, all

Examples:

List all hostings of a given project ID

TerminalCode
scw webhosting hosting list project-id=a3244331-5d32-4e36-9bf9-b60233e201c7 organization-id=a3244331-5d32-4e36-9bf9-b60233e201c7

Update a Web Hosting plan

Update the details of one of your existing Web Hosting plans, specified by its hosting_id. You can update parameters including the contact email address, tags, options and offer.

Usage:

TerminalCode
scw webhosting hosting update [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
hosting-idHosting IDRequired
emailNew contact email for the Web Hosting plan
tags.{index}New tags for the Web Hosting plan
offer-options.{index}.idOffer option ID
offer-options.{index}.quantityThe option requested quantity to set for the Web Hosting plan
offer-idID of the new offer for the Web Hosting plan
protectedWhether the hosting is protected or not
delete-hosting-after-commitmentWhether the hosting is deleted at the end of the commitment period
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, nl-ams, pl-waw

Examples:

Update the contact email of a given hosting

TerminalCode
scw webhosting hosting update hosting-id=11111111-1111-1111-1111-111111111111 email=foobar@example.com

Overwrite tags of a given hosting

TerminalCode
scw webhosting hosting update hosting-id=11111111-1111-1111-1111-111111111111 tags.0=foo tags.1=bar

Mail Account

Mail accounts represent the email addresses you can create and manage within your Web Hosting plan.

Update the password of a mail account within your hosting plan.

Update the password of a mail account within your hosting plan.

Usage:

TerminalCode
scw webhosting mail-account change-password [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
hosting-idUUID of the hosting planRequired
domainDomain part of the mail account address
usernameUsername part of the mail account address
passwordNew password for the mail account
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, nl-ams, pl-waw

Create a new mail account within your hosting plan.

Create a new mail account within your hosting plan.

Usage:

TerminalCode
scw webhosting mail-account create [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
hosting-idUUID of the hosting planRequired
domainDomain part of the mail account address
usernameUsername part address of the mail account address
passwordPassword for the new mail account
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, nl-ams, pl-waw

Delete a mail account within your hosting plan.

Delete a mail account within your hosting plan.

Usage:

TerminalCode
scw webhosting mail-account delete [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
hosting-idUUID of the hosting planRequired
domainDomain part of the mail account address
usernameUsername part of the mail account address
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, nl-ams, pl-waw

List all mail accounts within your hosting plan.

List all mail accounts within your hosting plan.

Usage:

TerminalCode
scw webhosting mail-account list [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
order-bySort order of mail accounts in the responseOne of: username_asc, username_desc, domain_asc, domain_desc
hosting-idUUID of the hosting planRequired
domainDomain to filter the mail accounts
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, nl-ams, pl-waw, all

Offer

Offers represent the available Web Hosting plans and their associated options.

List all available hosting offers along with their specific options.

List all available hosting offers along with their specific options.

Usage:

TerminalCode
scw webhosting offer list [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
order-bySort order for Web Hosting offers in the responseOne of: price_asc
hosting-idUUID of the hosting plan
control-panels.{index}Name of the control panel(s) to filter for
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, nl-ams, pl-waw, all

Progresses

Progresses give details on the advancement of a backup,.

Retrieve detailed information about a specific progress by its ID.

Retrieve detailed information about a specific progress by its ID.

Usage:

TerminalCode
scw webhosting progress get [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
hosting-idID of the hosting associated with the progress.Required
progress-idID of the progress to retrieve.Required
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, nl-ams, pl-waw

List recent progresses associated with a specific backup, grouped by type.

List recent progresses associated with a specific backup, grouped by type.

Usage:

TerminalCode
scw webhosting progress list [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
hosting-idID of the hosting linked to the progress.Required
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, nl-ams, pl-waw

Website

Websites represent the domains and paths hosted within your Web Hosting plan.

List all websites for a specific hosting.

List all websites for a specific hosting.

Usage:

TerminalCode
scw webhosting website list [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
hosting-idUUID of the hosting planRequired
order-bySort order for Web Hosting websites in the responseOne of: domain_asc, domain_desc
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, nl-ams, pl-waw, all