scale_computing.hypercore.vm_snapshot_info module – List VM snapshots on HyperCore API
Note
This module is part of the scale_computing.hypercore collection (version 1.6.0).
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install scale_computing.hypercore
.
To use it in a playbook, specify: scale_computing.hypercore.vm_snapshot_info
.
New in scale_computing.hypercore 1.2.0
Synopsis
Use this module to list information about the VM Snapshots on HyperCore API.
Parameters
Parameter |
Comments |
---|---|
Scale Computing HyperCore instance information. |
|
Select login method. If not set, the value of the Value local - username/password is verified by the HyperCore server (the local users). Value oidc - username/password is verified by the configured OIDC provider. Choices:
|
|
The HyperCore instance URL. If not set, the value of the For example “https://10.1.2.3:443”. |
|
Password used for authentication. If not set, the value of the |
|
Timeout in seconds for the connection with the Scale Computing HyperCore API instance. If not set, the value of the |
|
Username used for authentication. If not set, the value of the |
|
List snapshots by this desired snapshot label |
|
List snapshots by this desired serial |
|
List snapshots by this desired VM name |
Examples
- name: List all VM snapshots on HyperCore API
scale_computing.hypercore.vm_snapshot_info:
register: vm_snapshot
- name: List all VM snapshots on HyperCore API with label="example-label"
scale_computing.hypercore.vm_snapshot_info:
label: example-label
register: vm_snapshot
- name: List all VM snapshots on HyperCore API with vm_name="example-vm"
scale_computing.hypercore.vm_snapshot_info:
vm_name: example-vm
register: vm_snapshot
- name: List all VM snapshots on HyperCore API with serial=0
scale_computing.hypercore.vm_snapshot_info:
serial: 0
register: vm_snapshot
- name: >-
List all VM snapshots on HyperCore API with
label="example-label", vm_name="example-vm", serial=0
scale_computing.hypercore.vm_snapshot_info:
label: example-label
vm_name: example-vm
serial: 0
register: vm_snapshot
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
A list of VM Snapshot records. Returned: success |
|
Unix timestamp used when determining which automated snapshots to retain Returned: success Sample: |
|
Snapshot serial number of the previous snapshot Returned: success Sample: |
|
Snapshots of each VM block device Returned: success Sample: |
|
User-readable label describing the snapshot Returned: success Sample: |
|
Unix timestamp indicating when automated snapshots will be automatically removed Returned: success Sample: |
|
Unix timestamp indicating when remote automated snapshots will be removed Returned: success Sample: |
|
Will replicate snapshot to a remote system or not in case if replication is configured Returned: success Sample: |
|
Snapshot’s unique identifier Returned: success Sample: |
|
Unix timestamp of when snapshot was created Returned: success Sample: |
|
Snapshot type Returned: success Sample: |
|
source VM Returned: success Sample: |
|
name of the source VM Returned: success Sample: |