community.general.netapp_e_snapshot_volume (0.1.1) — module

NetApp E-Series manage snapshot volumes.

Authors: Kevin Hulquest (@hulquest)

preview | supported by community

Install collection

Install with ansible-galaxy collection install community.general:==0.1.1


Add to requirements.yml

  collections:
    - name: community.general
      version: 0.1.1

Description

Create, update, remove snapshot volumes for NetApp E/EF-Series storage arrays.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
    - name: Snapshot volume
      netapp_e_snapshot_volume:
        ssid: "{{ ssid }}"
        api_url: "{{ netapp_api_url }}/"
        api_username: "{{ netapp_api_username }}"
        api_password: "{{ netapp_api_password }}"
        state: present
        storage_pool_name: "{{ snapshot_volume_storage_pool_name }}"
        snapshot_image_id: "{{ snapshot_volume_image_id }}"
        name: "{{ snapshot_volume_name }}"

Inputs

    
name:
    description:
    - The name you wish to give the snapshot volume
    required: true

ssid:
    description:
    - storage array ID
    required: true

state:
    choices:
    - absent
    - present
    description:
    - Whether to create or remove the snapshot volume
    required: true

api_url:
    description:
    - The url to the SANtricity WebServices Proxy or embedded REST API.
    required: true

view_mode:
    choices:
    - modeUnknown
    - readWrite
    - readOnly
    - __UNDEFINED
    description:
    - The snapshot volume access mode
    required: true

api_password:
    description:
    - The password to authenticate with the SANtricity WebServices Proxy or embedded REST
      API.
    required: true

api_username:
    description:
    - The username to authenticate with the SANtricity WebServices Proxy or embedded REST
      API.
    required: true

full_threshold:
    default: 85
    description:
    - The repository utilization warning threshold percentage

validate_certs:
    default: true
    description:
    - Should https certificates be validated?
    required: false
    type: bool

repo_percentage:
    default: 20
    description:
    - The size of the view in relation to the size of the base volume

snapshot_image_id:
    description:
    - The identifier of the snapshot image used to create the new snapshot volume.
    - 'Note: You''ll likely want to use the M(netapp_e_facts) module to find the ID of
      the image you want.'
    required: true

storage_pool_name:
    description:
    - Name of the storage pool on which to allocate the repository volume.
    required: true

Outputs

msg:
  description: Success message
  returned: success
  sample: Json facts for the volume that was created.
  type: str