All Products
Search
Document Center

Data Management:GetTableDesignProjectInfo

Last Updated:Oct 21, 2024

Queries the information about the project and change base database of a schema design ticket, such as the state of the ticket, the ID of the user who created the ticket, and the name and ID of the change base database.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
OrderIdlongYes

The ID of the schema design ticket. You can call the ListOrders operation to obtain the ID.

95****
TidlongNo

The tenant ID.

Note To view the tenant ID, go to the Data Management (DMS) console and move the pointer over the profile picture in the upper-right corner. For more information, see View information about the current tenant section of the "Manage DMS tenants" topic
3***

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The request ID. You can use the request ID to query logs and troubleshoot issues.

48778434-5796-571A-8455-A59146588401
Successboolean

Indicates whether the request was successful. Valid values:

  • true
  • false
true
ErrorMessagestring

The error message returned if the request failed.

UnknownError
ErrorCodestring

The error code returned if the request failed.

UnknownError
ProjectInfoobject

The information about the schema design project.

OrderIdlong

The ticket ID.

95****
ProjectIdlong

The project ID.

12****
GmtCreatestring

The time when the ticket was created.

2024-04-23 02:57:01
GmtModifiedstring

The time when the ticket was last modified.

2024-04-23 02:57:01
Statusstring

The state of the schema design project. Valid values:

  • DESIGN: The schema is being designed.
  • PUBLISHED: The schema is published.
  • CLOSE: The ticket is closed.
DESIGN
Titlestring

The name of the schema design project.

test
Descriptionstring

The description of the schema design project.

test
CreatorIdlong

The ID of the user who created the ticket.

71****
BaseDatabaseobject

The information about the change base database of the schema design ticket.

SearchNamestring

The name that is used to search for the database.

schema_name@127.0.XX.XX
SchemaNamestring

The database name.

bk_atc020
DbIdinteger

The database ID.

11****
Logicboolean

Indicates whether the database is a logical database. Valid values:

  • true
  • false
false
Aliasstring

The alias of the database instance.

poc_test
EnvTypestring

The type of the environment in which the database instance is deployed. Valid values:

  • product: production environment.
  • dev: development environment.
  • pre: pre-release environment.
  • test: test environment.
  • sit: system integration testing (SIT) environment.
  • uat: user acceptance testing (UAT) environment.
  • pet: stress testing environment.
  • stag: staging environment.
dev
DbTypestring

The type of the database. For more information about the valid values of this parameter, see DbType parameter.

POLARDB

Examples

Sample success responses

JSONformat

{
  "RequestId": "48778434-5796-571A-8455-A59146588401",
  "Success": true,
  "ErrorMessage": "UnknownError",
  "ErrorCode": "UnknownError",
  "ProjectInfo": {
    "OrderId": 0,
    "ProjectId": 0,
    "GmtCreate": "2024-04-23 02:57:01",
    "GmtModified": "2024-04-23 02:57:01",
    "Status": "DESIGN",
    "Title": "test",
    "Description": "test",
    "CreatorId": 0,
    "BaseDatabase": {
      "SearchName": "schema_name@127.0.XX.XX",
      "SchemaName": "bk_atc020",
      "DbId": 0,
      "Logic": false,
      "Alias": "poc_test",
      "EnvType": "dev",
      "DbType": "POLARDB"
    }
  }
}

Error codes

For a list of error codes, visit the Service error codes.