Freigeben über


ApplicationInsightsComponentResource.CreateAPIKey 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 Azure.Response<Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentAPIKey> CreateAPIKey (Azure.ResourceManager.ApplicationInsights.Models.APIKeyContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateAPIKey : Azure.ResourceManager.ApplicationInsights.Models.APIKeyContent * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentAPIKey>
override this.CreateAPIKey : Azure.ResourceManager.ApplicationInsights.Models.APIKeyContent * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentAPIKey>
Public Overridable Function CreateAPIKey (content As APIKeyContent, Optional cancellationToken As CancellationToken = Nothing) As 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: