CommunicationDomainResourceCollection.CreateOrUpdateAsync Method

Definition

Add a new Domains resource under the parent EmailService resource or update an existing Domains resource.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/emailServices/{emailServiceName}/domains/{domainName}
  • Operation Id: Domains_CreateOrUpdate
  • Default Api Version: 2023-04-01
  • Resource: CommunicationDomainResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Communication.CommunicationDomainResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string domainName, Azure.ResourceManager.Communication.CommunicationDomainResourceData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Communication.CommunicationDomainResourceData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Communication.CommunicationDomainResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Communication.CommunicationDomainResourceData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Communication.CommunicationDomainResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, domainName As String, data As CommunicationDomainResourceData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of CommunicationDomainResource))

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.

domainName
String

The name of the Domains resource.

data
CommunicationDomainResourceData

Parameters for the create or update operation.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

domainName or data is null.

Applies to