你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

CostManagementExtensions.GenerateBenefitUtilizationSummariesReportReservationScopeAsync 方法

定义

触发为提供的预留生成权益利用率摘要报告。

  • 请求路径/提供程序/Microsoft.Capacity/reservationorders/{reservationOrderId}/reservations/{reservationId}/providers/Microsoft.CostManagement/generateBenefitUtilizationSummariesReport
  • 操作IdReservationScope_GenerateBenefitUtilizationSummariesReport
public static System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CostManagement.Models.BenefitUtilizationSummariesOperationStatus>> GenerateBenefitUtilizationSummariesReportReservationScopeAsync (this Azure.ResourceManager.Resources.TenantResource tenantResource, Azure.WaitUntil waitUntil, string reservationOrderId, string reservationId, Azure.ResourceManager.CostManagement.Models.BenefitUtilizationSummariesContent content, System.Threading.CancellationToken cancellationToken = default);
static member GenerateBenefitUtilizationSummariesReportReservationScopeAsync : Azure.ResourceManager.Resources.TenantResource * Azure.WaitUntil * string * string * Azure.ResourceManager.CostManagement.Models.BenefitUtilizationSummariesContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CostManagement.Models.BenefitUtilizationSummariesOperationStatus>>
<Extension()>
Public Function GenerateBenefitUtilizationSummariesReportReservationScopeAsync (tenantResource As TenantResource, waitUntil As WaitUntil, reservationOrderId As String, reservationId As String, content As BenefitUtilizationSummariesContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of BenefitUtilizationSummariesOperationStatus))

参数

tenantResource
TenantResource

方法 TenantResource 将对其执行的实例。

waitUntil
WaitUntil

Completed 如果方法应等待返回,直到服务上长时间运行的操作完成; Started 如果它应在启动操作后返回,则为 。 有关长时间运行的操作的详细信息,请参阅 Azure.Core Long-Running 操作示例

reservationOrderId
String

预留订单 ID。

reservationId
String

预留 ID。

content
BenefitUtilizationSummariesContent

要创建的异步权益利用率摘要报表。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

reservationOrderIdreservationId 是空字符串,预期为非空。

reservationOrderIdreservationIdcontent 为 null。

适用于