Documentation Index
Fetch the complete documentation index at: https://mintlify.com/HewlettPackard/POSH-HPEOneView/llms.txt
Use this file to discover all available pages before exploring further.
Synopsis
Updates an existing resource on an HPE OneView appliance by sending an HTTPPUT to the resource’s URI.
Syntax
Description
Set-OVResource is a low-level cmdlet that performs an HTTP PUT on the URI embedded in the resource object ($InputObject.uri). It is the underlying mechanism used by higher-level Set-OV* cmdlets.
The typical workflow is:
- Retrieve the current resource object (e.g., using
Get-OVNetwork). - Modify the desired properties on the PowerShell object.
- Pass the modified object to
Set-OVResource.
.uri property pointing to the resource’s REST URI — all objects returned by Get-OV* cmdlets include this property.
For most resource types, a dedicated
Set-OV* cmdlet exists and is the recommended approach. Use Set-OVResource when no dedicated cmdlet is available, or when the dedicated Set-OV* cmdlet is not yet implemented (such as Set-OVServerProfile and Set-OVServerProfileTemplate in the current release).Parameters
The resource object to update. Accepts pipeline input. Alias:
Resource. Must contain a .uri property. The object is serialized to JSON and sent as a PUT request body.Appends
?force=true to the URI, bypassing some appliance-side safety checks. Use with caution.The appliance connection object or name. Alias:
Appliance. Defaults to the default connection in $ConnectedSessions.Examples
Update an Ethernet network’s bandwidth
Update a server profile (workaround for unimplemented Set-OVServerProfile)
Update a scope description
Force update with conflict bypass
Output
Returns the updated resource object as returned by the appliance (the PUT response body), or anHPEOneview.Appliance.TaskResource for long-running operations.