community.general.netapp_e_snapshot_images (0.1.1) — module

NetApp E-Series create and delete snapshot images

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 and delete snapshots images on snapshot groups for NetApp E-series storage arrays.

Only the oldest snapshot image can be deleted so consistency is preserved.

Related: Snapshot volumes are created from snapshot images.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
    - name: Create Snapshot
      netapp_e_snapshot_images:
        ssid: "{{ ssid }}"
        api_url: "{{ netapp_api_url }}"
        api_username: "{{ netapp_api_username }}"
        api_password: "{{ netapp_api_password }}"
        validate_certs: "{{ validate_certs }}"
        snapshot_group: "3300000060080E5000299C24000005B656D9F394"
        state: 'create'

Inputs

    
state:
    choices:
    - create
    - remove
    description:
    - Whether a new snapshot image should be created or oldest be deleted.
    required: true

api_url:
    description:
    - The url to the SANtricity WebServices Proxy or embedded REST API.
    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

snapshot_group:
    description:
    - The name of the snapshot group in which you want to create a snapshot image.
    required: true

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

Outputs

image_id:
  description: ID of snapshot image
  returned: state == created
  sample: '3400000060080E5000299B640063074057BC5C5E '
  type: str
msg:
  description: State of operation
  returned: always
  sample: Created snapshot image
  type: str