Freigeben über


ApplicationInsightsComponentResource.CreateAPIKeyAsync Methode

Definition

Erstellen Sie einen API-Schlüssel einer Application Insights-Komponente.

  • Anforderungspfad/Abonnements/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/ApiKeys
  • Vorgangs-IdAPIKeys_Create
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentAPIKey>> CreateAPIKeyAsync (Azure.ResourceManager.ApplicationInsights.Models.APIKeyContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateAPIKeyAsync : Azure.ResourceManager.ApplicationInsights.Models.APIKeyContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentAPIKey>>
override this.CreateAPIKeyAsync : Azure.ResourceManager.ApplicationInsights.Models.APIKeyContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentAPIKey>>
Public Overridable Function CreateAPIKeyAsync (content As APIKeyContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ApplicationInsightsComponentAPIKey))

Parameter

content
APIKeyContent

Eigenschaften, die angegeben werden müssen, um einen API-Schlüssel einer Application Insights-Komponente zu erstellen.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

content ist NULL.

Gilt für: