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:

NameDatatypeDescription
errorobjectThe error message associated with the cluster creation.
statusstringThe async operation state. Known values are: "InProgress", "Succeeded", and "Failed". (InProgress, Succeeded, Failed)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_execution_async_operation_statusselectresource_group_name, cluster_name, operation_id, subscription_idGets the async operation status of execution operation.
get_execution_detailselectresource_group_name, cluster_name, script_execution_id, subscription_idGets the script execution detail for the given script execution ID.
list_by_clusterselectresource_group_name, cluster_name, subscription_idLists all the persisted script actions for the specified cluster.
deletedeleteresource_group_name, cluster_name, script_name, subscription_idDeletes 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
cluster_namestringThe name of the cluster. Required.
operation_idstringThe long running operation id. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
script_execution_idstringThe script execution Id. Required.
script_namestringThe name of the script. Required.
subscription_idstring

SELECT examples

Gets the async operation status of execution operation.

SELECT
error,
status
FROM azure.hdinsight.script_actions
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND cluster_name = '{{ cluster_name }}' -- required
AND operation_id = '{{ operation_id }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

DELETE examples

Deletes a specified persisted script action of the cluster.

DELETE FROM azure.hdinsight.script_actions
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND cluster_name = '{{ cluster_name }}' --required
AND script_name = '{{ script_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;