MarketplaceAgreementTermCollection.CreateOrUpdateAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.MarketplaceOrdering.MarketplaceAgreementTermResource>> CreateOrUpdateAsync (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 CreateOrUpdateAsync : Azure.WaitUntil * Azure.ResourceManager.MarketplaceOrdering.Models.AgreementOfferType * string * string * string * Azure.ResourceManager.MarketplaceOrdering.MarketplaceAgreementTermData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.MarketplaceOrdering.MarketplaceAgreementTermResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * Azure.ResourceManager.MarketplaceOrdering.Models.AgreementOfferType * string * string * string * Azure.ResourceManager.MarketplaceOrdering.MarketplaceAgreementTermData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.MarketplaceOrdering.MarketplaceAgreementTermResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, offerType As AgreementOfferType, publisherId As String, offerId As String, planId As String, data As MarketplaceAgreementTermData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of 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.
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
Azure SDK for .NET