-
Notifications
You must be signed in to change notification settings - Fork 52
Remove HPOVStoragePool
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.
-StoragePool <Object>
Aliases [-name, -uri]
The network object(s), name(s) or URI(s) to be deleted.
Aliases | None |
Required? | true |
Position? | 1 |
Default value | <none> |
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 | None |
Required? | true |
Position? | 2 |
Default value | <none> |
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 |
-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 | None |
Required? | false |
Position? | named |
Default value | (${Global:ConnectedSessions} | ? Default) |
Accept pipeline input? | true (ByPropertyName) |
Accept wildcard characters? | false |
-WhatIf [<SwitchParameter>]
Aliases | None |
Required? | false |
Position? | named |
Default value | <none> |
Accept pipeline input? | false |
Accept wildcard characters? | false |
-Confirm [<SwitchParameter>]
Aliases | None |
Required? | false |
Position? | named |
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)
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 **_
Multiple removal async task.
#### RELATED LINKS
- [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)
-------------------------- 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.
Remove-HPOVStoragePool
Delete storage pool resource(s).
Remove-HPOVStoragePool [-storagePool] <Object> [[-WhatIf] <SwitchParameter>] [[-Confirm] <SwitchParameter>] [<CommonParameters>]
Remove-HPOVStoragePool [-storagePool] <Object> [-storageSystem] <Object> [[-WhatIf] <SwitchParameter>] [[-Confirm] <SwitchParameter>] [<CommonParameters>]
Delete one or more storage pools from the appliance configuration.
-storagePool <Object>
Aliases [-name, -uri]
The network object(s), name(s) or URI(s) to be deleted.
Aliases | None |
Required? | true |
Position? | 1 |
Default value | <none> |
Accept pipeline input? | true (ByValue) |
Accept wildcard characters? | false |
-storageSystem <Object>
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 | <none> |
Accept pipeline input? | false |
Accept wildcard characters? | false |
-WhatIf [<SwitchParameter>]
Aliases | None |
Required? | false |
Position? | named |
Default value | <none> |
Accept pipeline input? | false |
Accept wildcard characters? | false |
-Confirm [<SwitchParameter>]
Aliases | None |
Required? | false |
Position? | named |
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)
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.
#### RELATED LINKS
- [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)
-------------------------- 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.
Remove-HPOVStoragePool
Delete storage pool resource(s).
Remove-HPOVStoragePool [-storagePool] <Object> [[-WhatIf] <SwitchParameter>] [[-Confirm] <SwitchParameter>] [<CommonParameters>]
Remove-HPOVStoragePool [-storagePool] <Object> [-storageSystem] <Object> [[-WhatIf] <SwitchParameter>] [[-Confirm] <SwitchParameter>] [<CommonParameters>]
Delete one or more storage pools from the appliance configuration.
-storagePool <Object>
Aliases [-name, -uri]
The network object(s), name(s) or URI(s) to be deleted.
Aliases | None |
Required? | true |
Position? | 1 |
Default value | <none> |
Accept pipeline input? | true (ByValue) |
Accept wildcard characters? | false |
-storageSystem <Object>
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 | <none> |
Accept pipeline input? | false |
Accept wildcard characters? | false |
-WhatIf [<SwitchParameter>]
Aliases | None |
Required? | false |
Position? | named |
Default value | <none> |
Accept pipeline input? | false |
Accept wildcard characters? | false |
-Confirm [<SwitchParameter>]
Aliases | None |
Required? | false |
Position? | named |
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)
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.
#### RELATED LINKS
- [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)
-------------------------- 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.