Share via


NotificationOperationsExtensions.CreateOrUpdateAsync Method

Definition

Create or Update API Management publisher notification.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.ApiManagement.Models.NotificationContract> CreateOrUpdateAsync (this Microsoft.Azure.Management.ApiManagement.INotificationOperations operations, string resourceGroupName, string serviceName, string notificationName, string ifMatch = default, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.ApiManagement.INotificationOperations * string * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.ApiManagement.Models.NotificationContract>
<Extension()>
Public Function CreateOrUpdateAsync (operations As INotificationOperations, resourceGroupName As String, serviceName As String, notificationName As String, Optional ifMatch As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NotificationContract)

Parameters

operations
INotificationOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group.

serviceName
String

The name of the API Management service.

notificationName
String

Notification Name Identifier. Possible values include: 'RequestPublisherNotificationMessage', 'PurchasePublisherNotificationMessage', 'NewApplicationNotificationMessage', 'BCC', 'NewIssuePublisherNotificationMessage', 'AccountClosedPublisher', 'QuotaLimitApproachingPublisherNotificationMessage'

ifMatch
String

ETag of the Entity. Not required when creating an entity, but required when updating an entity.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to