ConsumptionExtensions.GetConsumptionReservationsDetailsAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Lists the reservations details for the defined scope and provided date range. Note: ARM has a payload size limit of 12MB, so currently callers get 502 when the response size exceeds the ARM limit. In such cases, API call should be made with smaller date ranges.
- Request Path: /{resourceScope}/providers/Microsoft.Consumption/reservationDetails
- Operation Id: ReservationsDetails_List
public static Azure.AsyncPageable<Azure.ResourceManager.Consumption.Models.ConsumptionReservationDetail> GetConsumptionReservationsDetailsAsync (this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, string startDate = default, string endDate = default, string filter = default, string reservationId = default, string reservationOrderId = default, System.Threading.CancellationToken cancellationToken = default);
static member GetConsumptionReservationsDetailsAsync : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier * string * string * string * string * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Consumption.Models.ConsumptionReservationDetail>
<Extension()>
Public Function GetConsumptionReservationsDetailsAsync (client As ArmClient, scope As ResourceIdentifier, Optional startDate As String = Nothing, Optional endDate As String = Nothing, Optional filter As String = Nothing, Optional reservationId As String = Nothing, Optional reservationOrderId As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of ConsumptionReservationDetail)
Parameters
- scope
- ResourceIdentifier
The scope that the resource will apply against.
- startDate
- String
Start date. Only applicable when querying with billing profile.
- endDate
- String
End date. Only applicable when querying with billing profile.
- filter
- String
Filter reservation details by date range. The properties/UsageDate for start date and end date. The filter supports 'le' and 'ge'. Not applicable when querying with billing profile.
- reservationId
- String
Reservation Id GUID. Only valid if reservationOrderId is also provided. Filter to a specific reservation.
- reservationOrderId
- String
Reservation Order Id GUID. Required if reservationId is provided. Filter to a specific reservation order.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
client
is null.
Applies to
Azure SDK for .NET