Partager via


DatadogMonitorResource.SetDefaultKey(DatadogApiKey, CancellationToken) Méthode

Définition

Définissez la clé API par défaut.

  • Chemin de la demande/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/setDefaultKey
  • IdMonitors_SetDefaultKey d’opération
public virtual Azure.Response SetDefaultKey (Azure.ResourceManager.Datadog.Models.DatadogApiKey body = default, System.Threading.CancellationToken cancellationToken = default);
abstract member SetDefaultKey : Azure.ResourceManager.Datadog.Models.DatadogApiKey * System.Threading.CancellationToken -> Azure.Response
override this.SetDefaultKey : Azure.ResourceManager.Datadog.Models.DatadogApiKey * System.Threading.CancellationToken -> Azure.Response
Public Overridable Function SetDefaultKey (Optional body As DatadogApiKey = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response

Paramètres

body
DatadogApiKey

DatadogApiKey à utiliser.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

S’applique à