共用方式為


ReservationsExtensions.GetCatalog 方法

定義

多載

GetCatalog(SubscriptionResource, SubscriptionResourceGetCatalogOptions, CancellationToken)

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

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

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

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

GetCatalog(SubscriptionResource, SubscriptionResourceGetCatalogOptions, CancellationToken)

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

  • 要求路徑/訂用帳戶/{subscriptionId}/providers/Microsoft.Capacity/catalogs
  • 作業 IdGetCatalog
public static Azure.Pageable<Azure.ResourceManager.Reservations.Models.ReservationCatalog> GetCatalog (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.Reservations.Models.SubscriptionResourceGetCatalogOptions options, System.Threading.CancellationToken cancellationToken = default);
static member GetCatalog : Azure.ResourceManager.Resources.SubscriptionResource * Azure.ResourceManager.Reservations.Models.SubscriptionResourceGetCatalogOptions * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Reservations.Models.ReservationCatalog>
<Extension()>
Public Function GetCatalog (subscriptionResource As SubscriptionResource, options As SubscriptionResourceGetCatalogOptions, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of ReservationCatalog)

參數

subscriptionResource
SubscriptionResource

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

options
SubscriptionResourceGetCatalogOptions

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

cancellationToken
CancellationToken

要使用的取消權杖。

傳回

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

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

適用於

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

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

  • 要求路徑/訂用帳戶/{subscriptionId}/providers/Microsoft.Capacity/catalogs
  • 作業 IdGetCatalog
public static Azure.Pageable<Azure.ResourceManager.Reservations.Models.ReservationCatalog> GetCatalog (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 GetCatalog : Azure.ResourceManager.Resources.SubscriptionResource * string * Nullable<Azure.Core.AzureLocation> * string * string * string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Reservations.Models.ReservationCatalog>
<Extension()>
Public Function GetCatalog (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 Pageable(Of ReservationCatalog)

參數

subscriptionResource
SubscriptionResource

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

reservedResourceType
String

應該提供 SKU 的資源類型。

location
Nullable<AzureLocation>

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

publisherId
String

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

offerId
String

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

planId
String

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

cancellationToken
CancellationToken

要使用的取消權杖。

傳回

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

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

適用於