Snapshot
snapshot
This module allows you to create or remove a snapshot.
Example Syntax
Returned object
For more examples please check out the tests here.
state: present
Available parameters for state present:
datacenter str
True
The datacenter in which the volumes reside.
volume str
True
The name or UUID of the volume.
description str
False
Human-readable description.
api_url str
False
The Ionos API base URL.
certificate_fingerprint str
False
The Ionos API certificate fingerprint.
username str
False
The Ionos username. Overrides the IONOS_USERNAME environment variable.
password str
False
The Ionos password. Overrides the IONOS_PASSWORD environment variable.
token str
False
The Ionos token. Overrides the IONOS_TOKEN environment variable.
wait bool
False
Wait for the resource to be created before returning. Default: True Options: [True, False]
wait_timeout int
False
How long before wait gives up, in seconds. Default: 600
state str
False
Indicate desired state of the resource. Default: present Options: ['present', 'absent', 'update', 'restore']
state: absent
Available parameters for state absent:
snapshot str
True
The ID or name of an existing snapshot.
api_url str
False
The Ionos API base URL.
certificate_fingerprint str
False
The Ionos API certificate fingerprint.
username str
False
The Ionos username. Overrides the IONOS_USERNAME environment variable.
password str
False
The Ionos password. Overrides the IONOS_PASSWORD environment variable.
token str
False
The Ionos token. Overrides the IONOS_TOKEN environment variable.
wait bool
False
Wait for the resource to be created before returning. Default: True Options: [True, False]
wait_timeout int
False
How long before wait gives up, in seconds. Default: 600
state str
False
Indicate desired state of the resource. Default: present Options: ['present', 'absent', 'update', 'restore']
state: update
Available parameters for state update:
snapshot str
True
The ID or name of an existing snapshot.
licence_type str
False
OS type of this snapshot Options: ['UNKNOWN', 'WINDOWS', 'WINDOWS2016', 'WINDOWS2022', 'RHEL', 'LINUX', 'OTHER']
cpu_hot_plug bool
False
Hot-plug capable CPU (no reboot required).
cpu_hot_unplug bool
False
Hot-unplug capable CPU (no reboot required).
ram_hot_plug bool
False
Hot-plug capable RAM (no reboot required).
ram_hot_unplug bool
False
Hot-unplug capable RAM (no reboot required).
nic_hot_plug bool
False
Hot-plug capable NIC (no reboot required).
nic_hot_unplug bool
False
Hot-unplug capable NIC (no reboot required).
disc_scsi_hot_plug bool
False
Hot-plug capable SCSI drive (no reboot required).
disc_scsi_hot_unplug bool
False
Is capable of SCSI drive hot unplug (no reboot required). This works only for non-Windows virtual Machines.
disc_virtio_hot_plug bool
False
Hot-plug capable Virt-IO drive (no reboot required).
disc_virtio_hot_unplug bool
False
Hot-unplug capable Virt-IO drive (no reboot required). Not supported with Windows VMs.
api_url str
False
The Ionos API base URL.
certificate_fingerprint str
False
The Ionos API certificate fingerprint.
username str
False
The Ionos username. Overrides the IONOS_USERNAME environment variable.
password str
False
The Ionos password. Overrides the IONOS_PASSWORD environment variable.
token str
False
The Ionos token. Overrides the IONOS_TOKEN environment variable.
wait bool
False
Wait for the resource to be created before returning. Default: True Options: [True, False]
wait_timeout int
False
How long before wait gives up, in seconds. Default: 600
state str
False
Indicate desired state of the resource. Default: present Options: ['present', 'absent', 'update', 'restore']
state: restore
Available parameters for state restore:
datacenter str
True
The datacenter in which the volumes reside.
volume str
True
The name or UUID of the volume.
snapshot str
True
The ID or name of an existing snapshot.
api_url str
False
The Ionos API base URL.
certificate_fingerprint str
False
The Ionos API certificate fingerprint.
username str
False
The Ionos username. Overrides the IONOS_USERNAME environment variable.
password str
False
The Ionos password. Overrides the IONOS_PASSWORD environment variable.
token str
False
The Ionos token. Overrides the IONOS_TOKEN environment variable.
wait bool
False
Wait for the resource to be created before returning. Default: True Options: [True, False]
wait_timeout int
False
How long before wait gives up, in seconds. Default: 600
state str
False
Indicate desired state of the resource. Default: present Options: ['present', 'absent', 'update', 'restore']
Last updated