Compartir a través de


MapsAccountResource.RegenerateKeysAsync Método

Definición

Vuelva a generar la clave principal o secundaria para su uso con las API de Maps. La clave antigua dejará de funcionar inmediatamente.

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}/regenerateKey
  • IdAccounts_RegenerateKeys de operación
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

Qué clave se va a regenerar: principal o secundaria.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

keySpecification es null.

Se aplica a