Create DataLens Spark cluster
datalens_sparkclusters_createCreates a Spark cluster in a specified collection and cloud environment, returning an operation ID to track provisioning; clusters incur costs while running.
Instructions
Create a Spark cluster and return the operation that creates it.
A cluster is paid for while it runs: create one only when asked to. The operation goes on
after the reply: lakehouseoperations_get with its id says how it ended. Experimental
API, not measured.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"collection_id": "<collection_id>",
"cloud_environment_id": "<cloud_environment_id>",
"name": "<name>",
"config": "<config>"
},
"name": "datalens_sparkclusters_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The cluster's name. | |
| config | Yes | The Spark version and the pools of the driver and executors. | |
| labels | No | Labels of the cluster. | |
| dry_run | No | Send nothing: answer `{dry_run: true, request}`, the first write the tool would make (null: none). | |
| description | No | A description of the cluster. | |
| collection_id | Yes | The collection to create the cluster in. | |
| cloud_environment_id | Yes | The cloud environment the cluster runs in. |