Skip to main content

script_actions

Creates, updates, deletes, gets or lists a script_actions resource.

Overview

Namescript_actions
TypeResource
Idazure.hdinsight.script_actions

Fields

NameDatatypeDescription
namestringThe name of the script action.
applicationNamestringThe application name of the script action, if any.
debugInformationstringThe script action execution debug information.
endTimestringThe end time of script action execution.
executionSummaryarrayThe summary of script action execution result.
operationstringThe reason why the script action was executed.
parametersstringThe parameters for the script
rolesarrayThe list of roles where script will be executed.
scriptExecutionIdintegerThe execution id of the script action.
startTimestringThe start time of script action execution.
statusstringThe current execution status of the script action.
uristringThe URI to the script.

Methods

NameAccessible byRequired ParamsDescription
list_by_clusterSELECTclusterName, resourceGroupName, subscriptionIdLists all the persisted script actions for the specified cluster.
deleteDELETEclusterName, resourceGroupName, scriptName, subscriptionIdDeletes a specified persisted script action of the cluster.

SELECT examples

Lists all the persisted script actions for the specified cluster.

SELECT
name,
applicationName,
debugInformation,
endTime,
executionSummary,
operation,
parameters,
roles,
scriptExecutionId,
startTime,
status,
uri
FROM azure.hdinsight.script_actions
WHERE clusterName = '{{ clusterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified script_actions resource.

/*+ delete */
DELETE FROM azure.hdinsight.script_actions
WHERE clusterName = '{{ clusterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND scriptName = '{{ scriptName }}'
AND subscriptionId = '{{ subscriptionId }}';