擷取資料來源資訊。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
quickbi-public:GetDataSourceConnectionInfo |
get |
*全部資源
|
無 | 無 |
請求文法
POST HTTP/1.1
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| DsId |
string |
是 |
資料來源 ID。 |
7AAB95D-*****-****-*4FC0C976 |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| RequestId |
string |
請求 ID。 |
7AAB95D-*****-****-*4FC0C976 |
| Result |
object |
資料來源資訊。 |
|
| Address |
string |
資料庫連接串地址(網域名稱或 ip)。 |
172.**.**.48 |
| AuthLevel |
string |
權限等級:
|
0 |
| CreatorId |
string |
建立人的 Quick BI 使用者識別碼。 |
U240****0880C6095 |
| DsId |
string |
資料來源 ID。 |
a201c85c-****** |
| DsType |
string |
資料來源類型。 枚舉值:
|
mysql |
| DsVersion |
string |
資料來源的版本。 |
5.7 |
| Instance |
string |
資料庫執行個體,對應資料庫名稱,ODPS 為 project。 |
rm*********t44ju1 |
| InstanceId |
string |
執行個體 ID。 |
rm*********t44ju1 |
| ModifyUser |
string |
修改人的 Quick BI 使用者識別碼。 |
U240****0880C6095 |
| NoSasl |
boolean |
impala 資料來源是否需要身分識別驗證即可登入:
|
true |
| ParentDsType |
string |
多引擎資料來源的主要資料源類型。 |
dataphin |
| Port |
string |
連接埠。 |
3306 |
| Project |
string |
擷取串連串詳情時,odps 供前端展示使用。 |
prod-ossdoc |
| Schema |
string |
資料庫 schema,僅對支援 schema 的資料庫需要設定。 |
Analysis |
| ShowName |
string |
資料來源前端展示名稱。 |
0327 |
| WorkspaceId |
string |
資料來源所屬工作空間 ID。 |
0de6**2-d**-4720-8836-0cc****1394c |
| Success |
boolean |
是否成功。 |
true |
樣本
正常返回樣本
JSON格式
{
"RequestId": "7AAB95D-*****-****-*4FC0C976",
"Result": {
"Address": "172.**.**.48",
"AuthLevel": "0",
"CreatorId": "U240****0880C6095",
"DsId": "a201c85c-******",
"DsType": "mysql",
"DsVersion": "5.7",
"Instance": "rm*********t44ju1",
"InstanceId": "rm*********t44ju1",
"ModifyUser": "U240****0880C6095",
"NoSasl": true,
"ParentDsType": "dataphin",
"Port": "3306",
"Project": "prod-ossdoc",
"Schema": "Analysis",
"ShowName": "0327",
"WorkspaceId": "0de6**2-d**-4720-8836-0cc****1394c"
},
"Success": true
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | Invalid.Parameter | The length of the parameter must not exceed 1000. | |
| 400 | Access.Forbidden | Your instance version or access key is not allowed to call the API operation, only professional version supports calling. | |
| 400 | Internal.System.Error | An internal system error occurred. | |
| 400 | Instance.Expired | Your instance has expired. | |
| 400 | Instance.Not.Exist | The specified instance does not exist. | |
| 400 | Invalid.Organization | The specified organizational unit does not exist. | |
| 400 | User.Not.In.Organization | The specified user is not in the organizational unit. | |
| 400 | Invalid.Param.Error | The parameter is invalid. | |
| 400 | Invalid.Parameter.Error | The parameter is invalid:%s. | |
| 400 | Datasource.NotFound.Error | The specified data source does not exist: %s. | |
| 400 | Application.Object.NotExist | The object you are operating does not exist or has been deleted. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。