Compartir a través de


EventHubsNamespaceResource.GetEventHubsNamespaceAuthorizationRuleAsync Método

Definición

Obtiene un authorizationRule para un espacio de nombres por nombre de regla.

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}
  • IdNamespaces_GetAuthorizationRule de operaciones
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.EventHubs.EventHubsNamespaceAuthorizationRuleResource>> GetEventHubsNamespaceAuthorizationRuleAsync (string authorizationRuleName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetEventHubsNamespaceAuthorizationRuleAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.EventHubs.EventHubsNamespaceAuthorizationRuleResource>>
override this.GetEventHubsNamespaceAuthorizationRuleAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.EventHubs.EventHubsNamespaceAuthorizationRuleResource>>
Public Overridable Function GetEventHubsNamespaceAuthorizationRuleAsync (authorizationRuleName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of EventHubsNamespaceAuthorizationRuleResource))

Parámetros

authorizationRuleName
String

Nombre de la regla de autorización.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

authorizationRuleName es una cadena vacía y se esperaba que no estuviera vacía.

authorizationRuleName es null.

Se aplica a