Obtains a data source.
Operation description
Method
GET
URI
/openapi/ha3/instances/{instanceId}/data-sources/{dataSourceName}
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
searchengine:GetDataSource |
get |
*Instance
|
None | None |
Request syntax
GET /openapi/ha3/instances/{instanceId}/data-sources/{dataSourceName} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| instanceId |
string |
No |
The instance ID. |
ha-cn-pl32rf0**** |
| dataSourceName |
string |
No |
The name of the data source. |
ha-cn-pl32rf0****_test_api |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Sample requests
GET /openapi/ha3/instances/ha3_instances_id/data-sources/my_data_source
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| requestId |
string |
Id of the request |
FE03180A-0E29-5474-8A86-33F0683294A4 |
| result |
object |
The information about the data source. |
|
| 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 where the data source is deployed in offline mode |
vpc_hz_domain_1 |
| indexes |
array |
The list of index information |
|
|
string |
The index table |
index1 |
|
| lastFulTime |
integer |
The time when the full data of the data source was last queried. |
1718787219 |
| 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
{
"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"
],
"lastFulTime": 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": "FE03180A-0E29-5474-8A86-33F0683294A4",
"result": {
"name": "ha-cn-pl32rf0****_test_api",
"type": "odps",
"domain": "vpc_hz_domain_1",
"indexes": [
"index1"
],
"lastFulTime": 1718787219,
"status": "new"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.