Retrieves system drives used to create a storage pool on the storage system.
HTTP request syntax (URI)
GET <base_URI>/v7/storage/storage-pools/{id}/system-drives
Parameters
Name | Type | Required | Values | Description |
---|---|---|---|---|
id | URI_PARAM | Y | string/number | Specifies either the storage pool object ID or HNAS storage pool ID. |
Return codes
Code | Data | Description |
---|---|---|
200 | systemDrive | Array of system drives was retrieved successfully. |
400 | No Data | Missing or invalid request contents. |
404 | Error Message | Requested resource not found. |
500 | Error message | Error associated with the storage system. |
501 | No Data | Server has not implemented the request operation on the resource. |
Any HTTP status code other than 200 indicates that the API did not complete successfully.
Request example: Using the storage pool object ID
curl -vk -H "X-Api-Key: zrxvSDAv9x.RIP4gkmKarG3beF.or.4Tc2im7oeqYN88C9XPGHxbXC" https://172.17.11.11:8444/v7/storage/storage-pools/393637373036323034343433363639353430343a3a3a/system-drives
Response example: Using the storage pool object ID
HTTP/1.1 200 OK { "systemDrives" : [ { "capacity" : 429496729600, "comment" : "", "controllerPort" : "0000", "externalLUN" : "0", "internalLUN" : "00E2", "isAccessAllowed" : true, "isAssignedToStoragePool" : true, "isMirrorPrimary" : true, "isMirrored" : false, "label" : "00E2", "mirrorDriveUniqueId" : "", "model" : "OPEN-V", "objectId" : "343a3a3a3a3a3a303a3a3a4f49445f24232140255f56", "queueDepth" : -1, "rackName" : "10076", "status" : "OK", "subModel" : "R800", "systemDriveId" : 4, "tier" : "NO_TIER", "uniqueId" : "31096614-1287399200483992000-30", "vendor" : "HITACHI" } ] }
Request example: Using the HNAS storage pool ID
curl -vk -H "X-Api-Key: zrxvSDAv9x.RIP4gkmKarG3beF.or.4Tc2im7oeqYN88C9XPGHxbXC" https://172.17.11.11:8444/v7/storage/storage-pools/505793010106320088/system-drives
Response example: Using the HNAS storage pool ID
HTTP/1.1 200 OK { "systemDrives" : [ { "capacity" : 429496729600, "comment" : "", "controllerPort" : "0000", "externalLUN" : "0", "internalLUN" : "00E2", "isAccessAllowed" : true, "isAssignedToStoragePool" : true, "isMirrorPrimary" : true, "isMirrored" : false, "label" : "00E2", "mirrorDriveUniqueId" : "", "model" : "OPEN-V", "objectId" : "343a3a3a3a3a3a303a3a3a4f49445f24232140255f56", "queueDepth" : -1, "rackName" : "10076", "status" : "OK", "subModel" : "R800", "systemDriveId" : 4, "tier" : "NO_TIER", "uniqueId" : "31096614-1287399200483992000-30", "vendor" : "HITACHI" } ] }