HewlettPackard / POSH-HPEOneView

PowerShell language bindings library for HPE OneView.
http://hewlettpackard.github.io/POSH-HPEOneView/
125 stars 52 forks source link

Request an enhancement to the library - Set-OVRack Cmdlet #623

Open phsimons opened 1 year ago

phsimons commented 1 year ago

Would it be possible to create a Set-OVRack Cmdlet

ChrisLynchHPE commented 1 year ago

While you can use the following example to update a rack object, I'll look into adding a Set-OVRack Cmdlet.

# Get the rack to update
$Rack = Get-OVRack -Name MyRack

# Change the name
$Rack.name = "Updated rack name"

# Update the power capacity to 15kW
$Rack.thermalLimit = 15000

# Save the changes to the appliance
Set-OVResource -Inputobject $Rack
ChrisLynchHPE commented 1 year ago

This issue is added in both the 7.20 and 8.00 libraries:

(It appears I forgot to add that note in both the 7.20 and 8.00 release notes.)

I will be posting updates to the 6.60, 7.00 and 7.10 libraries later in the week.