HP OneView REST API Reference

server-profiles
server-profiles.html[10/17/2013 10:35:14 AM]
Response Codes
REST API Response Codes
Examples
GET
https://{appl}/rest/server-profiles/messages/schema
URI: /rest/server-profiles/profile-ports
Method API
GET This API retrieves portmodel associated with a server or server hardware type and enclosure group
Parameter Attributes Description
serverHardwareUri Optional The UUID of the Server Hardware object It is required when
serverHardwareTypeUri and enclosureGroupUri are not specified
serverHardwareTypeUri Optional The UUID of the Server Hardware Type object It is required along
with enclosureGroupUri when serverHardwareUri is not specified
enclosureGroupUri Optional The UUID of the Enclosure Group object It is required along with
serverHardwareTypeUri when serverHardwareUri is not specified
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
ProfilePortModel PortModel associated with the specified server.
Response Codes
REST API Response Codes
Examples
The example listed here retrieves the portmodel
associated with a server:
GET https://{appl}/rest/server-profiles/profile-ports?
serverHardwareUri={uri}
This example retrieves the portmodel associated with a
server hardware type and enclosure group
GET https://{appl}/rest/server-profiles/profile-ports?
serverHardwareTypeUri={uri}&enclosureGroupUri={uri}
URI: /rest/server-profiles/profile-ports/schema
Method API
GET Generate the port capabilities JSON formatted schema
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
JsonSchema The json schema of the port object