-
Notifications
You must be signed in to change notification settings - Fork 52
Set HPOVResource
Update existing resource(s).
Set-HPOVResource [-InputObject] <Object> [-ApplianceConnection] <Object> [-Force] <String> [<CommonParameters>]
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.
-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)
System.Management.Automation.PSCustomObject
Resource Object to modify by either using Send-HPOVRequest with the resource URI, or the resource GET CMDLET
System.Management.Automation.PSCustomObject
The modified resource or async task depending on the resource being modified
-------------------------- EXAMPLE 1 --------------------------$profile = Get-HPOVServerProfile "Profile 1" $profile.name = "New Name" Set-HPOVResource $profile
Updates the name of the Server Profile resource.
- Add-HPOVResourceToLabel
- Add-HPOVResourceToRack
- Add-HPOVResourceToScope
- New-HPOVResource
- Remove-HPOVResource
- Remove-HPOVResourceFromLabel
- Remove-HPOVResourceFromScope
Update existing resource(s).
Set-HPOVResource [-InputObject] <Object> [-ApplianceConnection] <Object> [-Force] <String> [<CommonParameters>]
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.
-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)
System.Management.Automation.PSCustomObject
Resource Object to modify by either using Send-HPOVRequest with the resource URI, or the resource GET CMDLET
System.Management.Automation.PSCustomObject
The modified resource or async task depending on the resource being modified
-------------------------- EXAMPLE 1 --------------------------$profile = Get-HPOVServerProfile 'Profile 1' $profile.name = "New Name" Set-HPOVResource $profile
Updates the name of the Server Profile resource.
- Add-HPOVResourceToLabel
- Add-HPOVResourceToRack
- Add-HPOVResourceToScope
- New-HPOVResource
- Remove-HPOVResource
- Remove-HPOVResourceFromLabel
- Remove-HPOVResourceFromScope