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

The following fields are returned by SELECT queries:

OK response definition.

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.
scriptExecutionIdinteger (int64)The 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

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_by_clusterselectsubscriptionId, resourceGroupName, clusterNameLists all the persisted script actions for the specified cluster.
deletedeletesubscriptionId, resourceGroupName, clusterName, scriptNameDeletes a specified persisted script action of the cluster.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
clusterNamestringThe name of the cluster.
resourceGroupNamestringThe name of the resource group.
scriptNamestringThe name of the script.
subscriptionIdstringThe subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

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 subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND clusterName = '{{ clusterName }}' -- required
;

DELETE examples

Deletes a specified persisted script action of the cluster.

DELETE FROM azure.hdinsight.script_actions
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND clusterName = '{{ clusterName }}' --required
AND scriptName = '{{ scriptName }}' --required
;