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
To be used, the call to this endpoint must be preceded by a call to the "Plan a migration" endpoint. To migrate all resources mentioned in the migration plan, the validation_key returned in the plan must be provided.
snapshot-id The snapshot to migrate, along with potentially other resources, according to the migration plan generated with a call to the "Plan a migration" endpoint.
10
+
validation-key A value to be retrieved from a call to the "Plan a migration" endpoint, to confirm that the volume and/or snapshots specified in said plan should be migrated.
11
+
[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)
12
+
13
+
FLAGS:
14
+
-h, --help help for apply-migration
15
+
16
+
GLOBAL FLAGS:
17
+
-c, --config string The path to the config file
18
+
-D, --debug Enable debug mode
19
+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
Given a volume or snapshot, returns the migration plan for a call to the "Apply a migration plan" endpoint. This plan will include zero or one volume, and zero or more snapshots, which will need to be migrated together. This endpoint does not perform the actual migration itself, the "Apply a migration plan" endpoint must be used. The validation_key value returned by this endpoint must be provided to the call to the "Apply a migration plan" endpoint to confirm that all resources listed in the plan should be migrated.
snapshot-id The snapshot for which the migration plan will be generated.
10
+
[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)
11
+
12
+
FLAGS:
13
+
-h, --help help for plan-migration
14
+
15
+
GLOBAL FLAGS:
16
+
-c, --config string The path to the config file
17
+
-D, --debug Enable debug mode
18
+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
Copy file name to clipboardExpand all lines: cmd/scw/testdata/test-all-usage-instance-volume-apply-migration-usage.golden
+2-3Lines changed: 2 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -3,11 +3,10 @@
3
3
To be used, the call to this endpoint must be preceded by a call to the "Plan a migration" endpoint. To migrate all resources mentioned in the migration plan, the validation_key returned in the plan must be provided.
[volume-id] The volume to migrate, along with potentially other resources, according to the migration plan generated with a call to the "Plan a migration" endpoint.
10
-
[snapshot-id] The snapshot to migrate, along with potentially other resources, according to the migration plan generated with a call to the "Plan a migration" endpoint.
9
+
volume-id The volume to migrate, along with potentially other resources, according to the migration plan generated with a call to the "Plan a migration" endpoint.
11
10
validation-key A value to be retrieved from a call to the "Plan a migration" endpoint, to confirm that the volume and/or snapshots specified in said plan should be migrated.
12
11
[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)
Copy file name to clipboardExpand all lines: cmd/scw/testdata/test-all-usage-instance-volume-plan-migration-usage.golden
+2-3Lines changed: 2 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -3,11 +3,10 @@
3
3
Given a volume or snapshot, returns the migration plan for a call to the "Apply a migration plan" endpoint. This plan will include zero or one volume, and zero or more snapshots, which will need to be migrated together. This endpoint does not perform the actual migration itself, the "Apply a migration plan" endpoint must be used. The validation_key value returned by this endpoint must be provided to the call to the "Apply a migration plan" endpoint to confirm that all resources listed in the plan should be migrated.
[volume-id] The volume for which the migration plan will be generated.
10
-
[snapshot-id] The snapshot for which the migration plan will be generated.
9
+
volume-id The volume for which the migration plan will be generated.
11
10
[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)
-[Migrate a volume and/or snapshots to SBS (Scaleway Block Storage)](#migrate-a-volume-andor-snapshots-to-sbs-(scaleway-block-storage))
78
79
-[Create a snapshot from a specified volume or from a QCOW2 file](#create-a-snapshot-from-a-specified-volume-or-from-a-qcow2-file)
79
80
-[Delete a snapshot](#delete-a-snapshot)
80
81
-[Export a snapshot](#export-a-snapshot)
81
82
-[Get a snapshot](#get-a-snapshot)
82
83
-[List snapshots](#list-snapshots)
84
+
-[Get a volume or snapshot's migration plan](#get-a-volume-or-snapshot's-migration-plan)
83
85
-[Update a snapshot](#update-a-snapshot)
84
86
-[Wait for snapshot to reach a stable state](#wait-for-snapshot-to-reach-a-stable-state)
85
87
-[SSH Utilities](#ssh-utilities)
@@ -2415,6 +2417,27 @@ A snapshot's volume type is its original volume's type (`l_ssd` or `b_ssd`).
2415
2417
Volumes can be created from snapshots of their own type.
2416
2418
2417
2419
2420
+
### Migrate a volume and/or snapshots to SBS (Scaleway Block Storage)
2421
+
2422
+
To be used, the call to this endpoint must be preceded by a call to the "Plan a migration" endpoint. To migrate all resources mentioned in the migration plan, the validation_key returned in the plan must be provided.
| snapshot-id || The snapshot to migrate, along with potentially other resources, according to the migration plan generated with a call to the "Plan a migration" endpoint. |
2436
+
| validation-key | Required | A value to be retrieved from a call to the "Plan a migration" endpoint, to confirm that the volume and/or snapshots specified in said plan should be migrated. |
2437
+
| zone | Default: `fr-par-1`<br />One of: `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`| Zone to target. If none is passed will use default zone from the config |
2438
+
2439
+
2440
+
2418
2441
### Create a snapshot from a specified volume or from a QCOW2 file
2419
2442
2420
2443
Create a snapshot from a specified volume or from a QCOW2 file in a specified Availability Zone.
@@ -2609,6 +2632,26 @@ scw instance snapshot list zone=fr-par-1
2609
2632
2610
2633
2611
2634
2635
+
### Get a volume or snapshot's migration plan
2636
+
2637
+
Given a volume or snapshot, returns the migration plan for a call to the "Apply a migration plan" endpoint. This plan will include zero or one volume, and zero or more snapshots, which will need to be migrated together. This endpoint does not perform the actual migration itself, the "Apply a migration plan" endpoint must be used. The validation_key value returned by this endpoint must be provided to the call to the "Apply a migration plan" endpoint to confirm that all resources listed in the plan should be migrated.
| snapshot-id || The snapshot for which the migration plan will be generated. |
2651
+
| zone | Default: `fr-par-1`<br />One of: `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`| Zone to target. If none is passed will use default zone from the config |
2652
+
2653
+
2654
+
2612
2655
### Update a snapshot
2613
2656
2614
2657
Update the properties of a snapshot.
@@ -2899,7 +2942,7 @@ To be used, the call to this endpoint must be preceded by a call to the "Plan a
| volume-id || The volume to migrate, along with potentially other resources, according to the migration plan generated with a call to the "Plan a migration" endpoint. |
2911
-
| snapshot-id || The snapshot to migrate, along with potentially other resources, according to the migration plan generated with a call to the "Plan a migration" endpoint. |
2912
2954
| validation-key | Required | A value to be retrieved from a call to the "Plan a migration" endpoint, to confirm that the volume and/or snapshots specified in said plan should be migrated. |
2913
2955
| zone | Default: `fr-par-1`<br />One of: `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`| Zone to target. If none is passed will use default zone from the config |
2914
2956
@@ -3076,7 +3118,7 @@ Given a volume or snapshot, returns the migration plan for a call to the "Apply
| volume-id || The volume for which the migration plan will be generated. |
3088
-
| snapshot-id || The snapshot for which the migration plan will be generated. |
3089
3130
| zone | Default: `fr-par-1`<br />One of: `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`| Zone to target. If none is passed will use default zone from the config |
0 commit comments