Partilhar via


PartnerNamespaceResource.RegenerateKeyAsync Método

Definição

Regenerar uma chave de acesso compartilhado para um namespace de parceiro.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerNamespaces/{partnerNamespaceName}/regenerateKey
  • IdPartnerNamespaces_RegenerateKey de operação
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.EventGrid.Models.PartnerNamespaceSharedAccessKeys>> RegenerateKeyAsync (Azure.ResourceManager.EventGrid.Models.PartnerNamespaceRegenerateKeyContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member RegenerateKeyAsync : Azure.ResourceManager.EventGrid.Models.PartnerNamespaceRegenerateKeyContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.EventGrid.Models.PartnerNamespaceSharedAccessKeys>>
override this.RegenerateKeyAsync : Azure.ResourceManager.EventGrid.Models.PartnerNamespaceRegenerateKeyContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.EventGrid.Models.PartnerNamespaceSharedAccessKeys>>
Public Overridable Function RegenerateKeyAsync (content As PartnerNamespaceRegenerateKeyContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of PartnerNamespaceSharedAccessKeys))

Parâmetros

content
PartnerNamespaceRegenerateKeyContent

Solicitar que o corpo regenere a chave.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

content é nulo.

Aplica-se a