GET /api/v1/data/devices/{id}/storage
Use this method to return storage information for a specific device.
Authentication
Authentication with user name and password is required.
Resource URI
GET https://{orchestrator_server_IP}/api/v1/data/devices/{id}/storage
where {id} is the ID of the device. To obtain the device IDs, use GET /api/v1/data/devices.
Query parameters
None
Request body
None
Response codes
Code | Description | Comments |
---|---|---|
200 | OK | The request completed successfully. |
404 | Not found | The resource cannot be found. A descriptive error message is returned in the response body. |
Response body
When the request is successful, the following attributes are returned. If the request fails, standard message attributes are returned (see Status messages).
Attributes | Type | Description | |
---|---|---|---|
bay | String | Bay or slot number | |
blockSize | Integer | Block size | |
capacity | Integer | (M.2 drives only) Storage capacity, in KB | |
description | String | Description | |
diskState | String | Disk-drive state | |
firmware | Array of objects | Information about add-in card firmware | |
build | String | Firmware build | |
classifications | Array of integers | Firmware type codes | |
date | String | Firmware date | |
name | String | Firmware name | |
revision | String | Firmware revision | |
role | String | Firmware role. This can be one of the following values.
| |
softwareID | Firmware ID | ||
status | String | Firmware status. This can be one of the following values.
| |
type | String | Firmware type, such as UEFI, MP, or DSA | |
version | String | Firmware version | |
FRU | String | FRU | |
healthState | String | Health state (translated) that corresponds to the highest event severity of all disk drives in the device. This can be one of the following values.
| |
ealthStateKey | String | Health state key that corresponds to the highest event severity of all disk drives in the device. This can be one of the following values.
| |
interfaceType | String | Interface type | |
largestAvailableSize | Integer | ||
m2Location | String | (M.2 drives only) Location of M.2 drive and bay | |
manufacturer | String | Manufacturer | |
mediaType | String | Media type | |
model | String | Model | |
name | String | Drive name | |
numberOfBlocks | Integer | Number of blocks | |
partNumber | String | Part number | |
remainingLife | Integer | Indicate the amount of life that remains for a solid-state drive (SSD). This can be one of the following values.
| |
serialNumber | String | Serial number | |
temperature | Integer | Device temperature | |
uuid | String | Storage device UUID | |
_links | Object | Device URI (see Links) |
The following example is returned if the request is successful.
[{
"bay": 3,
"blockSize": 512,
"capacity": 1000204886000,
"description": "ST1000NX0453",
"diskState": "JBOD",
"firmware": [{
"name": "Drive",
"date": "",
"type": "Firmware",
"build": "0",
"version": "LD4B",
"role": "Primary",
"status": "Active",
"classifications": [10],
"revision": "0",
"softwareID": "ST1000NX0453",
"deviceTypeKey": "firmware"
}],
"FRU": "00YK023",
"healthState": "Normal",
"healthStateKey": "Normal",
"interfaceType": "SAS",
"largestAvailableSize": 512,
"m2Location": "",
"manufacturer": "LENOVO",
"mediaType": "Rotational",
"model": "ST1000NX0453",
"name": "Disk 3_a",
"numberOfBlocks": 1953525168,
"partNumber": "D7A01872",
"remainingLife": null,
"serialNumber": "W470TAY4",
"temperature": 34,
"uuid": ""
},
...,
{
"bay": 0,
"blockSize": 512,
"capacity": 1000204886000,
"description": "ST1000NX0453",
"diskState": "JBOD",
"firmware": [{
"name": "Drive",
"date": "",
"type": "Firmware",
"build": "0",
"version": "LD4B",
"role": "Primary",
"status": "Active",
"classifications": [10],
"revision": "0",
"softwareID": "ST1000NX0453",
"deviceTypeKey": "firmware"
}],
"FRU": "00YK023",
"healthState": "Normal",
"healthStateKey": "Normal",
"interfaceType": "SAS",
"largestAvailableSize": 512,
"m2Location": "",
"manufacturer": "LENOVO",
"mediaType": "Rotational",
"model": "ST1000NX0453",
"name": "Disk 0_b",
"numberOfBlocks": 1953525168,
"partNumber": "D7A01872",
"remainingLife": null,
"serialNumber": "W470MBJD",
"temperature": 33,
"uuid": ""
}]
Give feedback