ReservationsExtensions.GetCatalogAsync Method

Definition

Overloads

GetCatalogAsync(SubscriptionResource, SubscriptionResourceGetCatalogOptions, CancellationToken)

Get the regions and skus that are available for RI purchase for the specified Azure subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Capacity/catalogs
  • Operation Id: GetCatalog
GetCatalogAsync(SubscriptionResource, String, Nullable<AzureLocation>, String, String, String, CancellationToken)

Get the regions and skus that are available for RI purchase for the specified Azure subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Capacity/catalogs
  • Operation Id: GetCatalog

GetCatalogAsync(SubscriptionResource, SubscriptionResourceGetCatalogOptions, CancellationToken)

Source:
ReservationsExtensions.cs
Source:
ReservationsExtensions.cs

Get the regions and skus that are available for RI purchase for the specified Azure subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Capacity/catalogs
  • Operation Id: GetCatalog
public static Azure.AsyncPageable<Azure.ResourceManager.Reservations.Models.ReservationCatalog> GetCatalogAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.Reservations.Models.SubscriptionResourceGetCatalogOptions options, System.Threading.CancellationToken cancellationToken = default);
static member GetCatalogAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.ResourceManager.Reservations.Models.SubscriptionResourceGetCatalogOptions * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Reservations.Models.ReservationCatalog>
<Extension()>
Public Function GetCatalogAsync (subscriptionResource As SubscriptionResource, options As SubscriptionResourceGetCatalogOptions, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of ReservationCatalog)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

options
SubscriptionResourceGetCatalogOptions

A property bag which contains all the parameters of this method except the LRO qualifier and request context parameter.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

AsyncPageable<Azure.ResourceManager.Reservations.Models.ReservationCatalog>

An async collection of Azure.ResourceManager.Reservations.Models.ReservationCatalog that may take multiple service requests to iterate over.

Exceptions

subscriptionResource is null.

Applies to

GetCatalogAsync(SubscriptionResource, String, Nullable<AzureLocation>, String, String, String, CancellationToken)

Source:
ReservationsExtensions.cs
Source:
ReservationsExtensions.cs

Get the regions and skus that are available for RI purchase for the specified Azure subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Capacity/catalogs
  • Operation Id: GetCatalog
public static Azure.AsyncPageable<Azure.ResourceManager.Reservations.Models.ReservationCatalog> GetCatalogAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string reservedResourceType = default, Azure.Core.AzureLocation? location = default, string publisherId = default, string offerId = default, string planId = default, System.Threading.CancellationToken cancellationToken = default);
static member GetCatalogAsync : Azure.ResourceManager.Resources.SubscriptionResource * string * Nullable<Azure.Core.AzureLocation> * string * string * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Reservations.Models.ReservationCatalog>
<Extension()>
Public Function GetCatalogAsync (subscriptionResource As SubscriptionResource, Optional reservedResourceType As String = Nothing, Optional location As Nullable(Of AzureLocation) = Nothing, Optional publisherId As String = Nothing, Optional offerId As String = Nothing, Optional planId As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of ReservationCatalog)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

reservedResourceType
String

The type of the resource for which the skus should be provided.

location
Nullable<AzureLocation>

Filters the skus based on the location specified in this parameter. This can be an azure region or global.

publisherId
String

Publisher id used to get the third party products.

offerId
String

Offer id used to get the third party products.

planId
String

Plan id used to get the third party products.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

AsyncPageable<Azure.ResourceManager.Reservations.Models.ReservationCatalog>

An async collection of Azure.ResourceManager.Reservations.Models.ReservationCatalog that may take multiple service requests to iterate over.

Applies to