Поделиться через


ElasticSanVolumeGroupResource.PreRestoreVolumeAsync Method

Definition

Validate whether a list of backed up disk snapshots can be restored into ElasticSan volumes.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/preRestore
  • Operation Id: Volumes_PreRestore
  • Default Api Version: 2024-07-01-preview
  • Resource: ElasticSanVolumeResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ElasticSan.Models.ElasticSanPreValidationResult>> PreRestoreVolumeAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.ElasticSan.Models.DiskSnapshotListContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member PreRestoreVolumeAsync : Azure.WaitUntil * Azure.ResourceManager.ElasticSan.Models.DiskSnapshotListContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ElasticSan.Models.ElasticSanPreValidationResult>>
override this.PreRestoreVolumeAsync : Azure.WaitUntil * Azure.ResourceManager.ElasticSan.Models.DiskSnapshotListContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ElasticSan.Models.ElasticSanPreValidationResult>>
Public Overridable Function PreRestoreVolumeAsync (waitUntil As WaitUntil, content As DiskSnapshotListContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of ElasticSanPreValidationResult))

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

content
DiskSnapshotListContent

Disk Snapshot List (currently only one Disk Snapshot in the list is supported and that the Disk Snapshot must be in same azure region as the ElasticSan. Server would return error if list is bigger).

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

content is null.

Applies to