UpdateClusterConfigs
Updates the submodule configurations of a cluster in a workspace. Currently, only Spark parameters are supported.
Operation description
This operation is currently in trial use. Users who want to try it can submit an application. You can call this operation after an administrator adds you to the trial user list.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
integer |
Yes |
The ID of the cluster associated with DataWorks. |
12345 |
| ProjectId |
integer |
Yes |
The ID of the workspace. |
5678 |
| ConfigType |
string |
Yes |
The configuration type of the cluster. Valid values:
|
SPARK_CONF |
| ConfigValues |
array |
Yes |
The list of configuration information of the cluster submodule. |
|
| ClusterConfig |
No |
The configuration information of the cluster in a module. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The returned data. |
||
| Data |
boolean |
Indicates whether the update was successful. Valid values:
|
true |
| RequestId |
string |
The ID of the request. It is used to locate logs and troubleshoot problems. |
0000-ABCD-E**** |
| 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
{
"Data": true,
"RequestId": "0000-ABCD-E****",
"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.