Freigeben über


KustoDatabasePrincipalAssignmentCollection.CreateOrUpdateAsync Methode

Definition

Erstellt eine Kusto-Clusterdatenbank principalAssignment.

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/principalAssignments/{principalAssignmentName}
  • Vorgang IdDatabasePrincipalAssignments_CreateOrUpdate
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Kusto.KustoDatabasePrincipalAssignmentResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string principalAssignmentName, Azure.ResourceManager.Kusto.KustoDatabasePrincipalAssignmentData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Kusto.KustoDatabasePrincipalAssignmentData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Kusto.KustoDatabasePrincipalAssignmentResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Kusto.KustoDatabasePrincipalAssignmentData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Kusto.KustoDatabasePrincipalAssignmentResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, principalAssignmentName As String, data As KustoDatabasePrincipalAssignmentData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of KustoDatabasePrincipalAssignmentResource))

Parameter

waitUntil
WaitUntil

Completed , wenn die Methode auf die Rückgabe warten soll, bis der lange ausgeführte Vorgang für den Dienst abgeschlossen ist; Started , wenn es nach dem Starten des Vorgangs zurückgegeben werden soll. Weitere Informationen zu Vorgängen mit langer Ausführung finden Sie unter Beispiele für Azure.Core-Long-Running-Vorgänge.

principalAssignmentName
String

Der Name des Kusto principalAssignment.

data
KustoDatabasePrincipalAssignmentData

Die kusto principalAssignments-Parameter, die für den Vorgang bereitgestellt werden.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

principalAssignmentName ist eine leere Zeichenfolge und wurde erwartet, dass sie nicht leer ist.

principalAssignmentName oder data ist NULL.

Gilt für: