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
This API allows you to manage your CPU and GPU Instances.
246
246
*/
247
247
exportclassAPIextendsParentAPI{
248
248
/** Lists the available zones of the API. */
@@ -280,8 +280,7 @@ export class API extends ParentAPI {
280
280
)
281
281
282
282
/**
283
-
* List Instance types. List available Instance types and their technical
284
-
* details.
283
+
* List Instance types. List available Instance types and their technical details.
285
284
*
286
285
* @param request - The request {@link ListServersTypesRequest}
287
286
* @returns A Promise of ListServersTypesResponse
@@ -361,8 +360,7 @@ export class API extends ParentAPI {
361
360
)
362
361
363
362
/**
364
-
* List all Instances. List all Instances in a specified Availability Zone,
365
-
* e.g. `fr-par-1`.
363
+
* List all Instances. List all Instances in a specified Availability Zone, e.g. `fr-par-1`.
366
364
*
367
365
* @param request - The request {@link ListServersRequest}
368
366
* @returns A Promise of ListServersResponse
@@ -436,8 +434,7 @@ export class API extends ParentAPI {
436
434
)
437
435
438
436
/**
439
-
* List Instance actions. List all actions (e.g. power on, power off, reboot)
440
-
* that can currently be performed on an Instance.
437
+
* List Instance actions. List all actions (e.g. power on, power off, reboot) that can currently be performed on an Instance.
441
438
*
442
439
* @param request - The request {@link ListServerActionsRequest}
443
440
* @returns A Promise of ListServerActionsResponse
@@ -452,26 +449,22 @@ export class API extends ParentAPI {
452
449
)
453
450
454
451
/**
455
-
* Perform action. Perform an action on an Instance. Available actions are:
456
-
* `poweron`: Start a stopped Instance. `poweroff`: Fully stop the Instance
457
-
* and release the hypervisor slot. `stop_in_place`: Stop the Instance, but
458
-
* keep the slot on the hypervisor. `reboot`: Stop the instance and restart
459
-
* it. `backup`: Create an image with all the volumes of an Instance.
460
-
* `terminate`: Delete the Instance along with its attached volumes, except
461
-
* for SBS volumes. `enable_routed_ip`: Migrate the Instance to the new
462
-
* network stack.
463
-
*
464
-
* The `terminate` action will result in the deletion of `l_ssd`, `b_ssd` and
465
-
* `scratch` volumes types, `sbs_volume` volumes type will only be detached.
466
-
* If you want to preserve your volumes, you should detach them before the
467
-
* Instance deletion or `terminate` action.
468
-
*
469
-
* The `backup` action can be done with: No `volumes` key in the body: an
470
-
* image is created with snapshots of all the server volumes, except for the
471
-
* `scratch` volumes types. `volumes` key in the body with a dictionary as
472
-
* value, in this dictionary volumes UUID as keys and empty dictionaries as
473
-
* values : an image is created with the snapshots of the volumes in `volumes`
474
-
* key. `scratch` volumes types can't be shapshotted.
452
+
* Perform action. Perform an action on an Instance.
453
+
Available actions are:
454
+
* `poweron`: Start a stopped Instance.
455
+
* `poweroff`: Fully stop the Instance and release the hypervisor slot.
456
+
* `stop_in_place`: Stop the Instance, but keep the slot on the hypervisor.
457
+
* `reboot`: Stop the instance and restart it.
458
+
* `backup`: Create an image with all the volumes of an Instance.
459
+
* `terminate`: Delete the Instance along with its attached volumes, except for SBS volumes.
460
+
* `enable_routed_ip`: Migrate the Instance to the new network stack.
461
+
462
+
The `terminate` action will result in the deletion of `l_ssd`, `b_ssd` and `scratch` volumes types, `sbs_volume` volumes type will only be detached.
463
+
If you want to preserve your volumes, you should detach them before the Instance deletion or `terminate` action.
464
+
465
+
The `backup` action can be done with:
466
+
* No `volumes` key in the body: an image is created with snapshots of all the server volumes, except for the `scratch` volumes types.
467
+
* `volumes` key in the body with a dictionary as value, in this dictionary volumes UUID as keys and empty dictionaries as values : an image is created with the snapshots of the volumes in `volumes` key. `scratch` volumes types can't be shapshotted.
475
468
*
476
469
* @param request - The request {@link ServerActionRequest}
477
470
* @returns A Promise of ServerActionResponse
@@ -516,12 +509,12 @@ export class API extends ParentAPI {
516
509
})
517
510
518
511
/**
519
-
* Get Instance compatible types. Get compatible commercial types that can be
520
-
* used to update the Instance. The compatibility of an Instance offer is
521
-
* based on: the CPU architecture the OS type the required l_ssd storage size
522
-
* the required scratch storage size If the specified Instance offer is
523
-
* flagged as end of service, the best compatible offer is the first
524
-
* returned.
512
+
* Get Instance compatible types. Get compatible commercial types that can be used to update the Instance. The compatibility of an Instance offer is based on:
513
+
* the CPU architecture
514
+
* the OS type
515
+
* the required l_ssd storage size
516
+
* the required scratch storage size
517
+
If the specified Instance offer is flagged as end of service, the best compatible offer is the first returned.
525
518
*
526
519
* @param request - The request {@link GetServerCompatibleTypesRequest}
527
520
* @returns A Promise of ServerCompatibleTypes
@@ -607,8 +600,7 @@ export class API extends ParentAPI {
607
600
)
608
601
609
602
/**
610
-
* Create an Instance image. Create an Instance image from the specified
611
-
* snapshot ID.
603
+
* Create an Instance image. Create an Instance image from the specified snapshot ID.
612
604
*
613
605
* @param request - The request {@link CreateImageRequest}
614
606
* @returns A Promise of CreateImageResponse
@@ -690,8 +682,7 @@ export class API extends ParentAPI {
690
682
)
691
683
692
684
/**
693
-
* List snapshots. List all snapshots of an Organization in a specified
694
-
* Availability Zone.
685
+
* List snapshots. List all snapshots of an Organization in a specified Availability Zone.
695
686
*
696
687
* @param request - The request {@link ListSnapshotsRequest}
697
688
* @returns A Promise of ListSnapshotsResponse
@@ -700,9 +691,7 @@ export class API extends ParentAPI {
* Create a snapshot from a specified volume or from a QCOW2 file. Create a
704
-
* snapshot from a specified volume or from a QCOW2 file in a specified
705
-
* Availability Zone.
694
+
* Create a snapshot from a specified volume or from a QCOW2 file. Create a snapshot from a specified volume or from a QCOW2 file in a specified Availability Zone.
706
695
*
707
696
* @param request - The request {@link CreateSnapshotRequest}
708
697
* @returns A Promise of CreateSnapshotResponse
@@ -779,8 +768,7 @@ export class API extends ParentAPI {
779
768
})
780
769
781
770
/**
782
-
* Export a snapshot. Export a snapshot to a specified Object Storage bucket
783
-
* in the same region.
771
+
* Export a snapshot. Export a snapshot to a specified Object Storage bucket in the same region.
784
772
*
785
773
* @param request - The request {@link ExportSnapshotRequest}
786
774
* @returns A Promise of ExportSnapshotResponse
@@ -822,8 +810,7 @@ export class API extends ParentAPI {
822
810
)
823
811
824
812
/**
825
-
* List volumes. List volumes in the specified Availability Zone. You can
826
-
* filter the output by volume type.
813
+
* List volumes. List volumes in the specified Availability Zone. You can filter the output by volume type.
827
814
*
828
815
* @param request - The request {@link ListVolumesRequest}
829
816
* @returns A Promise of ListVolumesResponse
@@ -832,8 +819,7 @@ export class API extends ParentAPI {
* Create a volume. Create a volume of a specified type in an Availability
836
-
* Zone.
822
+
* Create a volume. Create a volume of a specified type in an Availability Zone.
837
823
*
838
824
* @param request - The request {@link CreateVolumeRequest}
839
825
* @returns A Promise of CreateVolumeResponse
@@ -867,9 +853,7 @@ export class API extends ParentAPI {
867
853
)
868
854
869
855
/**
870
-
* Update a volume. Replace the name and/or size properties of a volume
871
-
* specified by its ID, with the specified value(s). Any volume name can be
872
-
* changed, however only `b_ssd` volumes can currently be increased in size.
856
+
* Update a volume. Replace the name and/or size properties of a volume specified by its ID, with the specified value(s). Any volume name can be changed, however only `b_ssd` volumes can currently be increased in size.
873
857
*
874
858
* @param request - The request {@link UpdateVolumeRequest}
875
859
* @returns A Promise of UpdateVolumeResponse
@@ -937,8 +921,7 @@ export class API extends ParentAPI {
937
921
)
938
922
939
923
/**
940
-
* Create a security group. Create a security group with a specified name and
941
-
* description.
924
+
* Create a security group. Create a security group with a specified name and description.
942
925
*
943
926
* @param request - The request {@link CreateSecurityGroupRequest}
944
927
* @returns A Promise of CreateSecurityGroupResponse
@@ -957,8 +940,7 @@ export class API extends ParentAPI {
957
940
)
958
941
959
942
/**
960
-
* Get a security group. Get the details of a security group with the
961
-
* specified ID.
943
+
* Get a security group. Get the details of a security group with the specified ID.
962
944
*
963
945
* @param request - The request {@link GetSecurityGroupRequest}
964
946
* @returns A Promise of GetSecurityGroupResponse
@@ -1016,8 +998,7 @@ export class API extends ParentAPI {
1016
998
)
1017
999
1018
1000
/**
1019
-
* Get default rules. Lists the default rules applied to all the security
1020
-
* groups.
1001
+
* Get default rules. Lists the default rules applied to all the security groups.
1021
1002
*
1022
1003
* @param request - The request {@link ListDefaultSecurityGroupRulesRequest}
1023
1004
* @returns A Promise of ListSecurityGroupRulesResponse
@@ -1079,10 +1060,7 @@ export class API extends ParentAPI {
1079
1060
)
1080
1061
1081
1062
/**
1082
-
* Update all the rules of a security group. Replaces the existing rules of
1083
-
* the security group with the rules provided. This endpoint supports the
1084
-
* update of existing rules, creation of new rules and deletion of existing
1085
-
* rules when they are not passed in the request.
1063
+
* Update all the rules of a security group. Replaces the existing rules of the security group with the rules provided. This endpoint supports the update of existing rules, creation of new rules and deletion of existing rules when they are not passed in the request.
1086
1064
*
1087
1065
* @param request - The request {@link SetSecurityGroupRulesRequest}
1088
1066
* @returns A Promise of SetSecurityGroupRulesResponse
@@ -1144,8 +1122,7 @@ export class API extends ParentAPI {
1144
1122
)
1145
1123
1146
1124
/**
1147
-
* Update security group rule. Update the properties of a rule from a
1148
-
* specified security group.
1125
+
* Update security group rule. Update the properties of a rule from a specified security group.
1149
1126
*
1150
1127
* @param request - The request {@link UpdateSecurityGroupRuleRequest}
1151
1128
* @returns A Promise of UpdateSecurityGroupRuleResponse
@@ -1190,8 +1167,7 @@ export class API extends ParentAPI {
1190
1167
)
1191
1168
1192
1169
/**
1193
-
* List placement groups. List all placement groups in a specified
1194
-
* Availability Zone.
1170
+
* List placement groups. List all placement groups in a specified Availability Zone.
1195
1171
*
1196
1172
* @param request - The request {@link ListPlacementGroupsRequest}
1197
1173
* @returns A Promise of ListPlacementGroupsResponse
@@ -1204,8 +1180,7 @@ export class API extends ParentAPI {
1204
1180
)
1205
1181
1206
1182
/**
1207
-
* Create a placement group. Create a new placement group in a specified
1208
-
* Availability Zone.
1183
+
* Create a placement group. Create a new placement group in a specified Availability Zone.
1209
1184
*
1210
1185
* @param request - The request {@link CreatePlacementGroupRequest}
1211
1186
* @returns A Promise of CreatePlacementGroupResponse
@@ -1260,8 +1235,7 @@ export class API extends ParentAPI {
1260
1235
)
1261
1236
1262
1237
/**
1263
-
* Update a placement group. Update one or more parameter of the specified
1264
-
* placement group.
1238
+
* Update a placement group. Update one or more parameter of the specified placement group.
1265
1239
*
1266
1240
* @param request - The request {@link UpdatePlacementGroupRequest}
1267
1241
* @returns A Promise of UpdatePlacementGroupResponse
@@ -1291,8 +1265,7 @@ export class API extends ParentAPI {
1291
1265
})
1292
1266
1293
1267
/**
1294
-
* Get placement group servers. Get all Instances belonging to the specified
1295
-
* placement group.
1268
+
* Get placement group servers. Get all Instances belonging to the specified placement group.
1296
1269
*
1297
1270
* @param request - The request {@link GetPlacementGroupServersRequest}
1298
1271
* @returns A Promise of GetPlacementGroupServersResponse
@@ -1309,8 +1282,7 @@ export class API extends ParentAPI {
1309
1282
)
1310
1283
1311
1284
/**
1312
-
* Set placement group servers. Set all Instances belonging to the specified
1313
-
* placement group.
1285
+
* Set placement group servers. Set all Instances belonging to the specified placement group.
1314
1286
*
1315
1287
* @param request - The request {@link SetPlacementGroupServersRequest}
1316
1288
* @returns A Promise of SetPlacementGroupServersResponse
@@ -1331,8 +1303,7 @@ export class API extends ParentAPI {
1331
1303
)
1332
1304
1333
1305
/**
1334
-
* Update placement group servers. Update all Instances belonging to the
1335
-
* specified placement group.
1306
+
* Update placement group servers. Update all Instances belonging to the specified placement group.
1336
1307
*
1337
1308
* @param request - The request {@link UpdatePlacementGroupServersRequest}
1338
1309
* @returns A Promise of UpdatePlacementGroupServersResponse
@@ -1388,8 +1359,7 @@ export class API extends ParentAPI {
* endpoint to confirm that all resources listed in the plan should be
1581
-
* migrated.
1533
+
* Get a volume or snapshot's migration plan. Given a volume or snapshot, returns the migration plan but does not perform the actual migration. To perform the migration, you have to call the [Migrate a volume and/or snapshots to SBS](#path-volumes-migrate-a-volume-andor-snapshots-to-sbs-scaleway-block-storage) endpoint afterward.
1534
+
The endpoint returns the resources that should be migrated together:
1535
+
- the volume and any snapshots created from the volume, if the call was made to plan a volume migration.
1536
+
- the base volume of the snapshot (if the volume is not deleted) and its related snapshots, if the call was made to plan a snapshot migration.
1537
+
The endpoint also returns the validation_key, which must be provided to the [Migrate a volume and/or snapshots to SBS](#path-volumes-migrate-a-volume-andor-snapshots-to-sbs-scaleway-block-storage) endpoint to confirm that all resources listed in the plan should be migrated.
1582
1538
*
1583
1539
* @param request - The request {@link PlanBlockMigrationRequest}
1584
1540
* @returns A Promise of MigrationPlan
@@ -1597,12 +1553,7 @@ export class API extends ParentAPI {
1597
1553
)
1598
1554
1599
1555
/**
1600
-
* Migrate a volume and/or snapshots to SBS (Scaleway Block Storage). To be
1601
-
* used, the call to this endpoint must be preceded by a call to the [Get a
1602
-
* volume or snapshot's migration
1603
-
* plan](#path-volumes-get-a-volume-or-snapshots-migration-plan) endpoint. To
1604
-
* migrate all resources mentioned in the migration plan, the validation_key
1605
-
* returned in the plan must be provided.
1556
+
* Migrate a volume and/or snapshots to SBS (Scaleway Block Storage). To be used, the call to this endpoint must be preceded by a call to the [Get a volume or snapshot's migration plan](#path-volumes-get-a-volume-or-snapshots-migration-plan) endpoint. To migrate all resources mentioned in the migration plan, the validation_key returned in the plan must be provided.
1606
1557
*
1607
1558
* @param request - The request {@link ApplyBlockMigrationRequest}
0 commit comments