Partilhar via


LoadBalancerResource.GetOutboundRuleAsync(String, CancellationToken) Método

Definição

Obtém a regra de saída do balanceador de carga especificada.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/outboundRules/{outboundRuleName}
  • Operação IdLoadBalancerOutboundRules_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.OutboundRuleResource>> GetOutboundRuleAsync (string outboundRuleName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetOutboundRuleAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.OutboundRuleResource>>
override this.GetOutboundRuleAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.OutboundRuleResource>>
Public Overridable Function GetOutboundRuleAsync (outboundRuleName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of OutboundRuleResource))

Parâmetros

outboundRuleName
String

O nome da regra de saída.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

outboundRuleName é uma cadeia de caracteres vazia e esperava-se que não estivesse vazia.

outboundRuleName é nulo.

Aplica-se a