ScriptExecutionHistoryOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

HDInsightManagementClient's

<xref:script_execution_history> attribute.

Constructor

ScriptExecutionHistoryOperations(*args, **kwargs)

Methods

list_by_cluster

Lists all scripts' execution history for the specified cluster.

promote

Promotes the specified ad-hoc script execution to a persisted script.

list_by_cluster

Lists all scripts' execution history for the specified cluster.

list_by_cluster(resource_group_name: str, cluster_name: str, **kwargs: Any) -> ItemPaged[RuntimeScriptActionDetail]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

cluster_name
Required
str

The name of the cluster. Required.

Returns

Type Description

An iterator like instance of either RuntimeScriptActionDetail or the result of cls(response)

Exceptions

Type Description

promote

Promotes the specified ad-hoc script execution to a persisted script.

promote(resource_group_name: str, cluster_name: str, script_execution_id: str, **kwargs: Any) -> None

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

cluster_name
Required
str

The name of the cluster. Required.

script_execution_id
Required
str

The script execution Id. Required.

Returns

Type Description

None or the result of cls(response)

Exceptions

Type Description

Attributes

models

models = <module 'azure.mgmt.hdinsight.models' from 'C:\\ToolCache\\Python\\3.12.10\\x64\\Lib\\site-packages\\py2docfx\\venv\\venv145\\Lib\\site-packages\\azure\\mgmt\\hdinsight\\models\\__init__.py'>