---
title: "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/executeScriptActions"
method: POST
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/executeScriptActions"
tags: ["Clusters"]
---

# POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/executeScriptActions

`POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/executeScriptActions`

Executes script actions on the specified HDInsight cluster.

## Path parameters

- `subscriptionId` string, required
- `resourceGroupName` string, required
- `clusterName` string, required

## Query parameters

- `api-version` string, required

## Request body

- ExecuteScriptActionParameters — unresolved $ref

## Response `200`

Accepted response definition.

## Other responses

- `202` — OK response definition.
- `404` — Bad Request definition.
- `default` — Error response describing why the operation failed.

## Changes

- **2021-02-24** (2018-06-01-preview) `5b1ef5d0cefe` — 1 info
  - added the non-success response with the status `404`

[Change history](https://skmtc.dev/azure/apis/hdinsightmanagementclient-7/changes/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.HDInsight/clusters/:clusterName/executeScriptActions/post.md)

---

[API](https://skmtc.dev/azure/apis/hdinsightmanagementclient-7.md) · [All operations](https://skmtc.dev/azure/apis/hdinsightmanagementclient-7/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/hdinsightmanagementclient-7/revisions/5b1ef5d0cefe/schema)
