community.proxmox.proxmox_backup_info module – Retrieve information on Proxmox scheduled backups
Note
This module is part of the community.proxmox collection (version 1.3.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.proxmox. You need further requirements to be able to use this module, see Requirements for details.
To use it in a playbook, specify: community.proxmox.proxmox_backup_info.
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 >= 2.0
- requests
Parameters
Parameter | Comments |
|---|---|
api_host string / required | Specify the target host of the Proxmox VE cluster. Uses the |
api_password string | Specify the password to authenticate with. Uses the |
api_port integer | Specify the target port of the Proxmox VE cluster. Uses the |
api_token_id string | Specify the token ID. Uses the |
api_token_secret string | Specify the token secret. Uses the |
api_user string / required | Specify the user to authenticate with. Uses the |
backup_jobs boolean | |
validate_certs boolean | If This should only be used on personally controlled sites using self-signed certificates. Uses the Choices:
|
vm_id string | 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 |
vm_name string | 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 | Action group: community.proxmox.proxmox | Use |
check_mode | Support: full This action does not modify state. | Can run in |
diff_mode | 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.proxmox.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.proxmox.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.proxmox.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.proxmox.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 |
|---|---|
backup_info list / elements=dictionary | 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 |
|
bktype string |
The type of the backup. Returned: on success Sample: |
|
enabled integer |
Returned: on success Sample: |
|
id string |
The backup job ID. Returned: on success Sample: |
|
mode string |
The backup job mode such as snapshot. Returned: on success Sample: |
|
next-run string |
The next backup time. Returned: on success Sample: |
|
schedule string |
The backup job schedule. Returned: on success Sample: |
|
storage string |
The backup storage location. Returned: on success Sample: |
|
vm_name string |
The VM name. Returned: on success Sample: |
|
vmid string |
The VM ID. Returned: on success Sample: |
Collection links
© 2012–2018 Michael DeHaan
© 2018–2025 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/collections/community/proxmox/proxmox_backup_info_module.html