DescribeDataSources
Queries the list of data sources.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
hbr:DescribeDataSources |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| PageNumber |
integer |
No |
The page number. Pages start from 1. Default value: 1. |
1 |
| PageSize |
integer |
No |
The number of entries to return on each page. |
10 |
| DataSourceType |
string |
No |
The type of the data source. |
COMMON_NAS |
| ClusterId |
string |
No |
The ID of the client group used to access the data source. |
cl-0003jyv******fsku5m |
| DataSourceId |
string |
No |
The ID of the data source. |
ds-000******2nqeo |
| DataSourceName |
string |
No |
The name of the data source. |
MyLocalNas |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
36A5CD24-****-****-****-5F30C3F1753F |
| Success |
boolean |
Indicates whether the request is successful. Valid values:
|
true |
| Code |
string |
The return code. A value of 200 indicates success. |
200 |
| Message |
string |
The message returned. If the request is successful, "successful" is returned. If an error occurs, the corresponding error message is returned. |
successful |
| PageNumber |
integer |
The page number. Pages start from 1. Default value: 1. |
1 |
| PageSize |
integer |
The number of entries per page. Minimum value: 1. Maximum value: 99. Default value: 10. |
10 |
| TotalCount |
integer |
The total number of data sources. |
20 |
| DataSources |
array<object> |
The list of data sources. |
|
|
object |
The data source information. |
||
| IndexLevel |
string |
The index level. Valid values:
|
META |
| Schedule |
string |
The execution cycle. This parameter is used only for data source analysis in the archiving feature. Do not use it in other scenarios. Format: I{startTime}{interval}. This indicates that a task is executed every {interval} starting from {startTime}. startTime: the start time, which is a UNIX timestamp in seconds. interval: an ISO 8601 time interval. For example, PT1H indicates an interval of one hour, and P1D indicates an interval of one day. |
I|1729493847|P1D |
| DataSourceName |
string |
The name of the data source. |
COMMON_NAS |
| DataSourceId |
string |
The ID of the data source. |
ds-000******2nqeo |
| Options |
string |
The data source analysis options. This parameter is used only for data source analysis in the archiving feature. Do not use it in other scenarios. |
{} |
| SpeedLimit |
string |
The throttling limit. This parameter is used only for data source analysis in the archiving feature. Do not use it in other scenarios. |
6:21:10240 |
| PlanId |
string |
The ID of the analysis plan. This parameter is used only for data source analysis in the archiving feature. Do not use it in other scenarios. |
plan-123***7890 |
| IndexUpdateTime |
boolean |
The index update time. This parameter is used only for data source analysis in the archiving feature. Do not use it in other scenarios. |
1745454604 |
| Exclude |
string |
The filter that specifies the files to exclude. This parameter is used only for data source analysis in the archiving feature. Do not use it in other scenarios. |
[ "/home/alice/log" ] |
| Indexing |
boolean |
Indicates whether an index is being created. This parameter is used only for data source analysis in the archiving feature. Do not use it in other scenarios. |
false |
| UpdatedTime |
integer |
The update time. |
1745454604 |
| DataSourceType |
string |
The type of the data source. |
COMMON_NAS |
| ConnectionInfo |
string |
The connection information of the data source, which describes how to access the data source. |
{ "dataServerAddresses": [ { "host": "123.123.123.123", "port": "8080" } ], "sharePath": "/share", "mountOptions": "vers=3", "fileSystemType": "nfs" } |
| IndexAvailable |
boolean |
Indicates whether the index is available. This parameter is used only for data source analysis in the archiving feature. Do not use it in other scenarios. |
true |
| CreatedTime |
integer |
The creation time. |
1770257653 |
| Include |
string |
The filter that specifies the files to include. This parameter is used only for data source analysis in the archiving feature. Do not use it in other scenarios. |
[ "/home/alice", "/home/bob" ] |
| ClusterId |
string |
The ID of the client group used to access the data source. |
cl-0003jyv******fsku5m |
| Paths |
array |
The list of paths for data source analysis. This parameter is used only for data source analysis in the archiving feature. Do not use it in other scenarios. |
|
|
string |
The path for data source analysis. This parameter is used only for data source analysis in the archiving feature. Do not use it in other scenarios. |
/home |
Examples
Success response
JSON format
{
"RequestId": "36A5CD24-****-****-****-5F30C3F1753F",
"Success": true,
"Code": "200",
"Message": "successful",
"PageNumber": 1,
"PageSize": 10,
"TotalCount": 20,
"DataSources": [
{
"IndexLevel": "META",
"Schedule": "I|1729493847|P1D\t",
"DataSourceName": "COMMON_NAS",
"DataSourceId": "ds-000******2nqeo",
"Options": "{}",
"SpeedLimit": "6:21:10240",
"PlanId": "plan-123***7890",
"IndexUpdateTime": true,
"Exclude": "[\n \"/home/alice/log\"\n]",
"Indexing": false,
"UpdatedTime": 1745454604,
"DataSourceType": "COMMON_NAS",
"ConnectionInfo": "{\n \"dataServerAddresses\": [\n {\n \"host\": \"123.123.123.123\",\n \"port\": \"8080\"\n }\n ],\n \"sharePath\": \"/share\",\n \"mountOptions\": \"vers=3\",\n \"fileSystemType\": \"nfs\"\n}",
"IndexAvailable": true,
"CreatedTime": 1770257653,
"Include": "[\n \"/home/alice\",\n \"/home/bob\"\n]",
"ClusterId": "cl-0003jyv******fsku5m",
"Paths": [
"/home"
]
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.