WT_Snapshot class

Represents a volume shadow copy.

The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties.

Syntax

class WT_Snapshot
{
  string               Id;
  string               Description;
  uint32               OrigWTD;
  sint32               Status;
  string               TimeStamp;
  sint32               ExportedWTD;
  WT_VDSLunInformation VdsLunInfo;
  string               ResourceGroup;
};

Members

The WT_Snapshot class has these types of members:

Methods

The WT_Snapshot class has these methods.

MethodDescription
AbortRollback

Aborts the rollback of the virtual disk.

Create

Creates a shadow copy of the specified virtual disk.

Delete

Deletes a shadow copy.

DVDismount

Dismounts the shadow copy that was mounted locally.

Windows Server 2012 R2:  This method is deprecated. Use iSCSI loopback instead.

DVMount

Mounts the current shadow copy in read-only mode on the local iSCSI Target server.

Windows Server 2012 R2:  This method is deprecated. Use iSCSI loopback instead.

Export

Exports the current shadow copy as a virtual disk.

Rollback

Rolls back the virtual disk to the current shadow copy.

 

Properties

The WT_Snapshot class has these properties.

Description
Data type: string
Access type: Read/write

A user-friendly description of the shadow copy.

ExportedWTD
Data type: sint32
Access type: Read-only

Contains the index of the disk in the event that the shadow copy is exported as a virtual disk.

Id
Data type: string
Access type: Read-only
Qualifiers: Key

A GUID that uniquely identifies this shadow copy

OrigWTD
Data type: uint32
Access type: Read-only

The iSCSI disk index of the virtual disk that this shadow copy belongs to.

ResourceGroup
Data type: string
Access type: Read-only

The resource group. Valid only in a cluster.

Status
Data type: sint32
Access type: Read-only

Status of the current shadow copy. This property is a bitmask and can contain one or more of the following values.

Idle (0x0)

Exposed (0x1)

DVMounted (0x2)

RollbackInProgress (0x4)

TimeStamp
Data type: string
Access type: Read-only

The date and time when this shadow copy was created.

VdsLunInfo
Data type: WT_VDSLunInformation
Access type: Read-only

LUN information for an exported shadow copy.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2012

Namespace

Root\Wmi

MOF

WmiWtProvider.mof

DLL

WtWmiProv.dll

 

 

Show: