NAME

Set-HPOVResource

SYNOPSIS

Update an existing resource.

SYNTAX

Set-HPOVResource [-resource] <Object> [[-force] <String>] [<CommonParameters>]

DESCRIPTION

Update an existing resource, using PUT. The resource should first be read with a "Get-HPOVxxx" request. The PowerShell resource may then be modified followed by this "Set-HPOVResource" call.

PARAMETERS

-resource <Object>
The modified resource that is to be updated
Aliases None.           
Required? true
Position? 1
Default value <none>
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? false
Position? 2
Default value <none>
Accept pipeline input? false
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).

INPUTS

System.Management.Automation.PSCustomObject

Resource Object to modify by either using Send-HPOVRequest with the resource URI, or the resource GET CMDLET.

OUTPUTS

System.Management.Automation.PSCustomObject

The modified resource or async task depending on the resource being modified.

RELATED LINKS

EXAMPLES

-------------------------- EXAMPLE 1 --------------------------

PS C:\> $profile = Send-HPOVRequest /rest/server-profiles/7138142f-f569-4489-a9bb-18913279fc30
PS C:\> $profile.name = "New Name"
PS C:\> Set-HPOVResource $profile
Updates the name of the Server Profile object.

Last edited Mar 13, 2014 at 5:03 AM by ChrisLynchHP, version 3