Querying Partition Collection Information

Function

This interface is used to query information about the current partition collection resources.

Syntax

Operation type: GET

URL: https://device_ip/redfish/v1/Systems/Partitions

Request header:

X-Auth-Token: auth_value

Request message body: None

Usage Guidelines

The API is developed by default. The function is adapted based on the external storage configuration.

Example

Request:

GET https://10.10.10.10/redfish/v1/Systems/Partitions

Request header:

X-Auth-Token: auth_value

Request message body: None

Response:

{
    "@odata.context": "/redfish/v1/$metadata#Systems/Partitions/$entity",
    "@odata.id": "/redfish/v1/Systems/Partitions",
    "@odata.type": "#MindXEdgePartitionCollection.MindXEdgePartitionCollection",
    "Name": "Partition Collection",
    "Members@odata.count": 3,
    "Members": [{
        "@odata.id": "/redfish/v1/Systems/Partitions/hdisk0p1"
    },
    {
        "@odata.id": "/redfish/v1/Systems/Partitions/hdisk0p2"
    },
    {
        "@odata.id": "/redfish/v1/Systems/Partitions/hdisk0p3"
    }],
    "Mount":{
        "@odata.id": "/redfish/v1/Systems/Partitions/Mount"
    },
    "Unmount":{
        "@odata.id": "/redfish/v1/Systems/Partitions/Unmount"
    }
}

Response code: 200

Output Description

Table 1 Operation output description

Field

Type

Description

@odata.context

String

OData description information of a partition resource collection model

@odata.id

String

Access path of a partition resource collection

@odata.type

String

Type of a partition resource collection

Name

String

Name of a partition resource collection

Members@odata.count

Number

Number of current partition resources

Members

Object

List of partition resources

Members@odata.id

String

Access path of a partition resource node

Mount

Object

Mounted drive partition object.

Mount@odata.id

String

Access path of the resource node pair for mounting a drive partition.

Unmount

Object

Unmounted drive partition object.

Unmount@odata.id

String

Access path of the resource node pair for unmounting a drive partition.