IClustersOperations.BeginExecuteScriptActionsAsync Method

Definition

Begins executing script actions on the specified HDInsight cluster.

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse> BeginExecuteScriptActionsAsync (string resourceGroupName, string clusterName, System.Collections.Generic.IList<Microsoft.Azure.Management.HDInsight.Models.RuntimeScriptAction> scriptActions, bool persistOnSuccess, System.Threading.CancellationToken cancellationToken = default);
abstract member BeginExecuteScriptActionsAsync : string * string * System.Collections.Generic.IList<Microsoft.Azure.Management.HDInsight.Models.RuntimeScriptAction> * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse>
Public Function BeginExecuteScriptActionsAsync (resourceGroupName As String, clusterName As String, scriptActions As IList(Of RuntimeScriptAction), persistOnSuccess As Boolean, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse)

Parameters

resourceGroupName
System.String

The name of the resource group.

clusterName
System.String

The name of the cluster.

scriptActions
System.Collections.Generic.IList<RuntimeScriptAction>

The script actions to execute.

persistOnSuccess
System.Boolean

Whether or not to persist the script action on success.

cancellationToken
System.Threading.CancellationToken

The cancellation token.

Returns

System.Threading.Tasks.Task<AzureOperationResponse>

Exceptions

Thrown when the operation returned an invalid status code

Thrown when a required parameter is null

Applies to