HP OneView REST API Reference

server-hardware
server-hardware.html[10/17/2013 10:35:23 AM]
Response Codes
REST API Response Codes
Examples
Get most recent 24-hour CPU Utilization & Frequency data for server USE7335NW3 (endDate should be present
time):
GET https://{appl}/rest/server-hardware/USE7335NW3/utilization?
fields=CpuUtilization&fields=CpuAverageFreq&filter=endDate=20120403T113000.000Z
Get 24-hour data for server USE7335NW3 between two specified dates at one
sample per hour resolution:
GET https://{appl}/rest/server-hardware/USE7335NW3/utilization?
fields=CpuUtilization&view=hour&filter=startDate=20120401T202800.000Z&filter=endDate=20120402T202800.000Z
Get all temp data at one sample per day resolution for server USE7335NW3:
GET https://{appl}/rest/server-hardware/USE7335NW3/utilization?fields=AmbientTemperature&view=day
URI: /rest/server-hardware/{id}
Method API
GET Gets the server hardware resource for the specified URI.
Parameter Attributes Description
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
ServerHardware A server hardware resource.
Response Codes
REST API Response Codes
Examples
GET https://{appl}/rest/server-hardware/123-45-67-89-123
DELETE Removes the (rack) server with the specified URI. This API will not remove a server that is part of a BladeSystem enclosure. To remove a
blade from management you must remove the enclosure.
Parameter Attributes Description
force Optional The default is false. If set to true, the operation completes even if there are network connectivity issues or
resource errors. Even though it is possible to force remove the server hardware with issues or errors, it is
strongly recommended that the server hardware has any communication issue resolved before removing it. It is
recommended that the servers be unconfigured or they will continue to operate as configured.
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 Returns a TaskResource resource that can be used to monitor the
progress of server removal.
Response Codes
REST API Response Codes
Examples
Remove a rack server from management of the appliance:
DELETE https://{appl}/rest/server-hardware/AA-99-ZZ
ServerHardware
description: A server hardware resource.