Modifying storage workloads consists of updating LUNs or file shares with missing parameters, or changing the existing parameters.
This workflow takes the example of updating Performance Service Levels for LUNs and file shares.
While modifying a file share, you can update the following parameters:
This procedure describes adding a Performance Service Level to a file share. You can use the same procedure for updating any other file share property.
Category | HTTP verb | Path |
---|---|---|
storage-provider | GET |
/storage-provider/file-shares |
Category | HTTP verb | Path |
---|---|---|
storage-provider | GET |
/storage-provider/file-shares/{key} |
View the details of the file share in the output.
"assigned_performance_service_level": { "key": null, "name": "Unassigned", "peak_iops": null, "expected_iops": null, "_links": {} },
Category | HTTP verb | Path |
---|---|---|
Performance Service Levels | GET | /storage-provider/performance-service-levels |
Category | HTTP verb | Path |
---|---|---|
Storage Provider | PATCH | /storage-provider/file-shares/{key} |
In the input, you must specify only the parameter that you want to update, along with the file share key. In this case, it is the key of the Performance Service Level.
curl -X POST "https://<hostname>/api/storage-provider/file-shares" -H "accept: application/json" -H "Authorization: Basic <Base64EncodedCredentials>" -d "{ \"performance_service_level\": { \"key\": \"1251e51b-069f-11ea-980d-fa163e82bbf2\" }, }"
The JSON output displays a Job object that you can use to verify the whether the access endpoints on the home and partner nodes have been created successfully.
Verify whether the Performance Service Level has been added to the file share by using the Job object key displayed in your output.
Category | HTTP verb | Path |
---|---|---|
Management Server | GET | /management-server/jobs/{key} |
If you query by the ID of the Job object, you see whether the file share is updated successfully. In case of a failure, troubleshoot the failure and run the API again. On successful creation, query the file share to see the modified object:
Category | HTTP verb | Path |
---|---|---|
storage-provider | GET |
/storage-provider/file-shares/{key} |
View the details of the file share in the output.
"assigned_performance_service_level": { "key": "1251e51b-069f-11ea-980d-fa163e82bbf2", "name": "Value", "peak_iops": 75, "expected_iops": 75, "_links": { "self": { "href": "/api/storage-provider/performance-service-levels/1251e51b-069f-11ea-980d-fa163e82bbf2" } }
While updating a LUN, you can modify the following parameters:
This procedure describes adding a Performance Service Level to a LUN. You can use the same procedure for updating any other LUN property.
Category | HTTP verb | Path |
---|---|---|
Storage Provider | GET | /storage-provider/luns |
Category | HTTP verb | Path |
---|---|---|
Storage Provider | GET | /storage-provider/luns/{key} |
View the details of the LUN in the output. You can see that there is no Performance Service Level assigned to this LUN.
Sample JSON output
"assigned_performance_service_level": { "key": null, "name": "Unassigned", "peak_iops": null, "expected_iops": null, "_links": {} },
Category | HTTP verb | Path |
---|---|---|
Performance Service Levels | GET | /storage-provider/performance-service-levels |
Category | HTTP verb | Path |
---|---|---|
Storage Provider | PATCH | /storage-provider/lun/{key} |
In the input, you must specify only the parameter that you want to update, along with the LUN key. In this case it is the key of the Performance Service Level.
curl -X PATCH "https://<hostname>/api/storage-provider/luns/7d5a59b3-953a-11e8-8857-00a098dcc959" -H "accept: application/json" -H "Content-Type: application/json" H "Authorization: Basic <Base64EncodedCredentials>" -d "{ \"performance_service_level\": { \"key\": \"1251e51b-069f-11ea-980d-fa163e82bbf2\" }"
The JSON output displays a Job object key that you can use to verify the LUN that you updated.
Category | HTTP verb | Path |
---|---|---|
Storage Provider | GET | /storage-provider/luns/{key} |
View the details of the LUN in the output. You can see that the Performance Service Level is assigned to this LUN.
Sample JSON output
"assigned_performance_service_level": { "key": "1251e51b-069f-11ea-980d-fa163e82bbf2", "name": "Value", "peak_iops": 75, "expected_iops": 75, "_links": { "self": { "href": "/api/storage-provider/performance-service-levels/1251e51b-069f-11ea-980d-fa163e82bbf2" }