Compartilhar via


NetworkExtensions.GetIPAllocationAsync Método

Definição

Obtém o IpAllocation especificado por grupo de recursos.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/IpAllocations/{ipAllocationName}
  • Operação IdIpAllocations_Get
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.IPAllocationResource>> GetIPAllocationAsync (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string ipAllocationName, string expand = default, System.Threading.CancellationToken cancellationToken = default);
static member GetIPAllocationAsync : Azure.ResourceManager.Resources.ResourceGroupResource * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.IPAllocationResource>>
<Extension()>
Public Function GetIPAllocationAsync (resourceGroupResource As ResourceGroupResource, ipAllocationName As String, Optional expand As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of IPAllocationResource))

Parâmetros

resourceGroupResource
ResourceGroupResource

A ResourceGroupResource instância em que o método será executado.

ipAllocationName
String

O nome do IpAllocation.

expand
String

Expande os recursos referenciados.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

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

ipAllocationName é nulo.

Aplica-se a