Skip to content

Commit 2b2491e

Browse files
committed
docs(ins): update snapshot command
1 parent 200d200 commit 2b2491e

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

pages/instances/api-cli/managing-instance-snapshot-via-cli.mdx

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,13 @@ You can use the Scaleway CLI to create, export, and import snapshots of your Ins
2727

2828
To create a snapshot from a volume using the CLI, run the following command:
2929
```
30-
scw instance snapshot create [arg=value ...]
30+
scw block snapshot create [arg=value ...]
3131
```
3232

33+
<Message type="important">
34+
Snapshots have been migrated to the Block Storage API. The previous command `scw instance snapshot create` is now deprecated and no longer functions.
35+
</Message>
36+
3337
The following arguments and flags are available to customize your command:
3438

3539
```sh
@@ -60,29 +64,29 @@ GLOBAL FLAGS:
6064
To create a snapshot in the default zone from the given volume ID, run the following command. Remember to replace `11111111-1111-1111-1111-111111111111` with the actual ID of your volume.
6165
6266
```
63-
scw instance snapshot create volume-id=11111111-1111-1111-1111-111111111111
67+
scw block snapshot create volume-id=11111111-1111-1111-1111-111111111111
6468
```
6569
6670
## Creating a snapshot in a specific zone from the given volume ID
6771
6872
To create a snapshot in a specific zone (e.g. `fr-par-1`) from the given volume ID, run the following command. Remember to replace `11111111-1111-1111-1111-111111111111` with the actual ID of your volume.
6973
```
70-
scw instance snapshot create zone=fr-par-1 volume-id=11111111-1111-1111-1111-111111111111
74+
scw block snapshot create zone=fr-par-1 volume-id=11111111-1111-1111-1111-111111111111
7175
```
7276
7377
## Creating a named snapshot in the default zone from a given volume ID
7478
7579
Run the following command to create a named snapshot from the given volume ID. Remember to replace `11111111-1111-1111-1111-111111111111` with the actual ID of your volume.
7680
7781
```
78-
scw instance snapshot create name=foobar volume-id=11111111-1111-1111-1111-111111111111
82+
scw block snapshot create name=foobar volume-id=11111111-1111-1111-1111-111111111111
7983
```
8084
8185
## Importing a QCOW file from an Object Storage bucket as Instance snapshot
8286
8387
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.
8488
```
85-
scw instance snapshot create zone=fr-par-1 name=my-imported-snapshot volume-type=b_ssd bucket=my-bucket key=my-qcow2-file-name.qcow
89+
scw block snapshot create zone=fr-par-1 name=my-imported-snapshot volume-type=b_ssd bucket=my-bucket key=my-qcow2-file-name.qcow
8690
```
8791
8892
<Message type="important">

tutorials/create-openwrt-image-for-scaleway/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ In this example, we use the [AWS CLI](/object-storage/api-cli/object-storage-aws
305305
2. Trigger the import of the image as a snapshot in one of the regions where the bucket is located, using [SCW CLI](https://github.com/scaleway/scaleway-cli):
306306
307307
```
308-
scw instance snapshot create name=openwrt volume-type=b_ssd bucket=my-import-bucket key=openwrt.qcow2
308+
scw block snapshot create name=openwrt volume-type=b_ssd bucket=my-import-bucket key=openwrt.qcow2
309309
```
310310
311311
3. Create the corresponding Instance image:

0 commit comments

Comments
 (0)