Set HPOVResource - HewlettPackard/POSH-HPEOneView GitHub Wiki

HPE OneView 4.10 Library

Set-HPOVResource

Update existing resource(s).

SYNTAX

Set-HPOVResource [-InputObject] <Object> [-ApplianceConnection] <Object> [-Force] <String> [<CommonParameters>]

Detailed Description

This CMDLET will assist the user to update an existing resource. The resource should first be retrieved with a "Get-HPOV[resourcename]" CMDLET. The PowerShell resource may then be modified, followed by this "Set-HPOVResource" cmdlet.

Parameters

-ApplianceConnection <Object>

Aliases [-Appliance]

Specify one HPOneView.Appliance.Connection object or Name property value. If Resource object is provided via Pipeline, the ApplianceConnection property of the object will be used.

Default Value: ${Global:ConnectedSessions} | ? Default

Aliases Appliance
Required? true
Position? 1
Default value (${Global:ConnectedSessions} | ? Default)
Accept pipeline input? true (ByPropertyName)
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

-InputObject <Object>

The modified resource that is to be updated. Can be resource object, name or URI.

Aliases Resource
Required? true
Position? 0
Default value
Accept pipeline input? true (ByValue)
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

System.Management.Automation.PSCustomObject

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

Return Values

System.Management.Automation.PSCustomObject

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

Examples

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

$profile = Get-HPOVServerProfile "Profile 1" $profile.name = "New Name" Set-HPOVResource $profile

Updates the name of the Server Profile resource.

Related Links


Top

HPE OneView 4.00 Library

Set-HPOVResource

Update existing resource(s).

SYNTAX

Set-HPOVResource [-InputObject] <Object> [-ApplianceConnection] <Object> [-Force] <String> [<CommonParameters>]

Detailed Description

This CMDLET will assist the user to update an existing resource. The resource should first be retrieved with a 'Get-HPOV[resourcename]' CMDLET. The PowerShell resource may then be modified, followed by this 'Set-HPOVResource' cmdlet.

Parameters

-ApplianceConnection <Object>

Aliases [-Appliance]

Specify one HPOneView.Appliance.Connection object or Name property value. If Resource object is provided via Pipeline, the ApplianceConnection property of the object will be used.

Default Value: ${Global:ConnectedSessions} | ? Default

Aliases Appliance
Required? true
Position? 1
Default value (${Global:ConnectedSessions} | ? Default)
Accept pipeline input? true (ByPropertyName)
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

-InputObject <Object>

The modified resource that is to be updated. Can be resource object, name or URI.

Aliases Resource
Required? true
Position? 0
Default value
Accept pipeline input? true (ByValue)
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

System.Management.Automation.PSCustomObject

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

Return Values

System.Management.Automation.PSCustomObject

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

Examples

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

$profile = Get-HPOVServerProfile 'Profile 1' $profile.name = "New Name" Set-HPOVResource $profile

Updates the name of the Server Profile resource.

Related Links


Top
⚠️ **GitHub.com Fallback** ⚠️