White Papers

Configuration details
66 Dell Storage Manager REST API Cookbook | 3089-WP-SAN
completeURL = '%s%s' %
(baseURL, REST if REST[0] != '/' else REST[1:])
json_data = connection.delete(completeURL
,headers=header
,verify=verify_cert)
"""
Call the _FolderDestroy function and instructing it to destroy all
subfolders and volumes contained within the /Unix/Linux/RestTest path on SC
9
"""
_FolderDestroy("SC 9 - 101"
,volFolderList[os.path.basename("/Unix/Linux/RestTest")]
["SC 9 - 101"]
['instanceId']
)
print("")
5.3 _VolFolderRepl
This code can be injected into the working code sample shown in section 5 replacing the placeholder,
"===== YOUR CODE GOES HERE =====".
This code parses the source folder on the source SC Series array and replicates all volumes contained within
to a matching folder structure on the target SC Series array.
def _VolFolderRepl(scName, instanceId, scTarget):
"""
This function will parse the specified source folder path on
the designated SC array and replicate all volumes contained within to
a matching target folder path on the target SC array. This function
will not parse / navigate subfolders within the source folder
assumptions:
. destination volume name will be prefixed with 'Repl of'
. sync mode is assumed to be Async unless explicitly defined with
the SyncMode param
. QosNode will assume / use the first QosNode definition from the list
"""
# capture all QosNode options for scName
payload = {}
REST = '/StorageCenter/ScReplicationQosNode'
completeURL = '%s%s' % (baseURL, REST if REST[0] != '/' else REST[1:])
json_data = connection.get(completeURL
,headers=header
,verify=verify_cert)
qos_out = json.loads(json_data.text)
print("Qos Nodes available on %s:") % (scName)
qos_list = []