Partilhar via


NetworkPrivateEndpointConnectionCollection.GetIfExists 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 Azure.NullableResponse<Azure.ResourceManager.Network.NetworkPrivateEndpointConnectionResource> GetIfExists (string peConnectionName, string expand = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Network.NetworkPrivateEndpointConnectionResource>
override this.GetIfExists : string * string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Network.NetworkPrivateEndpointConnectionResource>
Public Overridable Function GetIfExists (peConnectionName As String, Optional expand As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As 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