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
  • Auth
    API key in header Authorization

Path parameters

project_namestring required

project name

Request body

audit_plan_cronstring
audit_plan_instance_databasestring
audit_plan_instance_namestring
audit_plan_instance_typestring
audit_plan_namestring
audit_plan_typestring
rule_template_namestring

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

codeinteger
messagestring

Example response

{
  "message": "ok"
}

Changes

No recorded changes to this operation across all 75 revisions of this API.