次の方法で共有


MarketplaceAgreementTermCollection.ExistsAsync メソッド

定義

リソースが Azure に存在するかどうかを確認します。

  • Request Path/subscriptions/{subscriptionId}/providers/Microsoft.MarketplaceOrdering/offerTypes/{offerType}/publishers/{publisherId}/offers/{offerId}/plans/{planId}/agreements/current
  • 操作IdMarketplaceAgreements_Get
public virtual System.Threading.Tasks.Task<Azure.Response<bool>> ExistsAsync (Azure.ResourceManager.MarketplaceOrdering.Models.AgreementOfferType offerType, string publisherId, string offerId, string planId, System.Threading.CancellationToken cancellationToken = default);
abstract member ExistsAsync : Azure.ResourceManager.MarketplaceOrdering.Models.AgreementOfferType * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<bool>>
override this.ExistsAsync : Azure.ResourceManager.MarketplaceOrdering.Models.AgreementOfferType * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<bool>>
Public Overridable Function ExistsAsync (offerType As AgreementOfferType, publisherId As String, offerId As String, planId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of Boolean))

パラメーター

offerType
AgreementOfferType

オファーの種類。現在、virtualmachine 型のみがサポートされています。

publisherId
String

デプロイされるイメージの発行元識別子文字列。

offerId
String

デプロイされるイメージのオファー識別子文字列。

planId
String

デプロイされるイメージのプラン識別子文字列。

cancellationToken
CancellationToken

使用する取り消しトークン。

戻り値

例外

publisherIdofferId または planId は空の文字列であり、空でないと想定されていました。

publisherIdofferId、または planId が null です。

適用対象