Compartir a través de


ApplicationInsightsComponentResource.DeleteAPIKeyAsync Método

Definición

Elimine una clave de API de un componente de Application Insights.

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/APIKeys/{keyId}
  • IdAPIKeys_Delete de operación
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentAPIKey>> DeleteAPIKeyAsync (string keyId, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteAPIKeyAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentAPIKey>>
override this.DeleteAPIKeyAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentAPIKey>>
Public Overridable Function DeleteAPIKeyAsync (keyId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ApplicationInsightsComponentAPIKey))

Parámetros

keyId
String

Identificador de clave de API. Esto es único dentro de un componente de Application Insights.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

keyId es una cadena vacía y se esperaba que no estuviera vacía.

keyId es null.

Se aplica a