audit_plan
添加扫描任务
create audit plan
post/v1/projects/{project_name}/audit_plans
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}/audit_plans
- AuthAPI key in header Authorization
Path parameters
project_namestring required
project name
Request body
Example request
{
"audit_plan_cron": "0 */2 * * *",
"audit_plan_instance_database": "app1",
"audit_plan_instance_name": "test_mysql",
"audit_plan_instance_type": "mysql",
"audit_plan_name": "audit_plan_for_java_repo_1",
"audit_plan_type": "slow log",
"rule_template_name": "default_MySQL"
}Response
OK
Example response
{
"message": "ok"
}Changes
No recorded changes to this operation across all 75 revisions of this API.