White Papers

Configuration details
35 Dell Storage Manager REST API Cookbook | 3089-WP-SAN
3.5 Storage profiles
This section discusses the use of REST API calls to create, manage, and remove storage profile objects on
an SC Series array.
Security profile REST API calls used in this section
REST API
Method
/StorageCenter/ScStorageProfile
POST
/StorageCenter/ScStorageProfile/<instanceId>
PUT
DELETE
/StorageCenter/ScStorageProfile/GetList
POST
3.5.1 Create a storage profile
The payload['RaidTypeUsed'] attribute contains the EnumValueName values in Figure 2.
Storage profiles
The additional code segment included below captures all storage profile information from all DSM-managed
SC Series arrays and populates the Python dictionary spList.
# create a new named storage profile object
payload = {}
payload['Name'] = 'RestTest_sp'
payload['RaidTypeUsed'] = 'Mixed'
payload['StorageCenter'] = scList['SC 9']['instanceId']
payload['UseTier1Storage'] = True
payload['UseTier2Storage'] = True
payload['UseTier3Storage'] = True
payload['Notes'] = 'Created via REST API'
REST = '/StorageCenter/ScStorageProfile'
completeURL = '%s%s' % (baseURL, REST if REST[0] != '/' else REST[1:])
json_data = connection.post(completeURL
,data=json.dumps(payload