-
Notifications
You must be signed in to change notification settings - Fork 52
Remove HPOVPowerDevice
Remove power device (iPDU)
Remove-HPOVPowerDevice [-PowerDevice] <Object>[ [-force] <SwitchParameter>] [-ApplianceConnection] <Object>[ [-WhatIf] <SwitchParameter>][ [-Confirm] <SwitchParameter>] [<CommonParameters>]
Removes a power device (iPDU) from appliance management.
-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? | named |
Default value | (${Global:ConnectedSessions} | ? Default) |
Accept pipeline input? | true (ByPropertyName) |
Accept wildcard characters? | False |
-Confirm <SwitchParameter>
Aliases | cf |
Required? | false |
Position? | named |
Default value | |
Accept pipeline input? | false |
Accept wildcard characters? | False |
-PowerDevice <Object>
The Power Device object(s), name(s) or uri(s) to be removed from management.
Aliases | uri, name |
Required? | true |
Position? | named |
Default value | |
Accept pipeline input? | true (ByValue) |
Accept wildcard characters? | False |
-WhatIf <SwitchParameter>
Aliases | wi |
Required? | false |
Position? | named |
Default value | |
Accept pipeline input? | false |
Accept wildcard characters? | False |
-force <SwitchParameter>
Set to $true to force-remove the power device. Force-removing will succeed even when there are connectivity issues or resource errors.
When the request is accepted by the appliance, it does not return an Async Task Resource.
Aliases | None |
Required? | false |
Position? | named |
Default value | False |
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)
HPOneView.PowerDeliveryDevice [System.Management.Automation.PSCustomObject] Power Device (iPDU) Resource Object
HPOneView.Appliance.TaskResource [System.Management.Automation.PSCustomObject] Async remove task System.Management.Automation.PSCustomObject When using the -Force parameter, a PSCustomObject is returned indicating successful removal of the resource
-------------------------- EXAMPLE 1 --------------------------PS C:\> $task = Remove-HPOVPowerDevice -powerDevice "iPDU16" | Wait-HPOVTaskComplete
Remove the power device specifed by name. Wait for remove to complete.
-------------------------- EXAMPLE 2 --------------------------PS C:\> $ipdu = Get-HPOVPowerDevice -name "iPDU24" PS C:\> Remove-HPOVPowerDevice $ipdu -force -confirm:$false
Force-Remove the profile specifed by $ipdu. Disable confirmation prompt.
-------------------------- EXAMPLE 3 --------------------------PS C:\> Get-HPOVPowerDevice | Remove-HPOVPowerDevice
Search for all power devices and remove them from appliance.
- [Get-HPOVPowerDevice] (/~https://github.com/HewlettPackard/POSH-HPOneView/wiki/Get-HPOVPowerDevice)
- [Add-HPOVPowerDevice] (/~https://github.com/HewlettPackard/POSH-HPOneView/wiki/Add-HPOVPowerDevice)
- [Wait-HPOVTaskComplete] (/~https://github.com/HewlettPackard/POSH-HPOneView/wiki/Wait-HPOVTaskComplete)
### HPE OneView 2.00 Library
Remove power device (iPDU)
Remove-HPOVPowerDevice [-PowerDevice] <Object> [-ApplianceConnection] <Object>[ [-force] <SwitchParameter>][ [-WhatIf] <SwitchParameter>][ [-Confirm] <SwitchParameter>] [<CommonParameters>]
Removes a power device (iPDU) from appliance management.
-ApplianceConnection <Object>
Aliases [-Appliance]
Specify one or more HPOneView.Appliance.Connection object(s) or Name property value(s). 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 |
-Confirm <SwitchParameter>
Aliases | cf |
Required? | false |
Position? | named |
Default value | |
Accept pipeline input? | false |
Accept wildcard characters? | False |
-PowerDevice <Object>
The Power Device object(s), name(s) or uri(s) to be removed from management.
Aliases | uri, name |
Required? | true |
Position? | 0 |
Default value | |
Accept pipeline input? | true (ByValue) |
Accept wildcard characters? | False |
-WhatIf <SwitchParameter>
Aliases | wi |
Required? | false |
Position? | named |
Default value | |
Accept pipeline input? | false |
Accept wildcard characters? | False |
-force <SwitchParameter>
Set to $true to force-remove the power device. Force-removing will succeed even when there are connectivity issues or resource errors.
When the request is accepted by the appliance, it does not return an Async Task Resource.
Aliases | None |
Required? | false |
Position? | named |
Default value | False |
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)
HPOneView.PowerDeliveryDevice [System.Management.Automation.PSCustomObject] Power Device (iPDU) Resource Object.
HPOneView.Appliance.TaskResource [System.Management.Automation.PSCustomObject] Async remove task.
System.Management.Automation.PSCustomObject When using the -Force parameter, a PSCustomObject is returned indicating successful removal of the resource.
-------------------------- EXAMPLE 1 --------------------------PS C:\> $task = Remove-HPOVPowerDevice -powerDevice "iPDU16" | Wait-HPOVTaskComplete
Remove the power device specifed by name. Wait for remove to complete.
-------------------------- EXAMPLE 2 --------------------------PS C:\> $ipdu = Get-HPOVPowerDevice -name "iPDU24" PS C:\> Remove-HPOVPowerDevice $ipdu -force -confirm:$false
Force-Remove the profile specifed by $ipdu. Disable confirmation prompt.
-------------------------- EXAMPLE 3 --------------------------PS C:\> Get-HPOVPowerDevice | Remove-HPOVPowerDevice
Search for all power devices and remove them from appliance.
- [Get-HPOVPowerDevice] (/~https://github.com/HewlettPackard/POSH-HPOneView/wiki/Get-HPOVPowerDevice)
- [Add-HPOVPowerDevice] (/~https://github.com/HewlettPackard/POSH-HPOneView/wiki/Add-HPOVPowerDevice)
- [Wait-HPOVTaskComplete] (/~https://github.com/HewlettPackard/POSH-HPOneView/wiki/Wait-HPOVTaskComplete)
### HPE OneView 1.20 Library
Remove power device (iPDU)
Remove-HPOVPowerDevice [-powerDevice] <powerDevice>[ [-force] <force>][ [-WhatIf] <WhatIf>][ [-Confirm] <Confirm>] [<CommonParameters>]
Removes a power device (iPDU) from appliance management.
-powerDevice <powerDevice>
The Power Device object(s), name(s) or uri(s) to be removed from management.
Aliases | None. |
Required? | true |
Position? | named |
Default value | |
Accept pipeline input? | true (ByValue) |
Accept wildcard characters? | false |
-force <force>
Set to $true to force-remove the power device. Force-removing will succeed even when there are connectivity issues or resource errors.
Aliases | None. |
Required? | false |
Position? | named |
Default value | False |
Accept pipeline input? | false |
Accept wildcard characters? | false |
-WhatIf <WhatIf>
Aliases | None. |
Required? | false |
Position? | named |
Default value | |
Accept pipeline input? | false |
Accept wildcard characters? | false |
-Confirm <Confirm>
Aliases | None. |
Required? | false |
Position? | named |
Default value | |
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)
System.Management.Automation.PSCustomObject Power Device (iPDU) Resource Object.
System.Management.Automation.PSCustomObject Async remove task.
-------------------------- EXAMPLE 1 --------------------------PS C:\> $task = Remove-HPOVPowerDevice -powerDevice "iPDU16" PS C:\> Wait-HPOVTaskComplete $task.uri
Remove the power device specifed by name. Wait for remove to complete.
-------------------------- EXAMPLE 2 --------------------------PS C:\> $ipdu = Get-HPOVPowerDevice -name "iPDU24" PS C:\> Remove-HPOVPowerDevice $ipdu -force -confirm:$false
Force-Remove the profile specifed by $ipdu. Disable confirmation prompt.
-------------------------- EXAMPLE 3 --------------------------PS C:\> Get-HPOVPowerDevice | Remove-HPOVPowerDevice
Search for all power devices and remove them from appliance.
- [Get-HPOVPowerDevice] (/~https://github.com/HewlettPackard/POSH-HPOneView/wiki/Get-HPOVPowerDevice)
- [Add-HPOVPowerDevice] (/~https://github.com/HewlettPackard/POSH-HPOneView/wiki/Add-HPOVPowerDevice)
- [Wait-HPOVTaskComplete] (/~https://github.com/HewlettPackard/POSH-HPOneView/wiki/Wait-HPOVTaskComplete)