Partilhar via


DatadogMonitorResource.SetDefaultKeyAsync Método

Definição

Defina a chave de api padrão.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitores/{monitorName}/setDefaultKey
  • Operação IdMonitors_SetDefaultKey
public virtual System.Threading.Tasks.Task<Azure.Response> SetDefaultKeyAsync (Azure.ResourceManager.Datadog.Models.DatadogApiKey body = default, System.Threading.CancellationToken cancellationToken = default);
abstract member SetDefaultKeyAsync : Azure.ResourceManager.Datadog.Models.DatadogApiKey * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.SetDefaultKeyAsync : Azure.ResourceManager.Datadog.Models.DatadogApiKey * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function SetDefaultKeyAsync (Optional body As DatadogApiKey = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)

Parâmetros

body
DatadogApiKey

O DatadogApiKey a ser usado.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Aplica-se a