Querying Partition Resource Information
Function
This interface is used to query resource information about a specified partition.
Syntax
Operation type: GET
URL: https://device_ip/redfish/v1/EdgeSystem/Partitions/partition_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. |
partition_id |
ID of a partition resource. |
You can obtain the ID from the partition resource collection information. |
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/Partitions/sda1
Request header:
X-Auth-Token: 6599174c38c36838737d9749179e1ee1
Request message body: None
Response:
{
"@odata.context": "/redfish/v1/$metadata#EdgeSystem/Partitions/Members/$entity",
"@odata.id": "/redfish/v1/EdgeSystem/Partitions/sda1",
"@odata.type": "#Partition.v1_0_1.Partition",
"Id": "sda1",
"Name": "sda1",
"CapacityBytes": 298999349248,
"FreeBytes": 298999349248,
"Links":
{
"Device": {
"@odata.id": "/redfish/v1/EdgeSystem/SimpleStorage/SATA"
},
"Oem": {
"DeviceName": "/dev/sda"
"Location": PCIE3
}
},
"Primary": false,
"FileSystem": "ext4",
"MountPath": "/home/data",
"Status": {
"State": "Enabled",
"Health": "OK"
}
}
Response code: 200
Output Description
Attribute |
Type |
Description |
---|---|---|
@odata.context |
Character string |
OData description of a partition resource model. |
@odata.id |
Character string |
Access path of a partition resource. |
@odata.type |
Character string |
Type of a partition resource. |
Id |
Character string |
ID of a partition resource. |
Name |
Character string |
Name of a partition. |
CapacityBytes |
Numeric value |
Total capacity of a partition. |
FreeBytes |
Numeric value |
Remaining free space of a partition. |
Links |
Object |
Link information of a partition. |
Links.Device |
Object |
Device information of a partition. |
Links.Device.@odata.id |
Character string |
Device resource (Volume or Drive) path of a partition. |
Links.Oem |
Object |
Customized information of a partition. |
Links.Oem.DeviceName |
Character string |
Device name of a partition. |
Links.Oem.Location |
Character string |
Device location. |
Primary |
Boolean |
Whether the partition is a primary partition (system partition). |
FileSystem |
Character string |
File system format. |
MountPath |
Character string |
Partition mount path. |
Status |
Object |
Logical drive status. The options are as follows:
|