UpdateDataSource
Updates the data source with the specified ID.
Operation description
You must purchase DataWorks Basic Edition or a higher edition to use this operation.
You must have at least one of the following roles in the DataWorks workspace:
tenant owner, tenant administrator, workspace administrator, project owner, or operator.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dataworks:UpdateDataSource |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Id |
integer |
Yes |
The ID of the data source to be updated. Call the ListDataSources operation and obtain the data source ID for the corresponding environment from |
16033 |
| ProjectId |
integer |
Yes |
The ID of the DataWorks workspace. |
5678 |
| ConnectionPropertiesMode |
string |
No |
The connection configuration mode. If this parameter is not specified, the current mode of the data source is used. Example: Instance mode for Hologres over the Internet. Valid values:
|
InstanceMode |
| Description |
string |
No |
The description of the data source. The description can be up to 3,000 characters in length. |
test |
| ConnectionProperties |
string |
Yes |
The connection configurations of the data source. Pass a JSON string. You must specify |
{ "envType": "Dev", "regionId": "cn-beijing", "instanceId": "hgprecn-cn-x0r3oun4k001", "database": "testdb", "securityProtocol": "authTypeNone", "authType": "Executor" } |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| RequestId |
string |
The request ID. You can use the ID to locate logs and troubleshoot issues. |
102E8E24-0387-531D-8A75-1C0AE7DD03E5 |
| Success |
boolean |
Indicates whether the data source is updated. Valid values:
|
true |
Examples
Success response
JSON format
{
"RequestId": "102E8E24-0387-531D-8A75-1C0AE7DD03E5",
"Success": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.