-
Notifications
You must be signed in to change notification settings - Fork 52
Remove HPOVStorageVolumeSnapshot
Remove storage volume snapshot resource(s).
Remove-HPOVStorageVolumeSnapshot [-InputObject] <Object> [-ApplianceConnection] <Object>[ [-Async] <SwitchParameter>][ [-WhatIf] <SwitchParameter>][ [-Confirm] <SwitchParameter>] [<CommonParameters>]
This Cmdlet will remove a storage volume snapshot from a storage volume resource object. Removal of a snapshot is a destructive operation of the snapshot only.
-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? | 1 |
Default value | (${Global:ConnectedSessions} | ? Default) |
Accept pipeline input? | true (ByPropertyName) |
Accept wildcard characters? | False |
-Async <SwitchParameter>
Use this parameter to immediately return the async task. By default, the Cmdlet will wait for the task to complete.
Aliases | None |
Required? | false |
Position? | named |
Default value | false |
Accept pipeline input? | false |
Accept wildcard characters? | False |
-Confirm <SwitchParameter>
Aliases | cf |
Required? | false |
Position? | named |
Default value | |
Accept pipeline input? | false |
Accept wildcard characters? | False |
-InputObject <Object>
Aliases [-Snapshot]
Provide the snapshot resource object to remove from the appliance.
Aliases | Snapshot |
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 |
<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.Storage.VolumeSnapshot [System.Management.Automation.PSCustomObject]
Storage Volume Snapshot resource
HPOneView.Appliance.TaskResource [System.Management.Automation.PSCustomObject]
Async create task resource
System.Collections.ArrayList <HPOneView.Appliance.TaskResource>
Multiple task resources
-------------------------- EXAMPLE 1 --------------------------$Snapshots = Get-HPOVStorageVolume -Name "Volume 1" -ErrorAction Stop | Get-HPOVStorageVolumeSnapshot $Snapshots | ? { ((get-date) - (Get-Date $_.created)).days -ge 5 } | Remove-HPOVStorageVolumeSnapshot
Get all of the available storage volume snapshots for "Volume 1", then remove any snapshots as old or older than 5 days.
-------------------------- EXAMPLE 2 --------------------------Get-HPOVStorageVolume | Get-HPOVStorageVolumeSnapshot | Remove-HPOVStorageVolumeSnapshot
Remove all Storage Volume Snapshots managed by HPE OneView.
Remove storage volume snapshot resource(s).
Remove-HPOVStorageVolumeSnapshot [-InputObject] <Object> [-ApplianceConnection] <Object>[ [-Async] <SwitchParameter>][ [-WhatIf] <SwitchParameter>][ [-Confirm] <SwitchParameter>] [<CommonParameters>]
This Cmdlet will remove a storage volume snapshot from a storage volume resource object. Removal of a snapshot is a destructive operation of the snapshot only.
-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? | 1 |
Default value | (${Global:ConnectedSessions} | ? Default) |
Accept pipeline input? | true (ByPropertyName) |
Accept wildcard characters? | False |
-Async <SwitchParameter>
Use this parameter to immediately return the async task. By default, the Cmdlet will wait for the task to complete.
Aliases | None |
Required? | false |
Position? | named |
Default value | false |
Accept pipeline input? | false |
Accept wildcard characters? | False |
-Confirm <SwitchParameter>
Aliases | cf |
Required? | false |
Position? | named |
Default value | |
Accept pipeline input? | false |
Accept wildcard characters? | False |
-InputObject <Object>
Aliases [-Snapshot]
Provide the snapshot resource object to remove from the appliance.
Aliases | Snapshot |
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 |
<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.Storage.VolumeSnapshot [System.Management.Automation.PSCustomObject]
Storage Volume Snapshot resource
HPOneView.Appliance.TaskResource [System.Management.Automation.PSCustomObject]
Async create task resource
System.Collections.ArrayList <HPOneView.Appliance.TaskResource>
Multiple task resources
-------------------------- EXAMPLE 1 --------------------------$Snapshots = Get-HPOVStorageVolume -Name 'Volume 1' -ErrorAction Stop | Get-HPOVStorageVolumeSnapshot $Snapshots | ? { ((get-date) - (Get-Date $_.created)).days -ge 5 } | Remove-HPOVStorageVolumeSnapshot
Get all of the available storage volume snapshots for 'Volume 1', then remove any snapshots as old or older than 5 days.
-------------------------- EXAMPLE 2 --------------------------Get-HPOVStorageVolume | Get-HPOVStorageVolumeSnapshot | Remove-HPOVStorageVolumeSnapshot
Remove all Storage Volume Snapshots managed by HPE OneView.