RackHD is designed to provide a REST (Representational state transfer) architecture to provide a RESTful API. RackHD currently has two RESTful interfaces: a Redfish API and native REST API 2.0.
The Redfish API is compliant with the Redfish specification as an additional REST API. It provides a common data model for representing bare metal hardware, as an aggregate for multiple backend servers and systems.
The REST API 2.0 provides unique features that are not provided in the Redfish API.
Redfish API - Chassis
List the Chassis that is managed by RackHD (equivalent to the enclosure node in REST API 2.0), by running the following command.
curl 127.0.0.1:9090/redfish/v1/Chassis| jq '.'
Redfish API - System
- In the rackhd-server, list the System that is managed by RackHD (equivalent to compute node in API 2.0), by running the following command
curl 127.0.0.1:9090/redfish/v1/Systems| jq '.'
- Use the mouse to select the System-ID as below example, then the ID will be in your clipboard. This ID will be used in the following steps.
Redfish API - SEL Log
curl 127.0.0.1:9090/redfish/v1/systems/<System-ID>/LogServices/Sel| jq '.'
Redfish API - CPU info
curl 127.0.0.1:9090/redfish/v1/Systems/<System-ID>/Processors/0| jq '.'
Redfish API - Helper
Show the list of RackHD Redfish APIs’ by running below command:
curl 127.0.0.1:9090/redfish/v1| jq '.'