全部產品
Search
文件中心

DataWorks:GetMetaTableThemeLevel - 擷取表的主題和層級資訊

更新時間:Mar 21, 2026

擷取表的主題和層級資訊。

調試

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

調試

授權資訊

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

請求參數

名稱

類型

必填

描述

樣本值

TableGuid

string

表的唯一 ID,格式為 odps.${projectName}.${tableName}。

odps.project1.name1

DataSourceType

string

資料類型,目前只支援 odps。

odps

返回參數

名稱

類型

描述

樣本值

object

返回資料。

HttpStatusCode

integer

HTTP 狀態代碼。

200

ErrorMessage

string

錯誤資訊。

success

RequestId

string

本次調用的唯一 ID。出現錯誤後,您可以根據該 ID 排查問題。

1324afdsfde

Success

boolean

調用是否成功。

true

ErrorCode

string

錯誤碼。

0

Entity

object

返回資料。

Theme

array<object>

返回的主題資訊。

object

主題資訊。

ParentId

integer

父主題 ID。

0

Name

string

主題名稱。

theme1

ThemeId

integer

主題 ID。

123

Level

integer

主題類型,取值如下:

  • 1:一級主題。

  • 2:二級主題。

1

Level

array<object>

返回的層級資訊。

object

層級資訊。

Type

integer

層級類型,取值如下:

  • 1:邏輯層級。

  • 2:物理層級。

1

Description

string

層級的描述。

描述

Name

string

層級名稱。

level1

LevelId

integer

層級 ID。

1

樣本

正常返回樣本

JSON格式

{
  "HttpStatusCode": 200,
  "ErrorMessage": "success",
  "RequestId": "1324afdsfde",
  "Success": true,
  "ErrorCode": "0",
  "Entity": {
    "Theme": [
      {
        "ParentId": 0,
        "Name": "theme1",
        "ThemeId": 123,
        "Level": 1
      }
    ],
    "Level": [
      {
        "Type": 1,
        "Description": "描述",
        "Name": "level1",
        "LevelId": 1
      }
    ]
  }
}

錯誤碼

HTTP status code

錯誤碼

錯誤資訊

描述

400 Invalid.Meta.TableNotExist The table does not exist. 表不存在。
400 InvalidParameter.Meta.CommonError The specified parameter is invalid. 請求參數錯誤。
400 InvalidParameter.Meta.Illegal The app guid parameter is invalid. App參數錯誤。
400 InvalidParameter.Meta.IllegalDate The date format is invalid. 日期格式錯誤。
400 InvalidParameter.Meta.IllegalPageError The parameter for paging is invalid. 分頁資訊錯誤。
400 InvalidParameter.Meta.NotExist The object does not exist.
500 InternalError.System An internal system error occurred. Try again later.
500 InternalError.UserId.Missing An internal system error occurred. Try again later.
500 InternalError.Meta.NoCalcEngine An error occurred while retrieving the compute engine based on the MaxCompute project.
500 InternalError.Meta.TenantTimeOut Failed to connect to the interface network. 介面網路不通。
500 InternalError.Meta.Unknown An unknown error occurred while processing your request. 未知錯誤。
403 Forbidden.Meta.NoTenant The user is not the owner of any tenants. 當前的使用者不是任何租戶的所有者。
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.Api.Risk The request for this resource has exceeded your daily available limit.
429 Throttling.System The DataWorks system is busy. Try again later.
429 Throttling.User Your request is too frequent. Try again later.

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

變更歷史

更多資訊,參考變更詳情