Hierarchy

  • API
    • API

Constructors

Properties

LOCALITIES: Zone[] = ...

Lists the available zones of the API.

Methods

  • 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 "Plan a migration" endpoint. To migrate all resources mentioned in the migration plan, the validation_key returned in the plan must be provided.

    Parameters

    Returns Promise<void>

  • Get a volume or snapshot's migration plan. 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.

    Parameters

    Returns Promise<MigrationPlan>

    A Promise of MigrationPlan

  • Perform action. Perform an action on an Instance. Available actions are: poweron: Start a stopped Instance. poweroff: Fully stop the Instance and release the hypervisor slot. stop_in_place: Stop the Instance, but keep the slot on the hypervisor. reboot: Stop the instance and restart it. backup: Create an image with all the volumes of an Instance. terminate: Delete the Instance along with its attached volumes, except for SBS volumes. enable_routed_ip: Migrate the Instance to the new network stack.

    Keep in mind that terminate an Instance will result in the deletion of l_ssd, b_ssd and scratch volumes types, sbs_volume volumes type will only be detached. If you want to preserve your volumes, you should detach them before the Instance deletion or terminate action.

    Parameters

    Returns Promise<ServerActionResponse>

    A Promise of ServerActionResponse