White Papers
Configuration details
41 Dell Storage Manager REST API Cookbook | 3089-WP-SAN
STDOUT
{u'scSerialNumber': 101, u'globalIndex': u'101-8739-1', u'description':
u'RestTest_Vol_replay', u'spaceRecovery': False, u'instanceId': u'101.8739.1',
u'scName': u'SC 9', u'consistent': False, u'expires': False, u'freezeTime':
u'2016-05-06T12:52:59-05:00', u'createVolume': {u'instanceId': u'101.8739',
u'instanceName': u'RestTest_Vol', u'objectType': u'ScVolume'}, u'expireTime':
u'1969-12-31T18:00:00-06:00', u'source': u'Manual', u'writesHeldDuration': 5937,
u'active': False, u'markedForExpiration': False, u'objectType': u'ScReplay',
u'instanceName': u'05/06/2016 12:52:59 PM', u'size': u'0 Bytes'}
3.6.4 Expire a Replay
# expire a Replay
payload = {}
REST = '/StorageCenter/ScReplay/%s/Expire' %
rplyList['RestTest_Vol_replay']['instanceId']
completeURL = '%s%s' % (baseURL, REST if REST[0] != '/' else REST[1:])
print connection.post(completeURL
,data=json.dumps(payload
,ensure_ascii=False).encode('utf-8')
,headers=header
,verify=verify_cert)
STDOUT
<Response [204]>
3.7 Replay profiles
This section provides the REST API calls used to create, manage, and remove Replay profile objects on an
SC Series array.
Replay profile REST API calls used in this section
REST API
Method
/StorageCenter/ScReplayProfile
POST
/StorageCenter/ScReplayProfile/<instanceId>
PUT
DELETE
/StorageCenter/ScReplayProfile/GetList
POST
3.7.1 Create a Replay profile
The payload['Privilege'] and payload['SessionTimeout'] attributes contain EnumValueName values as
detailed in the corresponding tables that follow. An additional code segment is included here to capture all
Replay profile information from all DSM-managed SC Series arrays and populate the Python dictionary
rpList.