You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pages/instances/api-cli/creating-a-volume.mdx
+7-3Lines changed: 7 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,13 +7,17 @@ content:
7
7
paragraph: This page explains how to create a Block Storage volume using the Scaleway API.
8
8
tags: block-storage block volume create storage
9
9
dates:
10
-
validation: 2025-01-02
10
+
validation: 2025-06-02
11
11
posted: 2020-01-10
12
12
categories:
13
13
- block-storage
14
14
- storage
15
15
---
16
16
17
+
<Messagetype="important">
18
+
Creating Block Storage volumes via the Instances API is deprected and the information below is proposed for informative purposes only. [Learn how to create a volume using the Block Storage API.](https://www.scaleway.com/en/developers/api/block/#path-volume-create-a-volume)
19
+
</Message>
20
+
17
21
<Macroid="requirements" />
18
22
19
23
- A Scaleway account logged into the [console](https://console.scaleway.com)
@@ -24,7 +28,7 @@ categories:
24
28
1. Create a block volume from the API by launching the following command:
Copy file name to clipboardExpand all lines: pages/instances/api-cli/creating-backups.mdx
+11-7Lines changed: 11 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ content:
7
7
paragraph: This page explains how to create backups of your Instaces using the Scaleway API
8
8
tags: instance create backup scaleway-api
9
9
dates:
10
-
validation: 2025-01-02
10
+
validation: 2025-05-28
11
11
posted: 2021-05-26
12
12
categories:
13
13
- compute
@@ -38,12 +38,12 @@ The Backup feature is used to back up your Instance data. It creates an image of
38
38
<Messagetype="tip">
39
39
By default, the name of the image is built according to the name of the server and the date. You can specify a name for the image in the request:
40
40
```sh
41
-
scw instance server backp server-id zone=fr-par-1 name=myimagename
41
+
scw instance server backup <server-id> zone=fr-par-1 name=<my-image-name>
42
42
```
43
43
</Message>
44
44
A backup request will create an image object. You can view it using:
45
45
```sh
46
-
scw instance image get image-uid zone=fr-par-1
46
+
scw instance image get <image-uid> zone=fr-par-1
47
47
```
48
48
An image contains one snapshot for each volume of the Instance. These snapshots are visible within the image response as `root_volume` and `extra_volumes` fields.
49
49
</TabsTab>
@@ -78,22 +78,26 @@ The Backup feature is used to back up your Instance data. It creates an image of
Copy file name to clipboardExpand all lines: pages/instances/api-cli/managing-instance-snapshot-via-cli.mdx
+16-10Lines changed: 16 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ content:
7
7
paragraph: This page explains how to manage Scaleway Instance snapshots with the CLI (v2)
8
8
tags: manage instance snapshot cli cli-v2
9
9
dates:
10
-
validation: 2025-04-22
10
+
validation: 2025-05-28
11
11
posted: 2022-09-24
12
12
categories:
13
13
- compute
@@ -38,15 +38,11 @@ The following arguments and flags are available to customize your command:
38
38
39
39
```sh
40
40
ARGS:
41
+
[volume-id] UUID of the volume to snapshot
41
42
[name=<generated>] Name of the snapshot
42
-
[volume-id] UUID of the volume
43
-
[tags.{index}] The tags of the snapshot
44
43
[project-id] Project ID to use. If none is passed the default project ID will be used
45
-
[bucket] Bucket name for snapshot imports
46
-
[key] Object key for snapshot imports
47
-
[size] Imported snapshot size, must be a multiple of 512
48
-
[organization-id] Organization ID to use. If none is passed the default organization ID will be used
49
-
[zone=fr-par-1] Zone to target. If none is passed will use the default zone from the config (fr-par-1 | fr-par-2 | fr-par-3 | nl-ams-1 | nl-ams-2 | pl-waw-1)
44
+
[tags.{index}] List of tags assigned to the snapshot
45
+
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | fr-par-3 | nl-ams-1 | nl-ams-2 | nl-ams-3 | pl-waw-1 | pl-waw-2 | pl-waw-3)
50
46
51
47
FLAGS:
52
48
-h, --help helpfor create
@@ -82,11 +78,21 @@ Run the following command to create a named snapshot from the given volume ID. R
## Exporting a QCOW file to an Object Storage bucket from an Instance snapshot
82
+
83
+
Run the following command to export an Instance snapshot as a QCOW2 file to an existing Object Storage bucket in the same geographical region as the snapshot.
## Importing a QCOW file from an Object Storage bucket as Instance snapshot
86
90
87
-
Run the following command to import a QCOW file as an Instance snapshot. Replace the bucket name `my-bucket` with the name of your Object Storage bucket and the file name `qcow2-file-name.qcow2` with the name of your QCOW file.
91
+
Run the following command to import a QCOW file as an Instance snapshot. Replace the snapshot name `my-imported-snapshot` with the name of the snapshot to create, the bucket name `my-bucket` with the name of your Object Storage bucket and the file name `my-qcow2-file-name.qcow2` with the name of your QCOW file.
92
+
Specify the size of the imoported snapshot with the `size=10GB` flag.
0 commit comments