HP OneView REST API Reference

logical-interconnects
logical-interconnects.html[10/17/2013 10:35:29 AM]
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
LIFirmware Required
Response Description
TaskResourceV2 An object that can be used to track the progress of the firmware update operation to completion
Response Codes
REST API Response Codes
Examples
The following examples show the various options that are available for performing a firmware update operation.
Stage firmware: The following example shows how to perform a STAGE operation on the logical interconnect.
The stage operation uploads the firmware image onto the interconnect module but does not yet activate it.
This operation can be performed if you want to load a new firmware image to the interconnect module,
but do not want to activate it yet.
Also note that the firmware will be automatically activated if the switch is rebooted
manually after performing a STAGE operation.
This operation is allowed only if the state of the logical interconnect is one among
UNINITIALIZED, PARTIALLY_STAGED,STAGING_FAILED.
The force flag needs to be set to true in case the same firmware baseline needs to be staged again
onto the interconnects.
PUT https://{appl}/rest/logical-interconnects/d0432852-28a7-4060-ba49-57ca973ef6c2/firmware
Payload :
'{"command": "STAGE",
"sppUri": "/rest/firmware-drivers/SPPBLRH2012100_2012_1119_FusionBeta",
"force": false/true
}'
Activate staged firmware: The following example shows how to perform an ACTIVATE operation on the
logical interconnect. The activate operation activates the last staged firmware on the interconnect.
This operation is allowed only if the state of the logical interconnect is one among
STAGED,PARTIALLY_ACTIVATED,ACTIVATION_FAILED. *
PUT https://{appl}/rest/logical-interconnects/d0432852-28a7-4060-ba49-57ca973ef6c2/firmware
Payload :
'{"command": "ACTIVATE",
"sppUri": "/rest/firmware-drivers/SPPBLRH201100_2012_1119_FusionBeta",
"interconnects": [ {"interconnectUri": "/rest/interconnects/46a290c3-323f-4991-9764-ce9ec8e1621a"},
{"interconnectUri": "/rest/interconnects/9364b626-8548-498c-945d-1f6f48f95180"}..]
}'
Update firmware : The following example shows how to perform an UPDATE operation on the logical
interconnect. The update operation stages and activates the provided firmware baseline on the interconnect.
This operation is allowed only if the state of the logical interconnect is one among
UNINITIALIZED,STAGED, PARTIALLY_STAGED,STAGING_FAILED,PARTIALLY_ACTIVATED,ACTIVATION_FAILED
The force flag needs to be set to true in case the same firmware baseline needs to be updated again
onto the interconnects.
PUT https://{appl}/rest/logical-interconnects/d0432852-28a7-4060-ba49-57ca973ef6c2/firmware
Payload :
'{"command": "UPDATE",
"sppUri": "/rest/firmware-drivers/SPPBLRH2012100_2012_1119_FusionBeta",
"force": false/true
}'