共用方式為


ReservationsExtensions.GetCatalogAsync 方法

定義

多載

GetCatalogAsync(SubscriptionResource, SubscriptionResourceGetCatalogOptions, CancellationToken)

取得可用於指定 Azure 訂用帳戶之 RI 購買的區域和 SKU。

  • 要求路徑/訂用帳戶/{subscriptionId}/providers/Microsoft.Capacity/catalogs
  • 作業 IdGetCatalog
GetCatalogAsync(SubscriptionResource, String, Nullable<AzureLocation>, String, String, String, CancellationToken)

取得可用於指定 Azure 訂用帳戶之 RI 購買的區域和 SKU。

  • 要求路徑/訂用帳戶/{subscriptionId}/providers/Microsoft.Capacity/catalogs
  • 作業 IdGetCatalog

GetCatalogAsync(SubscriptionResource, SubscriptionResourceGetCatalogOptions, CancellationToken)

取得可用於指定 Azure 訂用帳戶之 RI 購買的區域和 SKU。

  • 要求路徑/訂用帳戶/{subscriptionId}/providers/Microsoft.Capacity/catalogs
  • 作業 IdGetCatalog
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)

參數

subscriptionResource
SubscriptionResource

方法 SubscriptionResource 將對其執行的實例。

options
SubscriptionResourceGetCatalogOptions

屬性包,其中包含此方法的所有參數,但 LRO 限定詞和要求內容參數除外。

cancellationToken
CancellationToken

要使用的取消權杖。

傳回

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

Azure.ResourceManager.Reservations.Models.ReservationCatalog 非同步集合,可能需要多個服務要求來逐一查看。

適用於

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

取得可用於指定 Azure 訂用帳戶之 RI 購買的區域和 SKU。

  • 要求路徑/訂用帳戶/{subscriptionId}/providers/Microsoft.Capacity/catalogs
  • 作業 IdGetCatalog
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)

參數

subscriptionResource
SubscriptionResource

方法 SubscriptionResource 將對其執行的實例。

reservedResourceType
String

應該提供 SKU 的資源類型。

location
Nullable<AzureLocation>

根據此參數中指定的位置篩選 SKU。 這可以是 Azure 區域或全域。

publisherId
String

用來取得協力廠商產品的發行者識別碼。

offerId
String

用來取得協力廠商產品的供應專案識別碼。

planId
String

用來取得協力廠商產品的方案識別碼。

cancellationToken
CancellationToken

要使用的取消權杖。

傳回

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

Azure.ResourceManager.Reservations.Models.ReservationCatalog 非同步集合,可能需要多個服務要求來逐一查看。

適用於