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

Definition

Gets an VirtualNetworkRule for a Namespace by rule name.

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

Parameters

resourceGroupName
String

Name of the resource group within the azure subscription.

namespaceName
String

The Namespace name.

virtualNetworkRuleName
String

The Virtual Network Rule name.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Task<Response<VirtualNetworkRule>>

Applies to