Partilhar via


KustoScriptCollection.CreateOrUpdateAsync Método

Definição

Cria um script de banco de dados Kusto.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/scripts/{scriptName}
  • IdScripts_CreateOrUpdate de operação
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Kusto.KustoScriptResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string scriptName, Azure.ResourceManager.Kusto.KustoScriptData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Kusto.KustoScriptData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Kusto.KustoScriptResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Kusto.KustoScriptData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Kusto.KustoScriptResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, scriptName As String, data As KustoScriptData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of KustoScriptResource))

Parâmetros

waitUntil
WaitUntil

Completed se o método deve aguardar para retornar até que a operação de execução prolongada seja concluída no serviço; Started se ele deve retornar depois de iniciar a operação. Para obter mais informações sobre operações de longa execução, consulte Exemplos de operação de Long-Running do Azure.Core.

scriptName
String

O nome do script de banco de dados Kusto.

data
KustoScriptData

Os parâmetros do Script Kusto contêm o KQL a ser executado.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

scriptName é uma cadeia de caracteres vazia e era esperado que não estivesse vazio.

scriptName ou data é nulo.

Aplica-se a