Skip to content

proxmox_snap: make it possible to list snapshots for a VM or container #229

@tinux-it

Description

@tinux-it
SUMMARY

Add functionality to the proxmox_snap module to allow users to list all snapshots for gven VM or container. This information can then be used by a user to delete specific snapshots using the state: absent calls.

ISSUE TYPE
  • Feature Idea
COMPONENT NAME

proxmox_snap

ADDITIONAL INFORMATION

Currently, the proxmox_snap module supports creating, removing, and rolling back snapshots, but it does not provide a built-in way to list existing snapshots. Adding list_snapshots: true allows a task to return all snapshots for a VM or container in a structured format. This list can then be used to remove multiple specific snapshots for a VM or container.

Example usage:

- name: List all snapshots for container or VM
  community.proxmox.proxmox_snap:
    api_user: root@pam
    api_password: password123
    api_host: node1
    vmid: 100
    list_snapshots: true

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions