全部產品
Search
文件中心

Quick BI:CreateDataset - 根據物理表名稱建立資料集

更新時間:Dec 24, 2025

根據物理表名稱建立資料集。

調試

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

調試

授權資訊

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

請求文法

POST  HTTP/1.1

請求參數

名稱

類型

必填

描述

樣本值

DsId

string

資料來源 ID。

7AAB95D-*****-****-*4FC0C976

TableName

string

表名稱。

st_trd_user_purchase_day_inc

UserDefineCubeName

string

資料集名稱。

test

WorkspaceId

string

工作空間 ID。

726bee5a-****-43e1-9a8e-b550f0120f35

UserId

string

需要傳入一個有許可權建立資料集的 Quick BI 的 UserId,非您的阿里雲帳號 ID。 您可以調用 QueryUserInfoByAccount 介面,擷取 UserId。

726bee5a-****-43e1-9a8e-b550f0120f35

TargetDirectoryId

string

指定目錄檔案夾 ID。

asah-fsdfsf*****92342

返回參數

名稱

類型

描述

樣本值

object

Schema of Response

RequestId

string

請求 ID。

F68B***********A3DF743

Result

string

介面執行結果。取值範圍:

  • true:請求成功

  • false:請求失敗

true

Success

boolean

是否請求成功。取值範圍:

  • true:請求成功

  • false:請求失敗

true

樣本

正常返回樣本

JSON格式

{
  "RequestId": "F68B***********A3DF743",
  "Result": "true",
  "Success": true
}

錯誤碼

HTTP status code

錯誤碼

錯誤資訊

描述

400 Internal.System.Error An internal system error occurred. 系統內部異常。
400 Invalid.Parameter.Error The parameter is invalid:%s. 無效參數%s。
400 Cube.Not.Exist The Cube does not exist. 資料集不存在。
400 Invalid.User.Organization The user is not in your organization. 該使用者不在您的組織中。
400 Workspace.NotIn.Organization The workspace is not owned by the organization. 空間不在組織內。
400 Datasource.NotFound.Error The specified data source does not exist: %s. 資料來源不存在:%s。
400 DatasourceId.IsNull.Error You must select a data source before selecting the table. 必須選擇資料來源之後再選擇表。
400 Name.RegularExpression.Error Name format validation failed. 名稱格式驗證失敗。
400 NameExceeded.MaxLength.Error The name cannot exceed %s characters in length. 名稱長度不能超過%s個字元。
400 User.NotIn.Workspace The user is not a member of the group workspace. 該使用者不在群空間中。
400 Cube.DuplicatedName.Error The dataset name already exists. Modify the name before saving. 資料集名稱已存在,請修改名稱後再儲存。
400 Directory.NotExist.Error The directory does not exist. 檔案夾不存在。

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

變更歷史

更多資訊,參考變更詳情