Freigeben über


APIKeysOperationsExtensions.CreateAsync Methode

Definition

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

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.ApplicationInsights.Management.Models.ApplicationInsightsComponentAPIKey> CreateAsync (this Microsoft.Azure.Management.ApplicationInsights.Management.IAPIKeysOperations operations, string resourceGroupName, string resourceName, Microsoft.Azure.Management.ApplicationInsights.Management.Models.APIKeyRequest aPIKeyProperties, System.Threading.CancellationToken cancellationToken = default);
static member CreateAsync : Microsoft.Azure.Management.ApplicationInsights.Management.IAPIKeysOperations * string * string * Microsoft.Azure.Management.ApplicationInsights.Management.Models.APIKeyRequest * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.ApplicationInsights.Management.Models.ApplicationInsightsComponentAPIKey>
<Extension()>
Public Function CreateAsync (operations As IAPIKeysOperations, resourceGroupName As String, resourceName As String, aPIKeyProperties As APIKeyRequest, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ApplicationInsightsComponentAPIKey)

Parameter

operations
IAPIKeysOperations

Die Vorgangsgruppe für diese Erweiterungsmethode.

resourceGroupName
String

Der Name der Ressourcengruppe. Für den Namen wird die Groß-/Kleinschreibung nicht beachtet.

resourceName
String

Der Name der Application Insights-Komponentenressource.

aPIKeyProperties
APIKeyRequest

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

cancellationToken
CancellationToken

Das Abbruchtoken.

Gibt zurück

Gilt für: