共用方式為


SipRoutingClient.GetTrunk(String, CancellationToken) Method

Definition

Get SipTrunk with provided FQDN.

public virtual Azure.Response<Azure.Communication.PhoneNumbers.SipRouting.SipTrunk> GetTrunk (string fqdn, System.Threading.CancellationToken cancellationToken = default);
abstract member GetTrunk : string * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.PhoneNumbers.SipRouting.SipTrunk>
override this.GetTrunk : string * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.PhoneNumbers.SipRouting.SipTrunk>
Public Overridable Function GetTrunk (fqdn As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of SipTrunk)

Parameters

fqdn
String

SIP trunk FQDN.

cancellationToken
CancellationToken

Optional cancellation token.

Returns

Trunk configuration.

Exceptions

Route with specified name wasn't found.

Applies to