Compartir a través de


EventHubResource.GetEventHubAuthorizationRule Método

Definición

Obtiene un AuthorizationRule para un centro de eventos por nombre de regla.

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

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