dell / ansible-powermax

Ansible Modules for Dell PowerMax
GNU General Public License v3.0
36 stars 37 forks source link

[FEATURE]: Add support for getting volume pair information for a SRDF group #21

Closed anupamaloke closed 2 years ago

anupamaloke commented 2 years ago

Describe the solution you'd like Add support for getting the volume pairs information for the SRDF group for a specific volume. The current ansible module retrieves all the devices in the RDF group and then we need to filter the information for a particular volume ID.

- name: Get the details of rdf group and volumes
  dellemc.powermax.rdfgroup:
    unispherehost: "{{unispherehost}}"
    universion: "{{universion}}"
    verifycert: "{{verifycert}}"
    user: "{{user}}"
    password: "{{password}}"
    serial_no: "{{serial_no}}"
    rdfgroup_number: "{{rdfgroup_id}}"

Describe alternatives you've considered Using the ansible.builtin.uri module to retrieve this information

- name: Collect Device pair information through API
      uri:
        url: "https://{{unispherehost}}:8443/univmax/restapi/92/replication/symmetrix/{{serial_no}}/rdf_group/{{rdfg}}/volume/{{item}}"
        method: GET

Additional context Add any other context or screenshots about the feature request here.

anupamaloke commented 2 years ago

This is fixed by #25