ibm.storage_virtualize.ibm_sv_manage_cloud_backups module – This module configures and manages cloud backups on IBM Storage Virtualize family systems
Note
This module is part of the ibm.storage_virtualize collection (version 2.1.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 ibm.storage_virtualize
.
To use it in a playbook, specify: ibm.storage_virtualize.ibm_sv_manage_cloud_backups
.
New in ibm.storage_virtualize 1.11.0
Synopsis
Ansible interface to manage backupvolume, backupvolumegroup, and rmvolumebackupgeneration commands.
Parameters
Parameter |
Comments |
---|---|
Specifies to delete all cloud backup generations. Applies when state=absent to delete a backup. The parameters all and generation are mutually exclusive. Either generation or all is required to delete cloud backup. Choices:
|
|
The hostname or management IP of the Storage Virtualize system. |
|
Domain for the Storage Virtualize system. Valid when hostname is used for the parameter clustername. |
|
Specifies that the snapshot generation for the volume should be a full snapshot. Applies when state=present. Choices:
|
|
Specifies the snapshot generation ID that needs to be deleted for the volume. If the specified generation is for a snapshot operation that is in progress, that snapshot operation is canceled. Applies when state=absent to delete a generation of a volume backup. The parameters all and generation are mutually exclusive. Either generation or all is required to delete cloud backup. |
|
Path of debug log file. |
|
REST API password for the Storage Virtualize system. The parameters username and password are required if not using token to authenticate a user. |
|
Creates ( Choices:
|
|
The authentication token to verify a user on the Storage Virtualize system. To generate a token, use the ibm.storage_virtualize.ibm_svc_auth module. |
|
REST API username for the Storage Virtualize system. The parameters username and password are required if not using token to authenticate a user. |
|
Validates certification. Choices:
|
|
Specifies the volume name for the volume being backed up. The parameters volume_name and volumegroup_name are mutually exclusive. |
|
Specifies the volume UID to delete a cloud backup of the volume. The value for a volume UID must be a value in the range 0-32. The parameters volume_UID and volume_name are mutually exclusive. Applies when state=absent to delete cloud backups. |
|
Specifies the volumegroup name for the volume to back up. The parameters volume_name and volumegroup_name are mutually exclusive. Applies when state=present to create cloud backups of all the volume group members. Cloud backup must be enabled on all the volume group members to execute this. |
Notes
Note
This module supports
check_mode
.
Examples
- name: Create cloud backup of volume
ibm.storage_virtualize.ibm_sv_manage_cloud_backups:
clustername: "{{cluster}}"
username: "{{username}}"
password: "{{password}}"
volume_name: vol1
full: true
state: present
- name: Create cloud backup of volumegroup
ibm.storage_virtualize.ibm_sv_manage_cloud_backups:
clustername: "{{cluster}}"
username: "{{username}}"
password: "{{password}}"
volumegroup_name: VG1
full: true
state: present
- name: Delete cloud backup
ibm.storage_virtualize.ibm_sv_manage_cloud_backups:
clustername: "{{cluster}}"
username: "{{username}}"
password: "{{password}}"
volume_UID: 6005076400B70038E00000000000001C
all: true
state: absent