NetworkFabricInternetGatewayCollection.GetIfExists Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/internetGateways/{internetGatewayName}
  • Operation Id: InternetGateways_Get
public virtual Azure.NullableResponse<Azure.ResourceManager.ManagedNetworkFabric.NetworkFabricInternetGatewayResource> GetIfExists (string internetGatewayName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.ManagedNetworkFabric.NetworkFabricInternetGatewayResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.ManagedNetworkFabric.NetworkFabricInternetGatewayResource>
Public Overridable Function GetIfExists (internetGatewayName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of NetworkFabricInternetGatewayResource)

Parameters

internetGatewayName
String

Name of the Internet Gateway.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

internetGatewayName is an empty string, and was expected to be non-empty.

internetGatewayName is null.

Applies to