dellemc / dellemc.unity / 1.2.1 / module / dellemc_unity_filesystem_snapshot Manage filesystem snapshot on the Unity storage system | "added in version" 1.1.0 of dellemc.unity" Authors: Rajshree Khare (@kharer5) <ansible.team@dell.com> preview | supported by communitydellemc.unity.dellemc_unity_filesystem_snapshot (1.2.1) — module
Install with ansible-galaxy collection install dellemc.unity:==1.2.1
collections: - name: dellemc.unity version: 1.2.1
Managing Filesystem Snapshot on the Unity storage system includes create filesystem snapshot, get filesystem snapshot, modify filesystem snapshot and delete filesystem snapshot.
- name: Create Filesystem Snapshot dellemc.unity.dellemc_unity_filesystem_snapshot: unispherehost: "{{unispherehost}}" username: "{{username}}" password: "{{password}}" verifycert: "{{verifycert}}" snapshot_name: "ansible_test_FS_snap" filesystem_name: "ansible_test_FS" nas_server_name: "lglad069" description: "Created using playbook" auto_delete: True fs_access_type: "Protocol" state: "present"
- name: Create Filesystem Snapshot with expiry time dellemc.unity.dellemc_unity_filesystem_snapshot: unispherehost: "{{unispherehost}}" username: "{{username}}" password: "{{password}}" verifycert: "{{verifycert}}" snapshot_name: "ansible_test_FS_snap_1" filesystem_name: "ansible_test_FS_1" nas_server_name: "lglad069" description: "Created using playbook" expiry_time: "04/15/2021 2:30" fs_access_type: "Protocol" state: "present"
- name: Get Filesystem Snapshot Details using Name dellemc.unity.dellemc_unity_filesystem_snapshot: unispherehost: "{{unispherehost}}" username: "{{username}}" password: "{{password}}" verifycert: "{{verifycert}}" snapshot_name: "ansible_test_FS_snap" state: "present"
- name: Get Filesystem Snapshot Details using ID dellemc.unity.dellemc_unity_filesystem_snapshot: unispherehost: "{{unispherehost}}" username: "{{username}}" password: "{{password}}" verifycert: "{{verifycert}}" snapshot_id: "10008000403" state: "present"
- name: Update Filesystem Snapshot attributes dellemc.unity.dellemc_unity_filesystem_snapshot: unispherehost: "{{unispherehost}}" username: "{{username}}" password: "{{password}}" verifycert: "{{verifycert}}" snapshot_name: "ansible_test_FS_snap" description: "Description updated" auto_delete: False expiry_time: "04/15/2021 5:30" state: "present"
- name: Update Filesystem Snapshot attributes using ID dellemc.unity.dellemc_unity_filesystem_snapshot: unispherehost: "{{unispherehost}}" username: "{{username}}" password: "{{password}}" verifycert: "{{verifycert}}" snapshot_id: "10008000403" expiry_time: "04/18/2021 8:30" state: "present"
- name: Delete Filesystem Snapshot using Name dellemc.unity.dellemc_unity_filesystem_snapshot: unispherehost: "{{unispherehost}}" username: "{{username}}" password: "{{password}}" verifycert: "{{verifycert}}" snapshot_name: "ansible_test_FS_snap" state: "absent"
- name: Delete Filesystem Snapshot using ID dellemc.unity.dellemc_unity_filesystem_snapshot: unispherehost: "{{unispherehost}}" username: "{{username}}" password: "{{password}}" verifycert: "{{verifycert}}" snapshot_id: "10008000403" state: "absent"
port: default: 443 description: - Port number through which communication happens with Unity management server. required: false type: int state: choices: - absent - present description: - The state option is used to mention the existence of the filesystem snapshot. required: true type: str password: description: - The password of the Unity management server. required: true type: str username: description: - The username of the Unity management server. required: true type: str verifycert: choices: - true - false default: true description: - Boolean variable to specify whether or not to validate SSL certificate. - True - Indicates that the SSL certificate should be verified. - False - Indicates that the SSL certificate should not be verified. required: false type: bool auto_delete: description: - This option specifies whether or not the filesystem snapshot will be automatically deleted. - If set to true, the filesystem snapshot will expire based on the pool auto deletion policy. - If set to false, the filesystem snapshot will not be auto deleted based on the pool auto deletion policy. - auto_delete can not be set to True, if expiry_time is specified. - If during creation neither auto_delete nor expiry_time is mentioned then the filesystem snapshot will be created keeping auto_delete as True. - Once the expiry_time is set, then the filesystem snapshot cannot be assigned to the auto delete policy. type: bool description: description: - The additional information about the filesystem snapshot can be provided using this option. - The description can be removed by passing an empty string. type: str expiry_time: description: - This option is for specifying the date and time after which the filesystem snapshot will expire. - The time is to be mentioned in UTC timezone. - The format is "MM/DD/YYYY HH:MM". Year must be in 4 digits. type: str snapshot_id: description: - During creation snapshot_id is auto generated. - For all other operations either snapshot_id or snapshot_name is required. type: str filesystem_id: description: - The ID of the Filesystem for which snapshot is created. - For creation of filesystem snapshot either filesystem_id or filesystem_name is required. - Not required for other operations. type: str nas_server_id: description: - The ID of the NAS server in which the Filesystem is created. - For creation of filesystem snapshot either filesystem_id or filesystem_name is required. - Not required for other operations. type: str snapshot_name: description: - The name of the filesystem snapshot. - Mandatory parameter for creating a filesystem snapshot. - For all other operations either snapshot_name or snapshot_id is required. type: str unispherehost: description: - IP or FQDN of the Unity management server. required: true type: str fs_access_type: choices: - Checkpoint - Protocol description: - Access type of the filesystem snapshot. - Required only during creation of filesystem snapshot. - If not given, snapshot's access type will be 'Checkpoint'. type: str filesystem_name: description: - The name of the Filesystem for which snapshot is created. - For creation of filesystem snapshot either filesystem_name or filesystem_id is required. - Not required for other operations. type: str nas_server_name: description: - The name of the NAS server in which the Filesystem is created. - For creation of filesystem snapshot either nas_server_name or nas_server_id is required. - Not required for other operations. type: str
changed: description: Whether or not the resource has changed. returned: always type: bool filesystem_snapshot_details: contains: access_type: description: Access type of filesystem snapshot. type: str attached_wwn: description: Attached WWN details. type: str creation_time: description: Creation time of filesystem snapshot. type: str creator_schedule: description: Creator schedule of filesystem snapshot. type: str creator_type: description: Creator type for filesystem snapshot. type: str creator_user: description: Creator user for filesystem snapshot. type: str description: description: Description of the filesystem snapshot. type: str expiration_time: description: Date and time after which the filesystem snapshot will expire. type: str filesystem_id: description: Id of the filesystem for which the snapshot exists. type: str filesystem_name: description: Name of the filesystem for which the snapshot exists. type: str id: description: Unique identifier of the filesystem snapshot instance. type: str is_auto_delete: description: Is the filesystem snapshot is auto deleted or not. type: bool name: description: The name of the filesystem snapshot. type: str nas_server_id: description: Id of the NAS server on which filesystem exists. type: str nas_server_name: description: Name of the NAS server on which filesystem exists. type: str size: description: Size of the filesystem snapshot. type: int description: Details of the filesystem snapshot. returned: When filesystem snapshot exists type: complex