-
Notifications
You must be signed in to change notification settings - Fork 52
Remove HPOVStoragePool
Delete storage pool resource(s).
Remove-HPOVStoragePool [-StoragePool] <Object>[ [-Force] <SwitchParameter>] [-ApplianceConnection] <Object>[ [-WhatIf] <SwitchParameter>][ [-Confirm] <SwitchParameter>] [<CommonParameters>]
Remove-HPOVStoragePool [-StoragePool] <Object> [-StorageSystem] <Object>[ [-Force] <SwitchParameter>][ [-WhatIf] <SwitchParameter>][ [-Confirm] <SwitchParameter>] [<CommonParameters>]
Delete one or more storage pools from the appliance configuration.
-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:ConnectSessions} | ? 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 |
-Force <SwitchParameter>
If specified, the Storage Pool resource will forceablly removed despite any problems with network connectivity or errors with the resource.
Aliases | None |
Required? | false |
Position? | named |
Default value | False |
Accept pipeline input? | false |
Accept wildcard characters? | False |
-StoragePool <Object>
Aliases [-name, -uri] The network object(s), name(s) or URI(s) to be deleted.
Aliases | uri, name |
Required? | true |
Position? | 0 |
Default value | |
Accept pipeline input? | true (ByValue) |
Accept wildcard characters? | False |
-StorageSystem <Object>
Aliases [-storage] Provide the Storage System Name, URI or Object when the StoragePool name is not unique.
Aliases | storage |
Required? | true |
Position? | 1 |
Default value | |
Accept pipeline input? | false |
Accept wildcard characters? | False |
-WhatIf <SwitchParameter>
Aliases | wi |
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.String Single Storage Pool resource name.
HPOneView.Storage.Pool [System.Management.Automation.PSCustomObject] Single Storage Pool resource, typically retrieved with Get-HPOVStoragePool.
HPOneView.Appliance.TaskResource [System.Management.Automation.PSCustomObject] Removal async task.
System.Collections.ArrayList <HPOneView.Appliance.TaskResource> Multiple removal async task.
-------------------------- EXAMPLE 1 --------------------------PS C:\> $task = Remove-HPOVStoragePool -storagePool "yellow" | Wait-HPOVTaskComplete $task
Remove the storage pool specifed by name. Wait for remove to complete.
-------------------------- EXAMPLE 2 --------------------------PS C:\> $pool = Get-HPOVStoragePool -name "yellow" PS C:\> REmove-HPOVStoragePool -storagePool $pool -confirm:$false
Remove the network specifed by $pool, and do not prompt for confirmation.
-------------------------- EXAMPLE 3 --------------------------PS C:\> Get-HPOVStoragePool | Remove-HPOVStoragePool
Search for all storage pools and remove them from appliance.
- [Get-HPOVStoragePool] (/~https://github.com/HewlettPackard/POSH-HPOneView/wiki/Get-HPOVStoragePool)
- [Add-HPOVStoragePool] (/~https://github.com/HewlettPackard/POSH-HPOneView/wiki/Add-HPOVStoragePool)
- [Wait-HPOVTaskComplete] (/~https://github.com/HewlettPackard/POSH-HPOneView/wiki/Wait-HPOVTaskComplete)
Delete storage pool resource(s).
Remove-HPOVStoragePool [-storagePool] <storagePool>[ [-WhatIf] <WhatIf>][ [-Confirm] <Confirm>] [<CommonParameters>]
Remove-HPOVStoragePool [-storagePool] <storagePool> [-storageSystem] <storageSystem>[ [-WhatIf] <WhatIf>][ [-Confirm] <Confirm>] [<CommonParameters>]
Delete one or more storage pools from the appliance configuration.
-storagePool <storagePool>
Aliases [-name, -uri] The network object(s), name(s) or URI(s) to be deleted.
Aliases | None. |
Required? | true |
Position? | 1 |
Default value | |
Accept pipeline input? | true (ByValue) |
Accept wildcard characters? | false |
-storageSystem <storageSystem>
Aliases [-storage] Optional. Provide the Storage System Name, URI or Object when the StoragePool name is not unique.
Aliases | None. |
Required? | true |
Position? | 2 |
Default value | |
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.String Single Storage Pool resource name. System.Management.Automation.PSCustomObject Single Storage Pool resource, typically retrieved with Get-HPOVStoragePool.
System.Management.Automation.PSCustomObject Removal task.
-------------------------- EXAMPLE 1 --------------------------PS C:\> $task = Remove-HPOVStoragePool -storagePool "yellow" PS C:\> Wait-HPOVTaskComplete $task.uri
Remove the storage pool specifed by name. Wait for remove to complete.
-------------------------- EXAMPLE 2 --------------------------PS C:\> $pool = Get-HPOVStoragePool -name "yellow" PS C:\> REMOVE-HPOVSTORAGEPOOL -storagePool $pool -confirm:$false
Remove the network specifed by $pool, and do not prompt for confirmation.
-------------------------- EXAMPLE 3 --------------------------PS C:\> Get-HPOVStoragePool | Remove-HPOVStoragePool
Search for all storage pools and remove them from appliance.
- [Get-HPOVStoragePool] (/~https://github.com/HewlettPackard/POSH-HPOneView/wiki/Get-HPOVStoragePool)
- [Add-HPOVStoragePool] (/~https://github.com/HewlettPackard/POSH-HPOneView/wiki/Add-HPOVStoragePool)
- [Wait-HPOVTaskComplete] (/~https://github.com/HewlettPackard/POSH-HPOneView/wiki/Wait-HPOVTaskComplete)