Partilhar via


NetworkPrivateEndpointConnectionCollection.GetIfExistsAsync Método

Definição

Tenta obter detalhes para esse recurso do serviço.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateLinkServices/{serviceName}/privateEndpointConnections/{peConnectionName}
  • Operação IdPrivateLinkServices_GetPrivateEndpointConnection
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Network.NetworkPrivateEndpointConnectionResource>> GetIfExistsAsync (string peConnectionName, string expand = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Network.NetworkPrivateEndpointConnectionResource>>
override this.GetIfExistsAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Network.NetworkPrivateEndpointConnectionResource>>
Public Overridable Function GetIfExistsAsync (peConnectionName As String, Optional expand As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of NetworkPrivateEndpointConnectionResource))

Parâmetros

peConnectionName
String

O nome da conexão de ponto de extremidade privado.

expand
String

Expande os recursos referenciados.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

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

peConnectionName é nulo.

Aplica-se a