Condividi tramite


DomainTopicCollection.CreateOrUpdate 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 Azure.ResourceManager.ArmOperation<Azure.ResourceManager.EventGrid.DomainTopicResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string domainTopicName, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.EventGrid.DomainTopicResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.EventGrid.DomainTopicResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, domainTopicName As String, Optional cancellationToken As CancellationToken = Nothing) As 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