HP OneView REST API Reference

server-hardware-types
server-hardware-types.html[10/17/2013 10:35:25 AM]
Body
Map Required Map of key value pairs where the key is the name of
the attribute and the value is the what you are
setting it to.
Response Description
ServerHardwareType A server hardware type resource with the updated
attribute(s).
Response Codes
REST API Response Codes
Examples
Set the name of a server hardware type to a new name:
PUT
https://{appl}/rest/server-hardware-types/123-45-67-89-123
{"name":"New Server Type Name","description":
"New Description"}
DELETE Remove the server hardware type with the specified URI. A server hardware type cannot be deleted if it is
associated with a server hardware or server profile resource.
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
TaskResourceV2 Returns a Task Resource resource that can be used to monitor
the
progress of server hardware type removal.
Response Codes
REST API Response Codes
Examples
Remove a server hardware type from the appliance:
DELETE https://{appl}/rest/server-hardware-types/{id}
ServerHardwareType
type: object
Properties
category: description: Resource category used for authorizations and resource type groupings
type: string
formFactor: description: The physical dimensions of this server. For a blade server this is either HalfHeight or
FullHeight. For a rack server this is expressed in U height, e.g. 4U.
readonly: true
type: string
name: description: The name of the server hardware type.