netapp.elementsw.na_elementsw_snapshot_schedule module – NetApp Element Software Snapshot Schedules
Note
This module is part of the netapp.elementsw collection (version 21.7.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 netapp.elementsw
.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: netapp.elementsw.na_elementsw_snapshot_schedule
.
Note
The netapp.elementsw collection is considered unmaintained and will be removed from Ansible 10. See the discussion thread for more information.
New in netapp.elementsw 2.7.0
Synopsis
Create, destroy, or update snapshot schedules on ElementSW
Requirements
The below requirements are needed on the host that executes this module.
The modules were developed with SolidFire 10.1
solidfire-sdk-python (1.1.0.92) or greater. Install using ‘pip install solidfire-sdk-python’
Parameters
Parameter |
Comments |
---|---|
Account ID for the owner of this volume. It accepts either account_name or account_id if account_id is digit, it will consider as account_id If account_id is string, it will consider as account_name |
|
Time specified in hours |
|
Time specified in minutes. |
|
List of days of the month (1-31) |
|
Time specified in hours |
|
Time specified in minutes. |
|
List of days of the week (Sunday to Saturday) |
|
The hostname or IP address of the SolidFire cluster. For na_elementsw_cluster, the Management IP (MIP) or hostname of the node to initiate the cluster creation from. |
|
Name for the snapshot schedule. It accepts either schedule_id or schedule_name if name is digit, it will consider as schedule_id If name is string, it will consider as schedule_name |
|
Password for the specified user. |
|
Pause / Resume a schedule. Choices:
|
|
Should the schedule recur? Choices:
|
|
Retention period for the snapshot. Format is ‘HH:mm:ss’. |
|
Schedule type for creating schedule. Choices:
|
|
Name for the created snapshots. |
|
Starting date for the schedule. Required when Format: |
|
Whether the specified schedule should exist or not. Choices:
|
|
Time interval in days. |
|
Time interval in hours. |
|
Time interval in minutes. |
|
Please ensure that the user has the adequate permissions. For more information, please read the official documentation https://mysupport.netapp.com/documentation/docweb/index.html?productID=62636&language=en-US. |
|
Volume IDs that you want to set the snapshot schedule for. It accepts both volume_name and volume_id |
Notes
Note
The modules prefixed with na\\_elementsw are built to support the SolidFire storage platform.
Examples
- name: Create Snapshot schedule
na_elementsw_snapshot_schedule:
hostname: "{{ elementsw_hostname }}"
username: "{{ elementsw_username }}"
password: "{{ elementsw_password }}"
state: present
name: Schedule_A
schedule_type: TimeIntervalFrequency
time_interval_days: 1
starting_date: '2016-12-01T00:00:00Z'
retention: '24:00:00'
volumes:
- 7
- test
account_id: 1
- name: Update Snapshot schedule
na_elementsw_snapshot_schedule:
hostname: "{{ elementsw_hostname }}"
username: "{{ elementsw_username }}"
password: "{{ elementsw_password }}"
state: present
name: Schedule_A
schedule_type: TimeIntervalFrequency
time_interval_days: 1
starting_date: '2016-12-01T00:00:00Z'
retention: '24:00:00'
volumes:
- 8
- test1
account_id: 1
- name: Delete Snapshot schedule
na_elementsw_snapshot_schedule:
hostname: "{{ elementsw_hostname }}"
username: "{{ elementsw_username }}"
password: "{{ elementsw_password }}"
state: absent
name: 6
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Schedule ID of the newly created schedule Returned: success |