擷取某一資料來源。
介面說明
方法
GET
URI
/openapi/ha3/instances/{instanceId}/data-sources/{dataSourceName}
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
searchengine:GetDataSource |
get |
*Instance
|
無 | 無 |
請求文法
GET /openapi/ha3/instances/{instanceId}/data-sources/{dataSourceName} HTTP/1.1
路徑參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| instanceId |
string |
否 |
執行個體 ID |
ha-cn-pl32rf0**** |
| dataSourceName |
string |
否 |
資料來源的名稱 |
ha-cn-pl32rf0****_test_api |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
當前API無需請求參數
請求樣本
GET /openapi/ha3/instances/ha3_instances_id/data-sources/my_data_source
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| requestId |
string |
請求 ID。 |
FE03180A-0E29-5474-8A86-33F0683294A4 |
| result |
object |
資料來源資訊列表 |
|
| name |
string |
資料來源名稱 |
ha-cn-pl32rf0****_test_api |
| type |
string |
資料來源類型 |
odps |
| domain |
string |
離線部署 |
vpc_hz_domain_1 |
| indexes |
array |
索引列表 |
|
|
string |
索引表 |
index1 |
|
| lastFulTime |
integer |
上一次全量時間 |
1718787219 |
| status |
string |
資料來源狀態:new: 建立中; publish: 正常; trash: 刪除中 |
new |
返回樣本
{
"requestId": "0A6EB64B-B4C8-CF02-810F-E660812972FF",
"result": {
"name": "data_source_name",
"type": "odps",
"domain": "test", // 離線部署
"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: 建立中; publish: 正常; trash: 刪除中
}
}
樣本
正常返回樣本
JSON格式
{
"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"
}
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。