Udostępnij za pośrednictwem


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
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