Sdílet prostřednictvím


CapacityReservationsOperationsExtensions.GetAsync Method

Definition

The operation that retrieves information about the capacity reservation.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Models.CapacityReservation> GetAsync (this Microsoft.Azure.Management.Compute.ICapacityReservationsOperations operations, string resourceGroupName, string capacityReservationGroupName, string capacityReservationName, string expand = default, System.Threading.CancellationToken cancellationToken = default);
static member GetAsync : Microsoft.Azure.Management.Compute.ICapacityReservationsOperations * string * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Models.CapacityReservation>
<Extension()>
Public Function GetAsync (operations As ICapacityReservationsOperations, resourceGroupName As String, capacityReservationGroupName As String, capacityReservationName As String, Optional expand As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of CapacityReservation)

Parameters

operations
ICapacityReservationsOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group.

capacityReservationGroupName
String

The name of the capacity reservation group.

capacityReservationName
String

The name of the capacity reservation.

expand
String

The expand expression to apply on the operation. 'InstanceView' retrieves a snapshot of the runtime properties of the capacity reservation that is managed by the platform and can change outside of control plane operations. Possible values include: 'instanceView'

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to