{"base_path":"/","components":null,"consumes":"[\"application/json;charset=UTF-8\"]","definitions":{"DataClassificationRuleOperateDTO":{"example":{"builtin_rule_id":null,"category_id":"0cce38e7c28547828905ae9e4f10a4bf","column_expression":"testExpress","commit_expression":"testCommit","content_expression":"testContent","description":"testDess","method":"REGULAR","name":"Special_Administrative_Region_test","rule_type":"CUSTOM","secrecy_level_id":"8a9480ad7e992660017e9a381244000d"},"properties":{"builtin_rule_id":{"description":"内置规则id","maxLength":128,"minLength":1,"type":"string"},"category_id":{"description":"分类ID","maxLength":128,"minLength":1,"type":"string"},"column_expression":{"description":"列表达式","maxLength":4096,"minLength":1,"type":"string"},"commit_expression":{"description":"备注表达式","maxLength":4096,"minLength":1,"type":"string"},"content_expression":{"description":"内容表达式","maxLength":4096,"minLength":1,"type":"string"},"description":{"description":"规则描述","maxLength":4096,"minLength":0,"type":"string"},"method":{"description":"规则方式, REGULAR, NONE, DEFAULT","enum":["REGULAR","NONE","DEFAULT"],"type":"string"},"name":{"description":"规则名称","maxLength":128,"minLength":1,"type":"string"},"rule_type":{"description":"规则类型, CUSTOM, BUILTIN","enum":["CUSTOM","BUILTIN"],"type":"string"},"secrecy_level_id":{"description":"密级ID","maxLength":128,"minLength":1,"type":"string"}},"required":["rule_type","secrecy_level_id","name"],"type":"object"},"DataClassificationRuleQueryDTO":{"example":{"builtin_rule_id":null,"category_id":"0cce38e7c28547828905ae9e4f10a4bf","column_expression":null,"combine_expression":"A&&B","commit_expression":null,"content_expression":".*","created_at":1698633124002,"created_by":"chenxiaoyu","description":"","enable":true,"guid":null,"instance_id":"dd97167b873d4a79b2aad54d4370a3bc","match_type":null,"method":"REGULAR","name":"matchRules","project_id":"0833a5737480d53b2f25c010dc1a7b88","rule_type":"CUSTOM","secrecy_level":"asd","secrecy_level_num":1,"updated_at":1698633124002,"updated_by":"chenxiaoyu","uuid":"8a94800e8b753a35018b7e6be6950023"},"properties":{"builtin_rule_id":{"description":"内置规则ID","maxLength":128,"minLength":1,"type":"string"},"category_id":{"description":"分类ID","maxLength":128,"minLength":1,"type":"string"},"column_expression":{"description":"列表达式","maxLength":4096,"minLength":1,"type":"string"},"combine_expression":{"description":"条件表达式","maxLength":4096,"minLength":1,"type":"string"},"commit_expression":{"description":"备注表达式","maxLength":4096,"minLength":1,"type":"string"},"content_expression":{"description":"内容表达式","maxLength":4096,"minLength":1,"type":"string"},"created_at":{"description":"策略创建时间","format":"int64","maximum":2147483647,"minimum":0,"type":"integer"},"created_by":{"description":"策略创建人","maxLength":128,"minLength":1,"type":"string"},"description":{"description":"规则描述","maxLength":4096,"minLength":0,"type":"string"},"enable":{"description":"规则是否开启","type":"boolean"},"guid":{"description":"guid","maxLength":128,"minLength":1,"type":"string"},"instance_id":{"description":"实例ID","maxLength":128,"minLength":1,"type":"string"},"match_type":{"description":"匹配类型","maxLength":128,"minLength":1,"type":"string"},"method":{"description":"规则方式, REGULAR, NONE, DEFAULT, COMBINE","enum":["REGULAR","NONE","DEFAULT","COMBINE"],"type":"string"},"name":{"description":"规则名称","maxLength":128,"minLength":1,"type":"string"},"project_id":{"description":"项目ID","maxLength":128,"minLength":1,"type":"string"},"rule_type":{"description":"规则类型, CUSTOM, BUILTIN","enum":["CUSTOM","BUILTIN"],"type":"string"},"secrecy_level":{"description":"密级","maxLength":128,"minLength":1,"type":"string"},"secrecy_level_num":{"description":"密级层级","format":"int64","maximum":128,"minimum":1,"type":"integer"},"updated_at":{"description":"策略更新时间","format":"int64","maximum":2147483647,"minimum":0,"type":"integer"},"updated_by":{"description":"策略更新人","maxLength":128,"minLength":1,"type":"string"},"uuid":{"description":"规则ID","maxLength":128,"minLength":1,"type":"string"}},"type":"object"},"ErrorResponse":{"properties":{"error_code":{"description":"错误码","example":"DLS.1000","maxLength":128,"minLength":1,"type":"string"},"error_msg":{"description":"错误描述","example":"process failed","maxLength":10240,"minLength":1,"type":"string"}},"type":"object"}},"description":null,"group_id":"23bb69798aaf409da161a43a90617121","host":"dayu.cn-north-4.myhuaweicloud.com","id":"ebbfcbacd2334f70835f144f0a240da1","info_version":"v1","method":"post","name":"CreateSecurityDataClassificationRule","parameters":{"X-Auth-Token":{"description":"token","in":"header","maxLength":10240,"minLength":1,"name":"X-Auth-Token","required":true,"type":"string"},"project_id":{"description":"project id","in":"path","maxLength":128,"minLength":1,"name":"project_id","required":true,"type":"string"},"workspace":{"description":"DataArts Studio工作空间ID","in":"header","maxLength":128,"minLength":1,"name":"workspace","required":true,"type":"string"}},"paths":{"/v1/{project_id}/security/data-classification/rule":{"post":{"description":"创建识别规则","operationId":"CreateSecurityDataClassificationRule","parameters":[{"$ref":"#/parameters/project_id"},{"$ref":"#/parameters/workspace"},{"$ref":"#/parameters/X-Auth-Token"},{"description":"敏感数据识别规则传输层DTO对象","in":"body","name":"CreateSecurityDataClassificationRuleRequestBody","required":true,"schema":{"$ref":"#/definitions/DataClassificationRuleOperateDTO"}}],"produces":["application/json"],"responses":{"200":{"description":"ok","examples":{"application/json":{"builtin_rule_id":null,"category_id":"0cce38e7c28547828905ae9e4f10a4bf","column_expression":null,"commit_expression":null,"content_expression":".*","created_at":1698633124002,"created_by":"chenxiaoyu","description":"","enable":true,"guid":null,"instance_id":"dd97167b873d4a79b2aad54d4370a3bc","match_type":null,"method":"REGULAR","name":"matchRules","project_id":"0833a5737480d53b2f25c010dc1a7b88","rule_type":"CUSTOM","secrecy_level":"asd","secrecy_level_num":1,"updated_at":1698633124002,"updated_by":"chenxiaoyu","uuid":"8a94800e8b753a35018b7e6be6950023"}},"schema":{"$ref":"#/definitions/DataClassificationRuleQueryDTO"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ErrorResponse"}}},"summary":"创建识别规则","tags":["识别规则接口"],"x-is-registered":"Y","x-request-examples-1":{"category_id":"0cce38e7c28547828905ae9e4f10a4bf","content_expression":"testExpression","description":"testModifyDes","method":"REGULAR","name":"Special_Administrative_Region_test","rule_type":"CUSTOM","secrecy_level_id":"8a9480ad7e992660017e9a381244000d"},"x-request-examples-url-1":"/v1/0833a5737480d53b2f25c010dc1a7b88/security/data-classification/rule","x-support-sdk":"Y"}}},"product_short":"DataArtsStudio","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"创建识别规则","tags":"识别规则接口","uri":null,"version":"2.0"}