EventHubsOperations.GetAuthorizationRuleAsync(String, String, String, String, CancellationToken) Method

Definition

Gets an AuthorizationRule for an Event Hub by rule name.

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

Parameters

resourceGroupName
System.String

Name of the resource group within the azure subscription.

namespaceName
System.String

The Namespace name.

eventHubName
System.String

The Event Hub name.

authorizationRuleName
System.String

The authorization rule name.

cancellationToken
System.Threading.CancellationToken

The cancellation token to use.

Returns

System.Threading.Tasks.Task<Response<AuthorizationRule>>

Applies to