获取数据源信息。
调试
您可以在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 用户 ID。 |
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 用户 ID。 |
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. |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。