ListClusterConfigs
Lists the module-specific configuration information of a cluster in a workspace. Currently, only Spark parameters are supported.
Operation description
This API operation is currently in the trial phase. To use this operation, submit an application. You can call this operation after the administrator adds you to the trial allowlist.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
integer |
Yes |
The cluster ID generated by DataWorks. |
1234 |
| ProjectId |
integer |
Yes |
The ID of the DataWorks workspace. |
5678 |
| ConfigType |
string |
Yes |
The type of the cluster configuration. Valid values:
|
SPARK_CONF |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response structure. |
||
| ClusterConfigs |
array |
The list of module-specific configuration information for the cluster. |
|
| ClusterConfig |
The configuration information of the cluster in a specific module. |
||
| RequestId |
string |
The ID of the request. You can use the ID to locate logs and troubleshoot issues. |
0000-ABCD-***** |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
| ErrorCode |
string |
The error code. |
101011005 |
| ErrorMessage |
string |
The error message. |
Invalid.Cluster.ClusterNotFound |
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
Examples
Success response
JSON format
{
"ClusterConfigs": [
{
"ModuleName": "ide",
"ConfigValue": "{\"spark.driver.memory\":\"1g\"}",
"EnableOverwrite": false
}
],
"RequestId": "0000-ABCD-*****",
"Success": true,
"ErrorCode": "101011005",
"ErrorMessage": "Invalid.Cluster.ClusterNotFound",
"HttpStatusCode": 200
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.