Start a Conversation

Unsolved

1 Message

577

February 21st, 2023 18:00

Modules for PowerMax

Hello Team,

I don’t see the option to change the linked mode off snapshot from default no copy to copy .

1 Rookie

 • 

79 Posts

February 23rd, 2023 09:00

Hi @Sap8627,

We will look into this and work on adding support for this in the upcoming releases

Meanwhile, we can use the ansible uri module by directly specifying the rest api url to change the linked mode of snapshot . Attaching below sample code for the same.

---
- hosts : localhost

  vars :
    unisphere_ip : 10.*.*.*
    port : 8443
    universion : 100
    username : * **
    password : * **
    symmetrixId : 0001***0***
    storageGroupId : sg
    link_storageGroupName : link_sg
    snapshotId : test_snapshot
    snapId : 100000

  tasks :
    - name : Change the linked mode off snapshot from default no copy to copy
      uri :
        url : https://{ {unisphere_ip}}:{ {port}}/univmax/restapi/{ {universion}}/replication/symmetrix/{symmetrixId}/storagegroup/{storageGroupId}/snapshot/{snapshotId}/snapid/{snapId}
        user : "{ {username}}"
        password : "{ {password}}"
        force_basic_auth : True
        method : PUT
        body : >
          { "action": "SetMode", "set_mode" : {"copy" : false, "storage_group_name": "{ {link_storageGroupName}}" }}
        body_format : json
        headers :
          Content-Type : 'application/json'
        validate_certs : no
 
Thanks,
Jennifer
No Events found!

Top