Share via


DomainTopicCollection.CreateOrUpdateAsync Method

Definition

Asynchronously creates or updates a new domain topic with the specified parameters.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/topics/{domainTopicName}
  • Operation Id: DomainTopics_CreateOrUpdate
  • Default Api Version: 2024-06-01-preview
  • Resource: DomainTopicResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.EventGrid.DomainTopicResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string domainTopicName, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.EventGrid.DomainTopicResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.EventGrid.DomainTopicResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, domainTopicName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of DomainTopicResource))

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.

domainTopicName
String

Name of the domain topic.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

domainTopicName is an empty string, and was expected to be non-empty.

domainTopicName is null.

Applies to