Partilhar via


EventHubAuthorizationRuleResource.RegenerateKeys 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
  • IdEventHubs_RegenerateKeys de operação
public virtual Azure.Response<Azure.ResourceManager.EventHubs.Models.EventHubsAccessKeys> RegenerateKeys (Azure.ResourceManager.EventHubs.Models.EventHubsRegenerateAccessKeyContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member RegenerateKeys : Azure.ResourceManager.EventHubs.Models.EventHubsRegenerateAccessKeyContent * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.EventHubs.Models.EventHubsAccessKeys>
override this.RegenerateKeys : Azure.ResourceManager.EventHubs.Models.EventHubsRegenerateAccessKeyContent * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.EventHubs.Models.EventHubsAccessKeys>
Public Overridable Function RegenerateKeys (content As EventHubsRegenerateAccessKeyContent, Optional cancellationToken As CancellationToken = Nothing) As 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