Skip to content

v1.20.0

Latest

Choose a tag to compare

@shamrin shamrin released this 05 Feb 08:28
· 2 commits to master since this release
1d1fce3

Added

  • Add on_spot_discontinue parameter for instance OS volumes. Previously the policy was always 'keep_detached', now it can be set to 'move_to_trash' or 'delete_permanently':
    instance = verda_client.instances.create(
        hostname='test-instance',
        location=Locations.FIN_03,
        instance_type='CPU.4V.16G',
        description='test cpu instance',
        image='ubuntu-22.04',
        is_spot=True,
        ssh_key_ids=[ssh_key.id],
        os_volume=OSVolume(
            name='test-os-volume-spot',
            size=56,
            on_spot_discontinue='delete_permanently',
        ),
    )
  • Add delete_permanently parameter for instance delete action. When set, volume_ids will be deleted in one go, skipping trash:
    verda.instances.action(
        instance.id, 'delete',
        volume_ids=[instance.os_volume_id],
        delete_permanently=True,
    )