Share via


ConfluentExtensions.CreateMarketplaceAgreementAsync Method

Definition

Create Confluent Marketplace agreement in the subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Confluent/agreements/default
  • Operation Id: MarketplaceAgreements_Create
  • Default Api Version: 2024-02-13
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Confluent.Models.ConfluentAgreement>> CreateMarketplaceAgreementAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.Confluent.Models.ConfluentAgreement body = default, System.Threading.CancellationToken cancellationToken = default);
static member CreateMarketplaceAgreementAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.ResourceManager.Confluent.Models.ConfluentAgreement * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Confluent.Models.ConfluentAgreement>>
<Extension()>
Public Function CreateMarketplaceAgreementAsync (subscriptionResource As SubscriptionResource, Optional body As ConfluentAgreement = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ConfluentAgreement))

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

body
ConfluentAgreement

Confluent Marketplace Agreement resource.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

subscriptionResource is null.

Applies to