HP OneView REST API Reference

server-profiles
server-profiles.html[10/17/2013 10:35:14 AM]
to the appliance.
Notes:
1. This method will return 202 ACCEPTED even if there is
no match for the filter.
2. A successful return of this API only indicates that a
delete profiles was successfully requested. Monitor the
returned TaskResourceV2 URI to determine the outcome
delete profiles operation.
POST Creates a server profile using the information provided in the request body. Connection requests can be one of
the following types - port auto, auto and explicit. An explicit request is where the request includes the adapter,
port and flexNic. An auto request is where none of the three are specified and a port auto request is where just
the adapter and port are specified.
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"
Request Body Attributes Description
ServerProfileV1 Required Server Profile object's desired configuration
Response Description
TaskResourceV2 TaskResourceV2 object for tracking of the create
operation to
completion
Response Codes
REST API Response Codes
Examples
A basic connectionless server profile is created by
invoking following
API:
POST https://{appl}/rest/server-profiles
With the request body illustrated here:
{"type":"ServerProfileV1",
"name":"Profile101",
"serverHardwareUri":"/rest/server-hardware/{serverUUID}"
}
A connectionless unassigned server profile is created by
invoking following API:
POST https://{appl}/rest/server-profiles
With the request body illustrated here:
{"type":"ServerProfileV1",
"name":"Profile101",
"serverHardwareTypeUri":
"/rest/server-hardware-types/{serverHardwareTypeUUID}",
"enclosureGroupUri":
"/rest/enclosure-groups/{enclosureGroupUUID}"
}
A more advanced profile includes connections and would use
the same API:
POST https://{appl}/rest/server-profiles
But would have an enhanced request body as shown here:
{"type":"ServerProfileV1",
"name": "Profile101",
"serverHardwareUri":"/rest/server-hardware/{serverUUID}"
"macType": "Virtual",
"serialNumberType": "Virtual",