Partilhar via


DiskPoolCollection.GetAsync(String, CancellationToken) Método

Definição

Obter um pool de discos.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StoragePool/diskPools/{diskPoolName}
  • IdDiskPools_Get de operação
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.StoragePool.DiskPoolResource>> GetAsync (string diskPoolName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.StoragePool.DiskPoolResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.StoragePool.DiskPoolResource>>
Public Overridable Function GetAsync (diskPoolName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of DiskPoolResource))

Parâmetros

diskPoolName
String

O nome do Pool de Discos.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

diskPoolName é uma cadeia de caracteres vazia e era esperado que não estivesse vazio.

diskPoolName é nulo.

Aplica-se a