Compartilhar via


LoadBalancerResource.GetLoadBalancingRuleAsync Método

Definição

Obtém a regra de balanceamento de carga do balanceador de carga especificada.

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

Parâmetros

loadBalancingRuleName
String

O nome da regra de balanceamento de carga.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

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

loadBalancingRuleName é nulo.

Aplica-se a