Share via


CommunicationDomainResourceCollection.CreateOrUpdate 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 Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Communication.CommunicationDomainResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string domainName, Azure.ResourceManager.Communication.CommunicationDomainResourceData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Communication.CommunicationDomainResourceData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Communication.CommunicationDomainResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Communication.CommunicationDomainResourceData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Communication.CommunicationDomainResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, domainName As String, data As CommunicationDomainResourceData, Optional cancellationToken As CancellationToken = Nothing) As 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