Checking All SQL Templates
Function
This API is used to check all SQL templates saved by a user.
URI
- URI format
- Parameter description
Table 1 URI parameter Parameter
Mandatory
Type
Description
project_id
Yes
String
Project ID, which is used for resource isolation. For details about how to obtain its value, see Obtaining a Project ID.
Table 2 query parameters Parameter
Mandatory
Type
Description
keyword
No
String
Keyword of SQL template names
Request
None
Response
Parameter |
Type |
Description |
---|---|---|
is_success |
Boolean |
Whether the request is successful. |
message |
String |
System prompt. If execution succeeds, the message may be left blank. If the execution fails, the value will be the cause of the failure. |
sql_count |
Int |
Total number of SQL templates |
sqls |
Array of Object |
SQL template information. For details, see Table 4. |
Example Request
None
Example Response
{ "is_success": true, "message": "", "sql_count": 1, "sqls": [ { "description": "use to select t1", "owner": "tenant1", "sql": "select * from t1", "sql_id": "1994b029-3f76-4281-9e35-e370cb4ee26d1501998934432", "sql_name": "sql1", "group": "" } ] }
Status Codes
Status Code |
Description |
---|---|
200 |
OK |
Error Codes
For details, see Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.