Partilhar via


ElasticSanSnapshotCollection.GetAsync(String, CancellationToken) Método

Definição

Obter um instantâneo de volume.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/snapshots/{snapshotName}
  • Operação IdVolumeSnapshots_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ElasticSan.ElasticSanSnapshotResource>> GetAsync (string snapshotName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ElasticSan.ElasticSanSnapshotResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ElasticSan.ElasticSanSnapshotResource>>
Public Overridable Function GetAsync (snapshotName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ElasticSanSnapshotResource))

Parâmetros

snapshotName
String

O nome do volume instantâneo dentro do grupo de volumes fornecido.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

snapshotName é uma cadeia de caracteres vazia e esperava-se que não estivesse vazia.

snapshotName é nulo.

Aplica-se a