Updates the data source configuration.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DataSourceId |
string |
Yes |
The ID of the data source. |
ds-0006xo****dtle |
| DataSourceName |
string |
No |
The name of the data source. |
MyLocalNas |
| Credential |
string |
No |
The access credentials for the data source. This parameter is used for on-premises NAS data sources that use the SMB protocol, and for OSS and S3 protocol-compatible data sources. Examples:
|
{"mountUsername":"***","mountPassword":"***"} |
| ConnectionInfo |
string |
No |
The connection information for the data source. Examples:
|
{ "dataServerAddresses": [ { "host": "123.123.123.123", "port": "8080" } ], "sharePath": "/share", "mountOptions": "vers=3", "fileSystemType": "nfs" } |
| IndexLevel |
string |
No |
The index level for data source analysis. This parameter applies only to the archive feature.
Valid values:
|
META |
| ClusterId |
string |
No |
The ID of the client group used to access the data source. |
cl-000**************hg9 |
| Schedule |
string |
No |
The schedule for data source analysis. This parameter applies only to the archive feature. The format is |
I|1729493847|P1D |
| SpeedLimit |
string |
No |
The rate limiting configuration for data source analysis. This parameter applies only to the archive feature. |
0:24:102400 |
| Options |
string |
No |
The options for data source analysis. This parameter applies only to the archive feature. |
{} |
| Include |
string |
No |
A filter to specify which files to include. This parameter applies only to the archive feature. |
["/home/alice/", "/home/bob/"] |
| Exclude |
string |
No |
A filter to specify which files to exclude. This parameter applies only to the archive feature. |
["/home/alice/log/"] |
| Path |
array |
No |
A list of paths for data source analysis. This parameter applies only to the archive feature. |
|
|
string |
No |
A path for data source analysis. This parameter applies only to the archive feature. |
/home |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| Code |
string |
The response code. A value of 200 indicates success. |
200 |
| Message |
string |
The response message. If the request is successful, |
successful |
| RequestId |
string |
The request ID. |
1F22A695-***-***-***-DDC66F5E5ACB |
| Success |
boolean |
Indicates whether the request was successful.
|
true |
Examples
Success response
JSON format
{
"Code": "200",
"Message": "successful",
"RequestId": "1F22A695-***-***-***-DDC66F5E5ACB",
"Success": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.