cURL
curl --request GET \ --url https://ai.data.cloud/api/v1/team/datasets/{datasetId}/datasources/{datasourceId} \ --header 'x-pd-api-key: <api-key>'
{ "code": 123, "data": { "id": "<string>", "datasetId": "<string>", "name": "<string>", "fileName": "<string>", "type": "FILE", "status": "synching" } }
Obtains information about the specified data source.
The external trace ID. The length ranges from 0 to 128 characters.
The ID of the dataset that contains the data source.
The data source ID.
Status code. 0 indicates that the operation is successful. Otherwise, the operation fails. Possible error codes include:
Show child attributes
The data source ID, which uniquely identifies the data source.
The dataset ID.
The data source name.
The file name.
The type of the data source, which is fixed to FILE.
FILE
The processing status of the data source. Possible values are:
invalid
synching
synched