Share via


VoiceServicesCommunicationsGatewayCollection.CreateOrUpdate Method

Definition

Create a CommunicationsGateway

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}
  • Operation Id: CommunicationsGateways_CreateOrUpdate
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.VoiceServices.VoiceServicesCommunicationsGatewayResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string communicationsGatewayName, Azure.ResourceManager.VoiceServices.VoiceServicesCommunicationsGatewayData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.VoiceServices.VoiceServicesCommunicationsGatewayData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.VoiceServices.VoiceServicesCommunicationsGatewayResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.VoiceServices.VoiceServicesCommunicationsGatewayData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.VoiceServices.VoiceServicesCommunicationsGatewayResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, communicationsGatewayName As String, data As VoiceServicesCommunicationsGatewayData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of VoiceServicesCommunicationsGatewayResource)

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.

communicationsGatewayName
String

Unique identifier for this deployment.

data
VoiceServicesCommunicationsGatewayData

Resource create parameters.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

communicationsGatewayName or data is null.

Applies to