ibm.storage_virtualize.ibm_svc_manage_safeguarded_policy (2.3.1) — module

This module manages safeguarded policy configuration on IBM Storage Virtualize family systems

| "added in version" 1.8.0 of ibm.storage_virtualize"

Authors: Sanjaikumaar M (@sanjaikumaar)

Install collection

Install with ansible-galaxy collection install ibm.storage_virtualize:==2.3.1


Add to requirements.yml

  collections:
    - name: ibm.storage_virtualize
      version: 2.3.1

Description

Ansible interface to manage 'mksafeguardedpolicy' and 'rmsafeguardedpolicy' safeguarded policy commands.

Safeguarded copy functionality is introduced in IBM Storage Virtualize 8.4.2.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Create safeguarded policy
  ibm.storage_virtualize.ibm_svc_manage_safeguarded_policy:
    clustername: "{{cluster}}"
    username: "{{username}}"
    password: "{{password}}"
    name: sgpolicy0
    backupunit: day
    backupinterval: 1
    backupstarttime: 2102281800
    retentiondays: 15
    state: present
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Suspend safeguarded copy functionality
  ibm.storage_virtualize.ibm_svc_manage_safeguarded_policy:
    clustername: "{{cluster}}"
    username: "{{username}}"
    password: "{{password}}"
    state: suspend
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Resume safeguarded copy functionality
  ibm.storage_virtualize.ibm_svc_manage_safeguarded_policy:
    clustername: "{{cluster}}"
    username: "{{username}}"
    password: "{{password}}"
    state: resume
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Delete safeguarded policy
  ibm.storage_virtualize.ibm_svc_manage_safeguarded_policy:
    clustername: "{{cluster}}"
    username: "{{username}}"
    password: "{{password}}"
    name: sgpolicy0
    state: absent

Inputs

    
name:
    description:
    - Specifies the name of safeguarded policy.
    - Not applicable when I(state=suspend) or I(state=resume).
    type: str

state:
    choices:
    - present
    - absent
    - suspend
    - resume
    description:
    - Creates (C(present)) or deletes (C(absent)) a safeguarded policy.
    - Resume (C(resume)) or suspend (C(suspend)) the safeguarded copy functionality system
      wide.
    required: true
    type: str

token:
    description:
    - The authentication token to verify a user on the Storage Virtualize system.
    - To generate a token, use the M(ibm.storage_virtualize.ibm_svc_auth) module.
    type: str

domain:
    description:
    - Domain for the Storage Virtualize system.
    - Valid when hostname is used for the parameter I(clustername).
    type: str

log_path:
    description:
    - Path of debug log file.
    type: str

password:
    description:
    - REST API password for the Storage Virtualize system.
    - The parameters I(username) and I(password) are required if not using I(token) to
      authenticate a user.
    type: str

username:
    description:
    - REST API username for the Storage Virtualize system.
    - The parameters I(username) and I(password) are required if not using I(token) to
      authenticate a user.
    type: str

backupunit:
    choices:
    - minute
    - hour
    - day
    - week
    - month
    description:
    - Specify the backup unit in mentioned metric.
    - Applies when I(state=present).
    type: str

clustername:
    description:
    - The hostname or management IP of the Storage Virtualize system.
    required: true
    type: str

retentiondays:
    description:
    - Specifies the retention days for the backup.
    - Applies when I(state=present).
    type: str

backupinterval:
    description:
    - Specifies the interval of backup.
    - Applies when I(state=present).
    type: str

validate_certs:
    default: false
    description:
    - Validates certification.
    type: bool

backupstarttime:
    description:
    - Specifies the start time of backup in the format YYMMDDHHMM.
    - Applies when I(state=present).
    type: str