-
Notifications
You must be signed in to change notification settings - Fork 52
ConvertTo HPOVStorageVolume
COnvert an existing Storage Volume Snapshot to a Storage Volume.
ConvertTo-HPOVStorageVolume [-Name] <String> [-Description] <String> [-SharingMode] <String> [-Snapshot] <Object> [-ApplianceConnection] <Object> [<CommonParameters>]
Storage Volume Snapshots can be converted to assignable and managed Storage Volume resources. When converting a Snapshot to a Storag Volume, it will lose its parent/child relationship.
-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 |
-Description <String>
The description of the storage volume.
Aliases | None |
Required? | true |
Position? | 1 |
Default value | |
Accept pipeline input? | false |
Accept wildcard characters? | False |
-Name <String>
The Storage Volume Name.
Aliases | None |
Required? | true |
Position? | 0 |
Default value | |
Accept pipeline input? | false |
Accept wildcard characters? | False |
-SharingMode <String>
Specify if the new storage volume should be Private or Shared.
Aliases | None |
Required? | true |
Position? | 2 |
Default value | |
Accept pipeline input? | false |
Accept wildcard characters? | False |
-Snapshot <Object>
Provide the snapshot resource object to convert managed by the appliance.
Aliases | None |
Required? | true |
Position? | named |
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)
HPOneView.Storage.VolumeSnapshot [System.Management.Automation.PSCustomObject] Storage Volume Snapshot resource object.
System.Collections.ArrayList <HPOneView.Appliance.TaskResource> Multiple resources
HPOneView.Appliance.TaskResource [System.Management.Automation.PSCustomObject] Create Storage Volume async task.
-------------------------- EXAMPLE 1 --------------------------PS C:\> Get-HPOVStorageVolume
Return all storage volume resource objects.
-------------------------- EXAMPLE 2 --------------------------PS C:\> $Snapshots = Get-HPOVStorageVolume 'Volume 1' | Get-HPOVStorageVolumeSnapshot PS C:\> $Snapshots | ? { ((Get-Date $_.created -Format d) -eq (Get-Date 02/23/2016 -format d)} | ConvertTo-HPOVStorageVolume -Name 'Copy of Volume 1' | Wait-HPOVTaskComplete
Get all of the available storage volume snapshots for 'Volume 1', then convert the snapshot created on the specified date to a storage volume resource.
- [Get-HPOVStorageVolumeSnapshot] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/Get-HPOVStorageVolumeSnapshot)
- [New-HPOVStorageVolumeSnapshot] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/New-HPOVStorageVolumeSnapshot)
- [Remove-HPOVStorageVolumeSnapshot] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/Remove-HPOVStorageVolumeSnapshot)
- [Get-HPOVStorageVolume] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/Get-HPOVStorageVolume)
- [New-HPOVStorageVolume] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/New-HPOVStorageVolume)
- [Add-HPOVStorageVolume] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/Add-HPOVStorageVolume)
- [Remove-HPOVStorageVolume] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/Remove-HPOVStorageVolume)
- [Get-HPOVStorageVolumeTemplate] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/Get-HPOVStorageVolumeTemplate)
- [New-HPOVStorageVolumeTemplate] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/New-HPOVStorageVolumeTemplate)
- [Get-HPOVStorageVolumeTemplatePolicy] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/Get-HPOVStorageVolumeTemplatePolicy)
- [Set-HPOVStorageVolumeTemplate] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/Set-HPOVStorageVolumeTemplate)
- [Get-HPOVStoragePool] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/Get-HPOVStoragePool)
- [Add-HPOVStoragePool] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/Add-HPOVStoragePool)