Hierarchy

  • API
    • API

Constructors

Properties

LOCALITIES: Zone[] = ...

Lists the available zones of the API.

Methods

  • 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.

    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. If you want to preserve your volumes, you should detach them before the Instance deletion or terminate action.

    The backup action can be done with: No volumes key in the body: an image is created with snapshots of all the server volumes, except for the scratch volumes types. 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.

    Parameters

    Returns Promise<ServerActionResponse>

    A Promise of ServerActionResponse