Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Module for CreateGroupSnapshot #5

Open
scaleoutsean opened this issue Sep 13, 2021 · 0 comments
Open

Module for CreateGroupSnapshot #5

scaleoutsean opened this issue Sep 13, 2021 · 0 comments

Comments

@scaleoutsean
Copy link

Summary

Create Group Snapshot takes a list of volumes, whereas CreateSnapshot takes a VolumeID (in na_elementsw_snapshot that's src_volume_id (string, required)).

{
    "method": "CreateSnapshot",
    "params": {
        "volumeID": <Volume ID>,
        "snapshotID": <Optional Source Snapshot ID>,
        "name": <Optional Snapshot Name>,
        "enableRemoteReplication": <Optional Boolean true or false>,
        "retention": "<Optional amount of time to retain the snapshot in HH:mm:ss>"
        "attributes": {}
    },
    "id": 1
}

Because of that it's not possible to provide a list of volume IDs to src_volume_id's and take a group snapshot.

{
    "method": "CreateGroupSnapshot",
    "params": {
        "volumes": [<CSV List of Volume IDs>],
        "name": "<Optional Group Snapshot Name>",
        "enableRemoteReplication": <Optional Boolean true or false>,
        "retention": "<Optional amount of time to retain the snapshot in HH:mm:ss>",
        "attributes": {}
    },
    "id": 1
}

Component Name

na_elementsw_snapshot

Additional Information

If src_volume_id could optionally be a list and use CreateGroupSnapshot, then dedicated na_elementsw_group_snapshot module wouldn't be required.

If we want to take a group snapshot with Ansible we can't unless we create a snapshot schedule for a list of volumes (I haven't tested that yet, but that looks like a workaround for situations when group snapshots can be scheduled).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant