NamespacesOperations.GetVirtualNetworkRule(String, String, String, CancellationToken) Method

Definition

Gets an VirtualNetworkRule for a Namespace by rule name.

public virtual Azure.Response<Azure.ResourceManager.EventHubs.Models.VirtualNetworkRule> GetVirtualNetworkRule (string resourceGroupName, string namespaceName, string virtualNetworkRuleName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetVirtualNetworkRule : string * string * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.EventHubs.Models.VirtualNetworkRule>
override this.GetVirtualNetworkRule : string * string * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.EventHubs.Models.VirtualNetworkRule>
Public Overridable Function GetVirtualNetworkRule (resourceGroupName As String, namespaceName As String, virtualNetworkRuleName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of VirtualNetworkRule)

Parameters

resourceGroupName
System.String

Name of the resource group within the azure subscription.

namespaceName
System.String

The Namespace name.

virtualNetworkRuleName
System.String

The Virtual Network Rule name.

cancellationToken
System.Threading.CancellationToken

The cancellation token to use.

Returns

Response<VirtualNetworkRule>

Applies to