Share via


EmailServiceResourceCollection.CreateOrUpdate Method

Definition

Create a new EmailService or update an existing EmailService.

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

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.

emailServiceName
String

The name of the EmailService resource.

data
EmailServiceResourceData

Parameters for the create or update operation.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

emailServiceName or data is null.

Applies to