Freigeben über


ApiManagementNotificationResource.CreateOrUpdateNotificationRecipientUser Methode

Definition

Fügt den API Management-Benutzer der Liste der Empfänger der Benachrichtigung hinzu

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientUsers/{userId}
  • Vorgang IdNotificationRecipientUser_CreateOrUpdate
public virtual Azure.Response<Azure.ResourceManager.ApiManagement.Models.RecipientUserContract> CreateOrUpdateNotificationRecipientUser (string userId, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateNotificationRecipientUser : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.ApiManagement.Models.RecipientUserContract>
override this.CreateOrUpdateNotificationRecipientUser : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.ApiManagement.Models.RecipientUserContract>
Public Overridable Function CreateOrUpdateNotificationRecipientUser (userId As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of RecipientUserContract)

Parameter

userId
String

Benutzer-ID. Muss im aktuellen API Management Dienst instance eindeutig sein.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

userId ist eine leere Zeichenfolge und wurde erwartet, dass sie nicht leer ist.

userId ist NULL.

Gilt für: