All Products
Search
Document Center

DataWorks:GetSchema

Last Updated:Mar 30, 2026

Retrieves the schema details of a specified table in Data Map. Only MaxCompute and Hologres schemas are supported.

Operation description

  1. DataWorks Basic Edition or a higher edition is required.

  2. Only MaxCompute and Hologres types are supported.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

Id

string

Yes

The ID. You can refer to the ListSchemas operation and Concepts related to metadata entities.

The format is ${EntityType}:${Instance ID or escaped URL}:${Catalog ID}:${Database name}:${Schema name}</code>. Use empty strings as placeholders for missing levels.

Note

For the MaxCompute type, use an empty string as the placeholder for the instance ID level. The database name is the MaxCompute project name, and the project must have the three-level model enabled.

Examples:

maxcompute-schema:::project_name:schema_name (The three-level model is enabled for the MaxCompute project.)

holo-schema:instance_id::database_name:schema_name

Note


instance_id: The Hologres instance ID
. database_name: The database name
. database_name: The MaxCompute project name
. schema_name: The schema name.



maxcompute-schema:::project_name:schema_name

Response elements

Element

Type

Description

Example

object

The response.

RequestId

string

The request ID.

A89B5D9D-74EA-XXXXXX

Success

boolean

Indicates whether the request was successful.

true

Schema Schema

The schema information.

Examples

Success response

JSON format

{
  "RequestId": "A89B5D9D-74EA-XXXXXX",
  "Success": true,
  "Schema": {
    "Id": "maxcompute-schema:123456XXX::test_project:default\nholo-schema:h-abc123xxx::test_db:test_schema",
    "Name": "test_db",
    "Comment": "test comment",
    "Type": "MANAGED",
    "ParentMetaEntityId": "maxcompute-project:123456XXX::test_project\nholo-database:h-abc123xxx::test_db",
    "CreateTime": 1736852168000,
    "ModifyTime": 1736852168000
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.