Partager via


EventHubsDisasterRecoveryResource.GetEventHubsDisasterRecoveryAuthorizationRuleAsync Méthode

Définition

Obtient une valeur AuthorizationRule pour un espace de noms par nom de règle.

  • Chemin/abonnements de la demande/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/authorizationRules/{authorizationRuleName}
  • IdDisasterRecoveryConfigs_GetAuthorizationRule d’opération
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.EventHubs.EventHubsDisasterRecoveryAuthorizationRuleResource>> GetEventHubsDisasterRecoveryAuthorizationRuleAsync (string authorizationRuleName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetEventHubsDisasterRecoveryAuthorizationRuleAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.EventHubs.EventHubsDisasterRecoveryAuthorizationRuleResource>>
override this.GetEventHubsDisasterRecoveryAuthorizationRuleAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.EventHubs.EventHubsDisasterRecoveryAuthorizationRuleResource>>
Public Overridable Function GetEventHubsDisasterRecoveryAuthorizationRuleAsync (authorizationRuleName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of EventHubsDisasterRecoveryAuthorizationRuleResource))

Paramètres

authorizationRuleName
String

Nom de la règle d’autorisation.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

authorizationRuleName est une chaîne vide, et on s’attendait à ce qu’elle ne soit pas vide.

authorizationRuleName a la valeur null.

S’applique à