Obtaining the Column List of a Database Table
Function
This API is used to obtain the column list of a specified table based on database information.
Calling Method
For details, see Calling APIs.
URI
POST /v1/{project_id}/sdg/server/mask/dbs/rdbs/tables/columns
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Unique project ID. |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
type |
Yes |
String |
Database type |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
db_id |
No |
String |
Unique ID of a database. |
|
db_name |
No |
String |
Database name |
|
schema |
No |
String |
Database mode |
|
sequence |
No |
String |
Sorting field of the database table. |
|
table_name |
No |
String |
Database table name. |
Response Parameters
Status code: 200
Query result
Status code: 201
Resource creation.
None
Example Requests
POST /v1/{project_id}/sdg/server/mask/dbs/rdbs/tables/columns
{
"db_id" : "string",
"db_name" : "string",
"schema" : "string",
"sequence" : "string",
"table_name" : "string"
}
Example Responses
None
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
Query result |
|
201 |
Resource creation. |
|
401 |
Unauthorized. |
|
403 |
Access denied. |
|
404 |
Resource not found. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot