ansible.builtin.netapp_e_snapshot_images (v2.9.27) — module

NetApp E-Series create and delete snapshot images

| "added in version" 2.2 of ansible.builtin"

Authors: Kevin Hulquest (@hulquest)

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.9.27

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