Partager via


MarketplaceAgreementTermCollection.Exists Méthode

Définition

Vérifie si la ressource existe dans Azure.

  • Chemin/abonnements de la demande/{subscriptionId}/providers/Microsoft.MarketplaceOrdering/offerTypes/{offerType}/publishers/{publisherId}/offers/{offerId}/plans/{planId}/agreements/current
  • IdMarketplaceAgreements_Get d’opération
public virtual Azure.Response<bool> Exists (Azure.ResourceManager.MarketplaceOrdering.Models.AgreementOfferType offerType, string publisherId, string offerId, string planId, System.Threading.CancellationToken cancellationToken = default);
abstract member Exists : Azure.ResourceManager.MarketplaceOrdering.Models.AgreementOfferType * string * string * string * System.Threading.CancellationToken -> Azure.Response<bool>
override this.Exists : Azure.ResourceManager.MarketplaceOrdering.Models.AgreementOfferType * string * string * string * System.Threading.CancellationToken -> Azure.Response<bool>
Public Overridable Function Exists (offerType As AgreementOfferType, publisherId As String, offerId As String, planId As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of Boolean)

Paramètres

offerType
AgreementOfferType

Type d’offre, actuellement seul le type virtualmachine est pris en charge.

publisherId
String

Chaîne d’identificateur de l’éditeur de l’image en cours de déploiement.

offerId
String

Chaîne d’identificateur d’offre de l’image en cours de déploiement.

planId
String

Chaîne d’identificateur de plan de l’image en cours de déploiement.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

publisherId, offerId ou planId est une chaîne vide, et était censé être non vide.

publisherId, offerId ou planId a la valeur Null.

S’applique à