All Products
Search
Document Center

:GetMetaTableThemeLevel

更新時間:May 13, 2024

Queries information about table themes and table levels.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter

Type

Required

Example

Description

Action

String

Yes

GetMetaTableThemeLevel

The operation that you want to perform. Set the value to GetMetaTableThemeLevel.

TableGuid

String

Yes

odps.project1.name1

The GUID of the table. Specify the GUID in the format of odps.${projectName}.${tableName}.

DataSourceType

String

Yes

odps

The type of the data source. Set the value to odps.

Response parameters

Parameter

Type

Example

Description

HttpStatusCode

Integer

200

The HTTP status code.

ErrorMessage

String

success

The error message.

RequestId

String

1324afdsfde

The request ID.

Success

Boolean

true

Indicates whether the request was successful.

ErrorCode

String

0

The error code.

Entity

Object

The data returned.

Theme

Array of Theme

The table themes.

ParentId

Long

0

The parent table theme ID.

Name

String

theme1

The name of the table theme.

ThemeId

Long

123

The table theme ID

Level

Integer

1

The level of the table theme. Valid values:

  • 1

  • 2

Level

Array of Level

The table levels.

Type

Integer

1

The type of the table level. Valid values:

  • 1: indicates the logical level.

  • 2: indicates the physical level.

Description

String

Description

The description of the table level.

Name

String

level1

The name of the table level.

LevelId

Long

1

The table level ID.

Examples

Sample requests

http(s)://[Endpoint]/?Action=GetMetaTableThemeLevel
&TableGuid=odps.project1.name1
&DataSourceType=odps
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<GetMetaTableThemeLevelResponse>
    <HttpStatusCode>200</HttpStatusCode>
    <ErrorMessage>success</ErrorMessage>
    <RequestId>1324afdsfde</RequestId>
    <Success>true</Success>
    <ErrorCode>0</ErrorCode>
    <Entity>
        <Theme>
            <ParentId>0</ParentId>
            <Name>theme1</Name>
            <ThemeId>123</ThemeId>
            <Level>1</Level>
        </Theme>
        <Level>
            <Type>1</Type>
            <Description>Description</Description>
            <Name>level1</Name>
            <LevelId>1</LevelId>
        </Level>
    </Entity>
</GetMetaTableThemeLevelResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/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" : "Description",
      "Name" : "level1",
      "LevelId" : 1
    } ]
  }
}

Error codes

HTTP status code

Error code

Error message

Description

400

Invalid.Meta.TableNotExist

The table does not exist.

The metatable is not found.

400

InvalidParameter.Meta.CommonError

The specified parameter is invalid.

The values specified for one or more request parameters are invalid.

400

InvalidParameter.Meta.Illegal

The app guid parameter is invalid.

The values specified for one or more parameters of the application are invalid.

400

InvalidParameter.Meta.IllegalDate

The date format is invalid.

The date format is invalid.

400

InvalidParameter.Meta.IllegalPageError

The parameter for paging is invalid.

The value of the parameter for paging is invalid.

403

Forbidden.Meta.NoTenant

The user is not the owner of any tenants.

The current user is not a tenant owner.

403

Forbidden.Access

Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.

No permissions.

429

Throttling.Api

The request for this resource has exceeded your available limit.

The number of requests for the resource has exceeded the upper limit.

429

Throttling.Api.Risk

The request for this resource has exceeded your daily available limit.

The number of requests per day for the resource has exceeded the upper limit.

429

Throttling.System

The DataWorks system is busy. Try again later.

The DataWorks system is busy. Try again later.

429

Throttling.User

Your request is too frequent. Try again later.

Excessive requests have been submitted within a short period of time. Try again later.

500

InternalError.System

An internal system error occurred. Try again later.

An internal error occurred. Try again later.

500

InternalError.UserId.Missing

An internal system error occurred. Try again later.

An internal error occurred. Try again later.

500

InternalError.Meta.NoCalcEngine

An error occurred while retrieving the compute engine based on the MaxCompute project.

The project specified by the user is invalid.

500

InternalError.Meta.TenantTimeOut

Failed to connect to the interface network.

The network cannot be connected.

500

InternalError.Meta.Unknown

An unknown error occurred while processing your request.

An unknown error occurred.

For a list of error codes, see Service error codes.