Partilhar via


MapsAccountResource.RegenerateKeysAsync Método

Definição

Regenerar a chave primária ou secundária para uso com as APIs de Mapas. A chave antiga deixará de funcionar imediatamente.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}/regenerateKey
  • Operação IdAccounts_RegenerateKeys
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Maps.Models.MapsAccountKeys>> RegenerateKeysAsync (Azure.ResourceManager.Maps.Models.MapsKeySpecification keySpecification, System.Threading.CancellationToken cancellationToken = default);
abstract member RegenerateKeysAsync : Azure.ResourceManager.Maps.Models.MapsKeySpecification * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Maps.Models.MapsAccountKeys>>
override this.RegenerateKeysAsync : Azure.ResourceManager.Maps.Models.MapsKeySpecification * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Maps.Models.MapsAccountKeys>>
Public Overridable Function RegenerateKeysAsync (keySpecification As MapsKeySpecification, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of MapsAccountKeys))

Parâmetros

keySpecification
MapsKeySpecification

Qual chave regenerar: primária ou secundária.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

keySpecification é nulo.

Aplica-se a