Obtains the list of data sources.
Operation description
Method
GET
URI
/openapi/ha3/instances/{instanceId}/data-sources
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
searchengine:ListDataSources |
list |
*Instance
|
None | None |
Request syntax
GET /openapi/ha3/instances/{instanceId}/data-sources HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| instanceId |
string |
Yes |
The instance ID. |
ha-cn-pl32rf0**** |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Sample requests
GET /openapi/ha3/instances/ha3_instances_id/data-sources
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| requestId |
string |
The ID of the request. |
93A9E542-8CF8-5BA6-99AB-94C0FE520429 |
| result |
array<object> |
The results returned. |
|
|
object |
The list of data source information. |
||
| name |
string |
The name of the data source. |
ha-cn-pl32rf0****_test_api |
| type |
string |
The type of the data source. |
odps |
| domain |
string |
The data center in which the data source is deployed. |
vpc_hz_domain_1 |
| indexes |
array |
The indexes. |
|
|
string |
The index of the data source. |
index1 |
|
| lastFulTime |
integer |
The time when the full data of the data source was last queried. |
1718787785 |
| status |
string |
The status of the data source. Valid values: new: The data source is being created. publish: The data source is in the normal state. trash: The data source is being deleted. |
new |
ResponseExample
Correct response
{
"requestId": "0A6EB64B-B4C8-CF02-810F-E660812972FF",
"result": [
{
"name": "data_source_name",
"type": "odps",
"domain": "test", // Offline deployment
"indexes": [
"index1",
"index2"
],
"partitions": [
"ds=2020"
"ds=2021"
],
"lastFullTime": 1628502036000,
"config":{
"accessKey": "xxx",
"accessSecret": "xxxs",
"project":"xxxx",
"table":"xxx",
"partition":"xxxx"
},
"autoBuildIndex": true,
"status": "new" // new: Createin; publish: normal; trash: Deletein
},
{
"name": "data_source_name",
"type": "odps",
"domain": "test", // Offline deployment
"indexes": [
"index1",
"index2"
],
"partitions": [
"ds=2020"
"ds=2021"
],
"lastFullTime": 1628502036000,
"config":{
"accessKey": "xxx",
"accessSecret": "xxxs",
"project":"xxxx",
"table":"xxx",
"partition":"xxxx"
},
"autoBuildIndex": true,
"status": "new" // new: Createin; publish: normal; trash: Deletein
}
]
}
Examples
Success response
JSON format
{
"requestId": "93A9E542-8CF8-5BA6-99AB-94C0FE520429",
"result": [
{
"name": "ha-cn-pl32rf0****_test_api",
"type": "odps",
"domain": "vpc_hz_domain_1",
"indexes": [
"index1"
],
"lastFulTime": 1718787785,
"status": "new"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.