Compartir a través de


EventHubAuthorizationRuleResource.RegenerateKeysAsync Método

Definición

Vuelve a generar las cadenas de conexión de ACS y SAS para el centro de eventos.

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}/regenerateKeys
  • IdEventHubs_RegenerateKeys de operaciones
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.EventHubs.Models.EventHubsAccessKeys>> RegenerateKeysAsync (Azure.ResourceManager.EventHubs.Models.EventHubsRegenerateAccessKeyContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member RegenerateKeysAsync : Azure.ResourceManager.EventHubs.Models.EventHubsRegenerateAccessKeyContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.EventHubs.Models.EventHubsAccessKeys>>
override this.RegenerateKeysAsync : Azure.ResourceManager.EventHubs.Models.EventHubsRegenerateAccessKeyContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.EventHubs.Models.EventHubsAccessKeys>>
Public Overridable Function RegenerateKeysAsync (content As EventHubsRegenerateAccessKeyContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of EventHubsAccessKeys))

Parámetros

content
EventHubsRegenerateAccessKeyContent

Parámetros proporcionados para regenerar las claves AuthorizationRule (PrimaryKey/SecondaryKey).

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

content es null.

Se aplica a