GetDataServiceApplication - 查询数据服务App的详情

更新时间:
复制 MD 格式

调用GetDataServiceApplication查询数据服务App的详情。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

当前API暂无授权信息透出。

请求参数

名称

类型

必填

描述

示例值

TenantId

integer

否

租户 ID。您可登录 DataWorks 控制台,进入数据开发(DataStudio)页面,单击右上方当前登录用户名称,选择菜单 > 用户信息,获取租户 ID。

10002

ProjectId

integer

是

工作空间的 ID。

10001

ApplicationId

integer

是

App 的 ID,可在 API 网关控制台上查看应用信息。

10000

ApigwVersion

integer

否

网关版本,1:API 网关;2:云原生 API 网关

1

返回参数

名称

类型

描述

示例值

object

HttpStatusCode

integer

HTTP 状态码。

200

RequestId

string

请求 ID,一次请求的唯一标识。

0000-ABCD-EFG****

ErrorMessage

string

错误信息。

正常

Success

boolean

调用是否成功。

true

ErrorCode

string

错误码。

0

Data

object

App 详情。

ApplicationCode

string

API 调用认证方式一,简单身份认证中的 AppCode。

CODE123

ApplicationKey

string

API 调用认证方式二,加密签名身份认证中的 AppKey。

KEY123

ApplicationSecret

string

API 调用认证方式二,加密签名身份认证中的 AppSecret。

SECRET123

ProjectId

integer

关联工作空间的 ID。

10001

ApplicationName

string

应用名称。

测试应用

ApplicationId

integer

App 的 ID。

10000

ApplicationCode 或 ApplicationSecre 参数的泄露会威胁您数据服务 API 资源的安全,本 OpenAPI 会对 ApplicationCode 和 ApplicationSecre 参数进行脱敏后再返回。

示例

正常返回示例

JSON格式

{
  "HttpStatusCode": 200,
  "RequestId": "0000-ABCD-EFG****",
  "ErrorMessage": "正常",
  "Success": true,
  "ErrorCode": "0",
  "Data": {
    "ApplicationCode": "CODE123",
    "ApplicationKey": "KEY123",
    "ApplicationSecret": "SECRET123",
    "ProjectId": 10001,
    "ApplicationName": "测试应用",
    "ApplicationId": 10000
  }
}

错误码

HTTP status code

错误码

错误信息

描述

500 InternalError.System An internal system error occurred. Try again later.
500 InternalError.UserId.Missing An internal system error occurred. Try again later.
403 Forbidden.Access Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.
429 Throttling.Api The request for this resource has exceeded your available limit.
429 Throttling.System The DataWorks system is busy. Try again later.
429 Throttling.User Your request is too frequent. Try again later.

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情。