全部產品
Search
文件中心

DataWorks:GetDataServiceApplication - 查詢資料服務App的詳情

更新時間:Mar 21, 2026

調用GetDataServiceApplication查詢資料服務App的詳情。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

調試

授權資訊

當前API暫無授權資訊透出。

請求參數

名稱

類型

必填

描述

樣本值

TenantId

integer

租戶 ID。您可登入 DataWorks 控制台,進入資料開發(DataStudio)頁面,單擊右上方當前登入使用者名稱稱,選擇菜單 > 使用者資訊,擷取租戶 ID。

10002

ProjectId

integer

工作空間的 ID。

10001

ApplicationId

integer

App 的 ID,可在 API Gateway控制台上查看應用資訊。

10000

返回參數

名稱

類型

描述

樣本值

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.

訪問錯誤中心查看更多錯誤碼。

變更歷史

更多資訊,參考變更詳情