_images/hpe_logo2.png

Examples

RestfulApiExamples.py and RedfishAPiExamples.py modules contain few examples for performing different iLO tasks using legacy RESTful API and Redfish API respectively. The examples in this page are legacy RESTful examples and are very similar to their Redfish equivalents. The HPE RESTful API 1.x expresses the root Uniform Resource Identifier (URI) protocol version as “/rest/v1”. Redfish 1.0 expresses the starting URI as “/redfish/v1/”.

Redfish changes the linking between resources, for example “href” is renamed to “@odata.id”. For more information about Redfish implementation click here .

The following examples can all be used as guidance for managing iLO using iLO RESTful API.