Share via


MarketplaceAgreementTermCollection.CreateOrUpdate Method

Definition

Save marketplace terms.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.MarketplaceOrdering/offerTypes/{offerType}/publishers/{publisherId}/offers/{offerId}/plans/{planId}/agreements/current
  • Operation Id: MarketplaceAgreements_Create
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.MarketplaceOrdering.MarketplaceAgreementTermResource> CreateOrUpdate (Azure.WaitUntil waitUntil, Azure.ResourceManager.MarketplaceOrdering.Models.AgreementOfferType offerType, string publisherId, string offerId, string planId, Azure.ResourceManager.MarketplaceOrdering.MarketplaceAgreementTermData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * Azure.ResourceManager.MarketplaceOrdering.Models.AgreementOfferType * string * string * string * Azure.ResourceManager.MarketplaceOrdering.MarketplaceAgreementTermData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.MarketplaceOrdering.MarketplaceAgreementTermResource>
override this.CreateOrUpdate : Azure.WaitUntil * Azure.ResourceManager.MarketplaceOrdering.Models.AgreementOfferType * string * string * string * Azure.ResourceManager.MarketplaceOrdering.MarketplaceAgreementTermData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.MarketplaceOrdering.MarketplaceAgreementTermResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, offerType As AgreementOfferType, publisherId As String, offerId As String, planId As String, data As MarketplaceAgreementTermData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of MarketplaceAgreementTermResource)

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

offerType
AgreementOfferType

Offer Type, currently only virtualmachine type is supported.

publisherId
String

Publisher identifier string of image being deployed.

offerId
String

Offer identifier string of image being deployed.

planId
String

Plan identifier string of image being deployed.

data
MarketplaceAgreementTermData

Parameters supplied to the Create Marketplace Terms operation.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

publisherId, offerId or planId is an empty string, and was expected to be non-empty.

publisherId, offerId, planId or data is null.

Applies to