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

CostManagementExtensions.GetDimensionsAsync 方法

定义

按定义的范围列出维度。

  • 请求路径/{scope}/providers/Microsoft.CostManagement/dimensions
  • 操作IdDimensions_List
public static Azure.AsyncPageable<Azure.ResourceManager.CostManagement.Models.CostManagementDimension> GetDimensionsAsync (this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, string filter = default, string expand = default, string skiptoken = default, int? top = default, System.Threading.CancellationToken cancellationToken = default);
static member GetDimensionsAsync : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier * string * string * string * Nullable<int> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.CostManagement.Models.CostManagementDimension>
<Extension()>
Public Function GetDimensionsAsync (client As ArmClient, scope As ResourceIdentifier, Optional filter As String = Nothing, Optional expand As String = Nothing, Optional skiptoken As String = Nothing, Optional top As Nullable(Of Integer) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of CostManagementDimension)

参数

client
ArmClient

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

scope
ResourceIdentifier

资源将应用于的范围。

filter
String

可用于按 properties/category、properties/usageStart、properties/usageEnd 筛选维度。 支持的运算符有“eq”、“lt”、“gt”、“le”、“ge”。

expand
String

可用于扩展维度类别中的属性/数据。 默认情况下,列出维度时不包括数据。

skiptoken
String

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

top
Nullable<Int32>

可用于将结果数限制为最新的 N 个维度数据。

cancellationToken
CancellationToken

要使用的取消标记。

返回

适用于