Share via


DatadogMonitorResource.GetDefaultKeyAsync(CancellationToken) Method

Definition

Get the default api key.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/getDefaultKey
  • Operation Id: Monitors_GetDefaultKey
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Datadog.Models.DatadogApiKey>> GetDefaultKeyAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetDefaultKeyAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Datadog.Models.DatadogApiKey>>
override this.GetDefaultKeyAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Datadog.Models.DatadogApiKey>>
Public Overridable Function GetDefaultKeyAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of DatadogApiKey))

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to