MockableCostManagementTenantResource.ByBillingAccountIdGenerateReservationDetailsReport 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.
Generates the reservations details report for provided date range asynchronously based on enrollment id. The Reservation usage details can be viewed only by certain enterprise roles. For more details on the roles see, https://docs.microsoft.com/en-us/azure/cost-management-billing/manage/understand-ea-roles#usage-and-costs-access-by-role
- Request Path: /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/generateReservationDetailsReport
- Operation Id: GenerateReservationDetailsReport_ByBillingAccountId
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CostManagement.Models.OperationStatus> ByBillingAccountIdGenerateReservationDetailsReport (Azure.WaitUntil waitUntil, string billingAccountId, string startDate, string endDate, System.Threading.CancellationToken cancellationToken = default);
abstract member ByBillingAccountIdGenerateReservationDetailsReport : Azure.WaitUntil * string * string * string * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CostManagement.Models.OperationStatus>
override this.ByBillingAccountIdGenerateReservationDetailsReport : Azure.WaitUntil * string * string * string * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CostManagement.Models.OperationStatus>
Public Overridable Function ByBillingAccountIdGenerateReservationDetailsReport (waitUntil As WaitUntil, billingAccountId As String, startDate As String, endDate As String, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of OperationStatus)
Parameters
- waitUntil
- WaitUntil
Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
- billingAccountId
- String
Enrollment ID (Legacy BillingAccount ID).
- startDate
- String
Start Date.
- endDate
- String
End Date.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
billingAccountId
is an empty string, and was expected to be non-empty.
billingAccountId
, startDate
or endDate
is null.
Applies to
Azure SDK for .NET