task
创建Sql扫描任务并提交审核
create and audit a task, you can upload sql content in three ways, any one can be used, but only one is effective.
- formData[sql]: sql content;
- file[input_sql_file]: it is a sql file;
- file[input_mybatis_xml_file]: it is mybatis xml file, sql will be parsed from it.
post/v1/projects/{project_name}/tasks/audits
Request
- Base URL/sqle (relative, and the document was published on a file host, not at the API’s origin)
- URL/sqle/v1/projects/{project_name}/tasks/audits
- AuthAPI key in header Authorization
Path parameters
project_namestring required
project name
Request body multipart/form-data
Response
OK
Example response
{
"data": {
"instance_schema": "db1"
},
"message": "ok"
}Changes
No recorded changes to this operation across all 75 revisions of this API.