community_fabric.ansible.snapshot_info module – Fetch Snapshot information within IP Fabric.
Note
This module is part of the community_fabric.ansible collection (version 0.0.4).
To install it, use: ansible-galaxy collection install community_fabric.ansible
.
To use it in a playbook, specify: community_fabric.ansible.snapshot_info
.
Synopsis
Fetch Snapshot information within IP Fabric.
Parameters
Parameter |
Comments |
---|---|
Information used to connect to IP Fabric via API |
|
The version of the IP Fabric REST API. |
|
Url of the IP Fabric API |
|
Set HTTP Timeout |
|
IP Fabric API token to be able to gather device information. |
|
Allows connection when SSL certificates are not valid. Set to Choices:
|
|
IP Fabric snapshot ID to use by default for database actions. Defaults to |
Examples
- name: Get All Snapshots
community_fabric.ansible.snapshot_info:
provider:
base_url: "https://demo1.ipfabric.io/"
token: "{{ lookup('ansible.builtin.env', 'IPF_TOKEN')}}"
- name: Get One Snapshot
community_fabric.ansible.snapshot_info:
provider:
base_url: "https://demo1.ipfabric.io/"
token: "{{ lookup('ansible.builtin.env', 'IPF_TOKEN')}}"
snapshot_id: bbc15e2e-4e75-4c54-9526-b6d8d3f9ff8b
register: snapshots
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
IP Fabric snapshot information Returned: success Sample: |