rule_template

获取自定义规则

get custom rule by rule_id

get/v1/custom_rules/{rule_id}

Request

  • Base URL
    /sqle (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /sqle/v1/custom_rules/{rule_id}
  • Auth
    API key in header Authorization

Path parameters

rule_idstring required

rule id

Response

OK

codeinteger
messagestring

Example response

{
  "data": {
    "annotation": "this is test rule",
    "db_type": "MySQL",
    "desc": "this is test rule",
    "level": "notice",
    "type": "DDL规则"
  },
  "message": "ok"
}

Changes

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