DatadogMonitorResource.GetDefaultKeyAsync(CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.