Share via


IClustersOperations.ExecuteScriptActionsAsync Method

Definition

Executes script actions on the specified HDInsight cluster.

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse> ExecuteScriptActionsAsync (string resourceGroupName, string clusterName, System.Collections.Generic.IList<Microsoft.Azure.Management.HDInsight.Models.RuntimeScriptAction> scriptActions, bool persistOnSuccess, System.Threading.CancellationToken cancellationToken = default);
abstract member ExecuteScriptActionsAsync : 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 ExecuteScriptActionsAsync (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
String

The name of the resource group.

clusterName
String

The name of the cluster.

scriptActions
IList<RuntimeScriptAction>

The script actions to execute.

persistOnSuccess
Boolean

Whether or not to persist the script action on success.

cancellationToken
CancellationToken

The cancellation token.

Returns

Exceptions

Thrown when the operation returned an invalid status code

Thrown when a required parameter is null

Applies to