Set-VolumeSnapshot

SYNOPSIS

Modifies properties of a volume snapshot.

SYNTAX

ByNameVolumeName (Default)

Set-VolumeSnapshot [-Cluster] <Cluster> [-Name] <String> -VolumeName <String> [-NewName <String>] [-Description <String>]
 [-ExpirationTimestamp <DateTime>] [-Confirm] [-WhatIf] [<CommonParameters>]

ByNameVolumeId

Set-VolumeSnapshot [-Cluster] <Cluster> [-Name] <String> -VolumeId <String> [-NewName <String>] [-Description <String>]
 [-ExpirationTimestamp <DateTime>] [-Confirm] [-WhatIf] [<CommonParameters>]

ById

Set-VolumeSnapshot [-Cluster] <Cluster> -Id <String> [-NewName <String>] [-Description <String>]
 [-ExpirationTimestamp <DateTime>] [-Confirm] [-WhatIf] [<CommonParameters>]

DESCRIPTION

Modifies the name, description, or expiration timestamp of a volume snapshot.

EXAMPLES

Example 1

PS C:\> Set-VolumeSnapshot -Cluster $cluster -Id uuid1 -NewName newSnapName -Description "new description"

Where $cluster is a PowerStore cluster instance. Changes the name of the snapshot with Id uuid1 to newSnapName and changes the description to “new description”.

Example 2

PS C:\> Set-VolumeSnapshot -Cluster $cluster -VolumeId uuid1 -Name snapshot1 -NewName newSnapName

Where $cluster is a PowerStore cluster instance. Changes the name of the snapshot named snapshot1, of source volume with Id uuid1, to newSnapName.

Example 3

PS C:\> Set-VolumeSnapshot -Cluster $cluster -VolumeName volume1 -Name snapshot1 -ExpirationTimestamp '2050/11/11 12:12:12'

Where $cluster is a PowerStore cluster instance. Changes the expiration timestamp of the snapshot named snapshot1, of source volume volume1, to ‘2050/11/11 12:12:12’.

PARAMETERS

-Cluster

The PowerStore cluster instance.

Type: Cluster
Parameter Sets: (All)
Aliases:

Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Name

Snapshot name.

Type: String
Parameter Sets: ByNameVolumeName, ByNameVolumeId
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Id

Snapshot Id.

Type: String
Parameter Sets: ById
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-VolumeName

Source volume name.

Type: String
Parameter Sets: ByNameVolumeName
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-VolumeId

Source volume Id.

Type: String
Parameter Sets: ByNameVolumeId
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-NewName

New snapshot name.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Description

Snapshot description.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ExpirationTimestamp

Expiration timestamp.

Type: DateTime
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

None

OUTPUTS

Dell.PowerStore.Management.Model.VolumeSnapshot

NOTES