Compartir a través de


HDInsightClusterResource.PromoteScriptExecutionHistoryAsync Método

Definición

Promueve la ejecución de script ad hoc especificada a un script persistente.

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/scriptExecutionHistory/{scriptExecutionId}/promote
  • IdScriptExecutionHistory_Promote de operaciones
public virtual System.Threading.Tasks.Task<Azure.Response> PromoteScriptExecutionHistoryAsync (string scriptExecutionId, System.Threading.CancellationToken cancellationToken = default);
abstract member PromoteScriptExecutionHistoryAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.PromoteScriptExecutionHistoryAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function PromoteScriptExecutionHistoryAsync (scriptExecutionId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)

Parámetros

scriptExecutionId
String

Identificador de ejecución del script.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

scriptExecutionId es una cadena vacía y se espera que no esté vacía.

scriptExecutionId es null.

Se aplica a