Querying Simple Storage Resource Information
Function
This interface is used to query information about a specified storage resource.
Syntax
Operation type: GET
URL: https://device_ip/redfish/v1/EdgeSystem/SimpleStorages/storage_id
Request header:
X-Auth-Token: auth_value
Request message body: None
Parameters
Parameter |
Description |
Value |
---|---|---|
device_ip |
IP address for logging in to a device |
An IPv4 or IPv6 address |
storage_id |
ID of a storage resource |
You can obtain the value from the storage resource list. 3 indicates SD-card. 4 indicates u-disk. |
auth_value |
Authentication parameter contained in the request |
You can obtain the value from the session created by using /redfish/v1/SessionService/Sessions. |
Usage Guidelines
None
Example
Request:
GET https://10.10.10.10/redfish/v1/EdgeSystem/SimpleStorages/3
Request header:
X-Auth-Token: 6599174c38c36838737d9749179e1ee1
Request message body: None
Response:
{
@odata.context: "/redfish/v1/$metadata#EdgeSystem/Members/SimpleStorages/Members/$entity"
@odata.id: "/redfish/v1/EdgeSystem/SimpleStorages/3"
@odata.type: "#SimpleStorage.v1_0_2.SimpleStorage"
Id: "3",
Name: "SD-card",
Description: "System SD Flash",
Status: {State: "Enabled", Health: "OK"}
Devices: [
{
CapacityBytes: "31268536320"
LeftBytes: 772431000
Manufacturer: "Hynix"
Model: "HBG4a2"
Name: "/dev/mmcblk1"
Status: {State: "Enabled", Health: "OK"}
oem: {PartitionStyle: "GPT", Location: "SDIO1"}
}
]
}
Response code: 200
Output Description
Attribute |
Type |
Description |
---|---|---|
@odata.context |
Character string |
OData information of a storage resource |
@odata.id |
Character string |
Access path of a storage resource |
@odata.type |
Character string |
Type of a storage resource |
Id |
Character string |
ID of a storage resource |
Name |
Character string |
Name of a storage resource |
Description |
Character string |
Description of a storage resource |
Status |
Object |
Status of a specified storage controller:
|
Devices[] |
Array |
List of connected devices |
Devices [].Name |
Character string |
Name of a connected device |
Devices [].Manuafacturer |
Character string |
Vendor of a connected device |
Devices [].Model |
Character string |
Model of a connected device |
Devices [].CapacityBytes |
Number |
Capacity of a connected device |
Devices [].LeftBytes |
Numeric value |
Remaining capacity of a connected device |
Devices [].Oem |
Object |
Customized field |
Devices[].Oem.PartitionStyle |
Character string |
Partition format. The options are as follows:
|
Devices[].Oem.Location |
Character string |
Device location |
Devices [].Status |
Object |
Status of a connected device:
|