I am trying to issue a SOAP call in python for the getDeviceGroupByPath method. I am unable to determine the correct way of formatting the path search string. I need to be able to identify a device group by path since the shortname may be duplicated. I have tried several derivations and have not been able to get a match even though I know the path.
In the HPSA Java GUI application, if you open the device group to see the properties, membership, etc in its own window, it will show you the "Location" which has the path need. Unfortunately, it's wrong but it does show it. The trick is to not include the "Device Groups /" prefix and instead use the path that starts with "Public /".
For example, if the GUI shows Location: Device Groups / Public / Root Folder / Next Level Folder / DevGrp1
You would use: Public / Root Folder / Next Level Folder / DevGrp1
For the purposes of getDeviceGroupByPath(), the pseudocode would be something like this: devgrppath = new Array ( "Public", "Root Folder", "Next Level Folder", "DevGrp1" )
The same approach applies to private device groups.
It's surprising that they added the extra text, as it's very confusing.