snapshot_info – Fetches the Snapshot Details

Synopsis

This playbook helps in performing the Snapshot Fetch operations on the Snapshot provided.

Parameters

name (True, str, None)

Name of the Snapshot

id (optional, str, None)

ID of the Snapshot

Examples

- name: Snapshot Details Playbook
  hosts: localhost
  gather_facts: no
  vars:
   auth:
    auth_url: https://<POWERVC>:5000/v3
    project_name: PROJECT-NAME
    username: USERID
    password: PASSWORD
    project_domain_name: PROJECT_DOMAIN_NAME
    user_domain_name: USER_DOMAIN_NAME
  tasks:
     - name: Perform Snapshot Details Operation
       ibm.powervc.snapshot_info:
          auth: "{{ auth }}"
          name: "SNAPSHOT_NAME"
          validate_certs: no
       register: result
     - debug:
          var: result

- name: Snapshot Details Playbook using Snapshot Name
  hosts: localhost
  gather_facts: no
  tasks:
     - name: Perform Snapshot Details Operation
       ibm.powervc.snapshot_info:
          cloud: "CLOUD_NAME"
          id: "SNAPSHOT_ID"
          validate_certs: no
       register: result
     - debug:
          var: result

- name: Snapshot Details Playbook using the Snapshot IDs
  hosts: localhost
  gather_facts: no
  tasks:
     - name: Perform Snapshot Details Operation
       ibm.powervc.snapshot_info:
          cloud: "CLOUD_NAME"
          name: "SNAPSHOT_NAME"
          validate_certs: no
       register: result
     - debug:
          var: result

Status

  • This module is not guaranteed to have a backwards compatible interface. [preview]

  • This module is maintained by PowerVC.

Authors

  • Karteesh Kumar Vipparapelli (@vkarteesh)