Share via


VoiceServicesExtensions.GetVoiceServicesCommunicationsGatewayAsync Method

Definition

Get a CommunicationsGateway

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}
  • Operation Id: CommunicationsGateways_Get
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.VoiceServices.VoiceServicesCommunicationsGatewayResource>> GetVoiceServicesCommunicationsGatewayAsync (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string communicationsGatewayName, System.Threading.CancellationToken cancellationToken = default);
static member GetVoiceServicesCommunicationsGatewayAsync : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.VoiceServices.VoiceServicesCommunicationsGatewayResource>>
<Extension()>
Public Function GetVoiceServicesCommunicationsGatewayAsync (resourceGroupResource As ResourceGroupResource, communicationsGatewayName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of VoiceServicesCommunicationsGatewayResource))

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

communicationsGatewayName
String

Unique identifier for this deployment.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

resourceGroupResource or communicationsGatewayName is null.

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

Applies to