Share via


ConsumptionExtensions.GetReservationConsumptionResource Method

Definition

Gets an object representing a ReservationConsumptionResource along with the instance operations that can be performed on it but with no data. You can use Azure.ResourceManager.Consumption.ReservationConsumptionResource.CreateResourceIdentifier(System.String,System.String) to create a ReservationConsumptionResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetReservationConsumptionResource(ResourceIdentifier) instead.

public static Azure.ResourceManager.Consumption.ReservationConsumptionResource GetReservationConsumptionResource (this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id);
static member GetReservationConsumptionResource : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier -> Azure.ResourceManager.Consumption.ReservationConsumptionResource
<Extension()>
Public Function GetReservationConsumptionResource (client As ArmClient, id As ResourceIdentifier) As ReservationConsumptionResource

Parameters

client
ArmClient

The ArmClient instance the method will execute against.

id
ResourceIdentifier

The resource ID of the resource to get.

Returns

Returns a ReservationConsumptionResource object.

Exceptions

client is null.

Applies to