Freigeben über


KustoDataConnectionCollection.CreateOrUpdate Methode

Definition

Erstellt oder aktualisiert eine Datenverbindung.

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/dataConnections/{dataConnectionName}
  • Vorgang IdDataConnections_CreateOrUpdate
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Kusto.KustoDataConnectionResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string dataConnectionName, Azure.ResourceManager.Kusto.KustoDataConnectionData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Kusto.KustoDataConnectionData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Kusto.KustoDataConnectionResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Kusto.KustoDataConnectionData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Kusto.KustoDataConnectionResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, dataConnectionName As String, data As KustoDataConnectionData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of KustoDataConnectionResource)

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.

dataConnectionName
String

Der Name der Datenverbindung.

data
KustoDataConnectionData

Die Datenverbindungsparameter, die für den CreateOrUpdate-Vorgang bereitgestellt werden.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

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

dataConnectionName oder data ist NULL.

Gilt für: