Partilhar via


EventHubAuthorizationRuleResource.RegenerateKeysAsync Método

Definição

Regenera as cadeias de conexão ACS e SAS para o Hub de Eventos.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}/regenerateKeys
  • Operação IdEventHubs_RegenerateKeys
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 fornecidos para regenerar as chaves AuthorizationRule (PrimaryKey/SecondaryKey).

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

content é nulo.

Aplica-se a