Partilhar via


CapacityReservationGroupResource.GetCapacityReservationAsync Método

Definição

A operação que recupera informações sobre a reserva de capacidade.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}/capacityReservations/{capacityReservationName}
  • Operação IdCapacityReservations_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Compute.CapacityReservationResource>> GetCapacityReservationAsync (string capacityReservationName, Azure.ResourceManager.Compute.Models.CapacityReservationInstanceViewType? expand = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetCapacityReservationAsync : string * Nullable<Azure.ResourceManager.Compute.Models.CapacityReservationInstanceViewType> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Compute.CapacityReservationResource>>
override this.GetCapacityReservationAsync : string * Nullable<Azure.ResourceManager.Compute.Models.CapacityReservationInstanceViewType> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Compute.CapacityReservationResource>>
Public Overridable Function GetCapacityReservationAsync (capacityReservationName As String, Optional expand As Nullable(Of CapacityReservationInstanceViewType) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of CapacityReservationResource))

Parâmetros

capacityReservationName
String

O nome da reserva de capacidade.

expand
Nullable<CapacityReservationInstanceViewType>

A expressão de expansão a ser aplicada na operação. 'InstanceView' recupera uma instantâneo das propriedades de runtime da reserva de capacidade gerenciada pela plataforma e pode ser alterada fora das operações do painel de controle.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

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

capacityReservationName é nulo.

Aplica-se a