Updates a data source.
Operation description
The JsonConfig input parameter is a complex JSON configuration. A supporting tool class provides configuration examples. For more information, see the Demo.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:UpdateDataSource |
update |
*DataSource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region of the Data Management center for threat analysis. Select a region based on the location of the assets. Valid values:
|
cn-hangzhou |
| Lang |
string |
No |
The language of the response messages. Valid values:
|
zh |
| RoleFor |
integer |
No |
The user ID of the member whose perspective the administrator switches to. |
173326******* |
| DataSourceId |
string |
No |
The ID of the data source. |
ds-014frtpy28m5ct2eoyo1 |
| DataSourceName |
string |
No |
The name of the data source. |
ActiontrailLog |
| LogUserId |
integer |
No |
The user ID for data access. |
173326******* |
| DataSourceStores |
array<object> |
No |
The list of Simple Log Service Logstores. |
|
|
object |
No |
A Simple Log Service Logstore. |
||
| LogRegionId |
string |
No |
The ID of the log storage region. |
cn-hangzhou |
| LogProjectName |
string |
No |
The name of the Simple Log Service project. |
aliyun-cloudsiem-data-173326*******-cn-hangzhou |
| LogStoreName |
string |
No |
The name of the Simple Log Service Logstore. |
cn-rds-sqlaudit |
| DataSourceStoreFrom |
string |
No |
The source of the data. Valid values:
|
custom |
| DataSourceStoreId |
string |
No |
The ID of the log storage. |
1 |
| DataSourceRecognizeEnabled |
boolean |
No |
Specifies whether to automatically discover new Logstores. |
true |
| DataSourceFrom |
string |
No |
The source of the data. Valid values:
|
custom |
| OrderField |
string |
No |
The field to use for sorting the rule list. Valid values:
|
Id |
| LogStoreName |
string |
No |
The name of the Simple Log Service Logstore. |
cn-rds-sqlaudit |
| LogProjectName |
string |
No |
The name of the Simple Log Service project. |
aliyun-cloudsiem-data-173326*******-cn-hangzhou |
| LogRegionId |
string |
No |
The ID of the log storage region. |
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| RequestId |
string |
The ID of the request. |
6276D891-*****-55B2-87B9-74D413F7**** |
Examples
Success response
JSON format
{
"RequestId": "6276D891-*****-55B2-87B9-74D413F7****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IdempotentParameterMismatch | The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.