DescribeDataSources

Updated at:

Queries the list of data sources.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

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: The request is successful.

  • false: The request fails.

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:

  • OFF: No index is created.

  • META: Metadata index.

  • ALL: Full-text index. [Deprecated]

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.