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

IUsageDetailsOperations.ListByBillingPeriodWithHttpMessagesAsync 方法

定义

按计费周期列出某个范围的使用情况详细信息。 使用情况详细信息仅在 2014 年 5 月 1 日或更高版本通过此 API 提供。 https://docs.microsoft.com/en-us/rest/api/consumption/

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Consumption.Models.UsageDetail>>> ListByBillingPeriodWithHttpMessagesAsync(string billingPeriodName, string expand = default, string filter = default, string skiptoken = default, int? top = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member ListByBillingPeriodWithHttpMessagesAsync : string * string * string * string * Nullable<int> * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Consumption.Models.UsageDetail>>>
Public Function ListByBillingPeriodWithHttpMessagesAsync (billingPeriodName As String, Optional expand As String = Nothing, Optional filter As String = Nothing, Optional skiptoken As String = Nothing, Optional top As Nullable(Of Integer) = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of IPage(Of UsageDetail)))

参数

billingPeriodName
String

计费周期名称。

expand
String

可用于在使用情况详细信息列表中展开 properties/additionalProperties 或 properties/meterDetails。 默认情况下,列出使用情况详细信息时不包括这些字段。

filter
String

可用于按 properties/usageEnd (Utc 时间) 、properties/usageStart (Utc 时间) 、properties/resourceGroup、properties/instanceName 或 properties/instanceId 筛选 usageDetails。 筛选器支持“eq”、“lt”、“gt”、“le”、“ge”和“and”。 它当前不支持“ne”、“or”或“not”。

skiptoken
String

仅当上一个操作返回部分结果时,才使用 Skiptoken。 如果上一个响应包含 nextLink 元素,则 nextLink 元素的值将包含一个 skiptoken 参数,该参数指定用于后续调用的起点。

top
Nullable<Int32>

可用于将结果数限制为最近的 N usageDetails。

customHeaders
Dictionary<String,List<String>>

将添加到请求的标头。

cancellationToken
CancellationToken

取消标记。

返回

例外

当操作返回无效状态代码时引发

无法反序列化响应时引发

当所需参数为 null 时引发

适用于