MockableConsumptionArmClient.GetConsumptionMarketPlaces 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.
Lists the marketplaces for a scope at the defined scope. Marketplaces are available via this API only for May 1, 2014 or later.
- Request Path: /{scope}/providers/Microsoft.Consumption/marketplaces
- Operation Id: Marketplaces_List
public virtual Azure.Pageable<Azure.ResourceManager.Consumption.Models.ConsumptionMarketplace> GetConsumptionMarketPlaces (Azure.Core.ResourceIdentifier scope, string filter = default, int? top = default, string skipToken = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetConsumptionMarketPlaces : Azure.Core.ResourceIdentifier * string * Nullable<int> * string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Consumption.Models.ConsumptionMarketplace>
override this.GetConsumptionMarketPlaces : Azure.Core.ResourceIdentifier * string * Nullable<int> * string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Consumption.Models.ConsumptionMarketplace>
Public Overridable Function GetConsumptionMarketPlaces (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 Pageable(Of ConsumptionMarketplace)
Parameters
- scope
- ResourceIdentifier
The scope that the resource will apply against.
- filter
- String
May be used to filter marketplaces by properties/usageEnd (Utc time), properties/usageStart (Utc time), properties/resourceGroup, properties/instanceName or properties/instanceId. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'.
- skipToken
- String
Skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of ConsumptionMarketplace that may take multiple service requests to iterate over.
Exceptions
scope
is null.
Applies to
Azure SDK for .NET