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

ConsumptionExtensions.GetConsumptionMarketPlacesAsync 方法

定义

列出定义的范围内的市场。 市场仅可在 2014 年 5 月 1 日或更高版本通过此 API 使用。

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

参数

client
ArmClient

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

scope
ResourceIdentifier

资源将应用于的范围。

filter
String

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

top
Nullable<Int32>

可用于将结果数限制为最新的 N 个市场。

skipToken
String

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

cancellationToken
CancellationToken

要使用的取消标记。

返回

适用于