script_execution_history
Creates, updates, deletes, gets or lists a script_execution_history resource.
Overview
| Name | script_execution_history |
| Type | Resource |
| Id | azure.hdinsight.script_execution_history |
Fields
The following fields are returned by SELECT queries:
- list_by_cluster
| Name | Datatype | Description |
|---|---|---|
name | string | The name of the script action. Required. |
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. Required. |
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. Required. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_by_cluster | select | resource_group_name, cluster_name, subscription_id | Lists all scripts' execution history for the specified cluster. | |
promote | exec | resource_group_name, cluster_name, script_execution_id, subscription_id | Promotes the specified ad-hoc script execution to a persisted script. |
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.
| Name | Datatype | Description |
|---|---|---|
cluster_name | string | The name of the cluster. Required. |
resource_group_name | string | The name of the resource group. The name is case insensitive. Required. |
script_execution_id | string | The script execution Id. Required. |
subscription_id | string |
SELECT examples
- list_by_cluster
Lists all scripts' execution history for the specified cluster.
SELECT
name,
applicationName,
debugInformation,
endTime,
executionSummary,
operation,
parameters,
roles,
scriptExecutionId,
startTime,
status,
uri
FROM azure.hdinsight.script_execution_history
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND cluster_name = '{{ cluster_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
Lifecycle Methods
- promote
Promotes the specified ad-hoc script execution to a persisted script.
EXEC azure.hdinsight.script_execution_history.promote
@resource_group_name='{{ resource_group_name }}' --required,
@cluster_name='{{ cluster_name }}' --required,
@script_execution_id='{{ script_execution_id }}' --required,
@subscription_id='{{ subscription_id }}' --required
;