Partilhar via


LoadBalancingRuleCollection.GetAsync(String, CancellationToken) 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>> GetAsync (string loadBalancingRuleName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.LoadBalancingRuleResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.LoadBalancingRuleResource>>
Public Overridable Function GetAsync (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