Partilhar via


CapacityReservationGroupResource.GetCapacityReservation 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}
  • IdCapacityReservations_Get de operação
public virtual Azure.Response<Azure.ResourceManager.Compute.CapacityReservationResource> GetCapacityReservation (string capacityReservationName, Azure.ResourceManager.Compute.Models.CapacityReservationInstanceViewType? expand = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetCapacityReservation : string * Nullable<Azure.ResourceManager.Compute.Models.CapacityReservationInstanceViewType> * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Compute.CapacityReservationResource>
override this.GetCapacityReservation : string * Nullable<Azure.ResourceManager.Compute.Models.CapacityReservationInstanceViewType> * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Compute.CapacityReservationResource>
Public Overridable Function GetCapacityReservation (capacityReservationName As String, Optional expand As Nullable(Of CapacityReservationInstanceViewType) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As 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 era esperado que não estivesse vazio.

capacityReservationName é nulo.

Aplica-se a