Sdílet prostřednictvím


DomainTopicEventSubscriptionsOperationsExtensions.CreateOrUpdateAsync Method

Definition

Create or update a nested event subscription to a domain topic.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.EventGrid.Models.EventSubscription> CreateOrUpdateAsync (this Microsoft.Azure.Management.EventGrid.IDomainTopicEventSubscriptionsOperations operations, string resourceGroupName, string domainName, string topicName, string eventSubscriptionName, Microsoft.Azure.Management.EventGrid.Models.EventSubscription eventSubscriptionInfo, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.EventGrid.IDomainTopicEventSubscriptionsOperations * string * string * string * string * Microsoft.Azure.Management.EventGrid.Models.EventSubscription * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.EventGrid.Models.EventSubscription>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IDomainTopicEventSubscriptionsOperations, resourceGroupName As String, domainName As String, topicName As String, eventSubscriptionName As String, eventSubscriptionInfo As EventSubscription, Optional cancellationToken As CancellationToken = Nothing) As Task(Of EventSubscription)

Parameters

operations
IDomainTopicEventSubscriptionsOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group within the user's subscription.

domainName
String

Name of the top level domain.

topicName
String

Name of the domain topic.

eventSubscriptionName
String

Name of the event subscription to be created. Event subscription names must be between 3 and 100 characters in length and use alphanumeric letters only.

eventSubscriptionInfo
EventSubscription

Event subscription properties containing the destination and filter information.

cancellationToken
CancellationToken

The cancellation token.

Returns

Remarks

Asynchronously creates a new event subscription or updates an existing event subscription.

Applies to