Compartir a través de


BastionHostCollection.GetIfExists(String, CancellationToken) Método

Definición

Intenta obtener detalles de este recurso del servicio.

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}
  • IdBastionHosts_Get de operaciones
public virtual Azure.NullableResponse<Azure.ResourceManager.Network.BastionHostResource> GetIfExists (string bastionHostName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Network.BastionHostResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Network.BastionHostResource>
Public Overridable Function GetIfExists (bastionHostName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of BastionHostResource)

Parámetros

bastionHostName
String

Nombre del host de Bastion.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

bastionHostName es una cadena vacía y se esperaba que no estuviera vacía.

bastionHostName es null.

Se aplica a