NetworkDeviceInterfaceCollection.GetIfExists Method

Definition

Tries to get details for this resource from the service.

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

Parameters

networkInterfaceName
String

Name of the Network Interface.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

networkInterfaceName is null.

Applies to