script_actions
Creates, updates, deletes, gets or lists a script_actions
resource.
Overview
Name | script_actions |
Type | Resource |
Id | azure.hdinsight.script_actions |
Fields
Name | Datatype | Description |
---|---|---|
name | string | The name of the script action. |
applicationName | string | The application name of the script action, if any. |
debugInformation | string | The script action execution debug information. |
endTime | string | The end time of script action execution. |
executionSummary | array | The summary of script action execution result. |
operation | string | The reason why the script action was executed. |
parameters | string | The parameters for the script |
roles | array | The list of roles where script will be executed. |
scriptExecutionId | integer | The execution id of the script action. |
startTime | string | The start time of script action execution. |
status | string | The current execution status of the script action. |
uri | string | The URI to the script. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
list_by_cluster | SELECT | clusterName, resourceGroupName, subscriptionId | Lists all the persisted script actions for the specified cluster. |
delete | DELETE | clusterName, resourceGroupName, scriptName, subscriptionId | Deletes 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 }}';