Set-OVResource
Syntax
Set-OVResource
[-InputObject] <Object>
[-ApplianceConnection] <Object>
[-Force] <String>
[<CommonParameters>]
Description
This Cmdlet will assist the user to update an existing resource. The resource should first be retrieved with a "Get-OV[resourcename]" Cmdlet. The PowerShell resource may then be modified, followed by this "Set-OVResource" Cmdlet.
Examples
Example 1
Updates the name of the Server Profile resource.
Parameters
-InputObject <Object>
The modified resource that is to be updated. Can be resource object, name or URI.
| Aliases | Resource |
|---|---|
| Required? | True |
| Position? | Named |
| Default value | |
| Accept pipeline input? | true (ByValue) |
| Accept wildcard characters? | False |
-Force <String>
Set to $true to force-update the resource. Not all resources support force-update.
| Aliases | None |
|---|---|
| Required? | True |
| Position? | Named |
| Default value | False |
| Accept pipeline input? | false |
| Accept wildcard characters? | False |
-ApplianceConnection <Object>
Specify one [HPEOneView.Appliance.Connection] object or Name property value. If Resource object is provided via Pipeline, the ApplianceConnection property of the object will be used.
| Aliases | Appliance |
|---|---|
| Required? | True |
| Position? | Named |
| Default value | (${Global:ConnectedSessions} | ? Default) |
| Accept pipeline input? | true (ByPropertyName) |
| Accept wildcard characters? | False |
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216)
Input Types
Resource Object to modify by either using Send-OVRequest with the resource URI, or the resource GET Cmdlet
Return Values
The modified resource or async task depending on the resource being modified