HP OneView REST API Reference

server-hardware
server-hardware.html[10/17/2013 10:35:23 AM]
Request Header Attributes Description
REST API Request Headers NOTE: The X-API-Version header is required for all APIs. For the current release, this must be set to "X-
API-Version:3"
Response Description
JavaRemoteConsoleUrlResult The URL for the iLO Java Applet console
Response Codes
REST API Response Codes
Examples
Generate an SSO session for the iLO Java applet console
and return the URL to launch it:
GET https://{appl}/rest/server-hardware/123-45-67-89-123/javaRemoteConsoleUrl
URI: /rest/server-hardware/{id}/mpFirmwareVersion
Method API
PUT Updates the iLO firmware on a physical server.
Request
Header
Attributes Description
REST API Request Headers NOTE: The X-API-Version header is required for all APIs. For the current release, this must be set to "X-
API-Version:3"
Response Description
TaskResourceV2 A TaskResource resource that can be used to monitor the
progress of firmware update.
Response Codes
REST API Response Codes
Examples
Update the server’s iLO firmware to the minimum supported
version:
PUT https://{appl}/rest/server-hardware/123-45-67-89-123/mpFirmwareVersion
URI: /rest/server-hardware/{id}/powerState
Method API
PUT Requests a power operation to change the power state of the physical server.
Request Header Attributes Description
REST API Request Headers NOTE: The X-API-Version header is required for all APIs. For the current release, this must be set to "X-
API-Version:3"
Request Body Attributes Description
ServerPowerControlRequest Required Resource to indicate desired power state and
power control option.
Response Description
TaskResourceV2 A task resource to track the progress of the operation.
Response Codes
REST API Response Codes
Examples
Power off a server that is on, using the momentary press
control:
PUT https://{appl}/rest/server-hardware/123-45-67-89-123/powerState
{
"powerState": "Off",
"powerControl":"MomentaryPress"
}