community.general.proxmox_backup_info module – Retrieve information on Proxmox scheduled backups
Note
This module is part of the community.general collection (version 10.4.0).
You might already have this collection installed if you are using the ansible
package.
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 community.general
.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: community.general.proxmox_backup_info
.
New in community.general 10.3.0
Synopsis
Retrieve information such as backup times, VM name, VM ID, mode, backup type, and backup schedule using the Proxmox Server API.
Requirements
The below requirements are needed on the host that executes this module.
proxmoxer
requests
Parameters
Parameter |
Comments |
---|---|
Specify the target host of the Proxmox VE cluster. |
|
Specify the password to authenticate with. You can use |
|
Specify the target port of the Proxmox VE cluster. Uses the |
|
Specify the token ID. Requires |
|
Specify the token secret. Requires |
|
Specify the user to authenticate with. |
|
If This should only be used on personally controlled sites using self-signed certificates. Choices:
|
|
The ID of the Proxmox VM. If defined, the returned list will contain backup jobs that have been parsed and filtered based on Mutually exclusive with |
|
The name of the Proxmox VM. If defined, the returned list will contain backup jobs that have been parsed and filtered based on Mutually exclusive with |
Attributes
Attribute |
Support |
Description |
---|---|---|
Action group: community.general.proxmox |
Use |
|
Support: full This action does not modify state. |
Can run in |
|
Support: N/A This action does not modify state. |
Will return details on what has changed (or possibly needs changing in |
Examples
- name: Print all backup information by VM ID and VM name
community.general.proxmox_backup_info:
api_user: 'myUser@pam'
api_password: '*******'
api_host: '192.168.20.20'
- name: Print Proxmox backup information for a specific VM based on its name
community.general.proxmox_backup_info:
api_user: 'myUser@pam'
api_password: '*******'
api_host: '192.168.20.20'
vm_name: 'mailsrv'
- name: Print Proxmox backup information for a specific VM based on its VM ID
community.general.proxmox_backup_info:
api_user: 'myUser@pam'
api_password: '*******'
api_host: '192.168.20.20'
vm_id: '150'
- name: Print Proxmox all backup job information
community.general.proxmox_backup_info:
api_user: 'myUser@pam'
api_password: '*******'
api_host: '192.168.20.20'
backup_jobs: true
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
The return value provides backup job information based on VM ID or VM name, or total backup job information. Returned: on success, but can be empty |
|
The type of the backup. Returned: on success Sample: |
|
Returned: on success Sample: |
|
The backup job ID. Returned: on success Sample: |
|
The backup job mode such as snapshot. Returned: on success Sample: |
|
The next backup time. Returned: on success Sample: |
|
The backup job schedule. Returned: on success Sample: |
|
The backup storage location. Returned: on success Sample: |
|
The VM name. Returned: on success Sample: |
|
The VM ID. Returned: on success Sample: |