huawei-cloud-api-definitions-DataArtsStudio 0.1.20250411

Huawei Cloud API definitions, generated from OpenAPI spec
Documentation
1
{"base_path":"/","components":null,"consumes":"[\"application/json;charset=UTF-8\"]","definitions":{"DataClassificationCombineRuleDTO":{"example":{"category_id":"0cce38e7c28547828905ae9e4f10a4bf","combine_expression":"A&&B","description":"testDess","enable":true,"name":"Special_Administrative_Region_test","secrecy_level_id":"8a9480ad7e992660017e9a381244000d","single_expressions":[{"algorithm_type":"REGEX","expression":"a*","match_type":"CONTENT","rule_code":"A"},{"algorithm_type":"LENGTH_EQ","expression":11,"match_type":"TABLE_COMMENT","rule_code":"B"}]},"properties":{"category_id":{"description":"分类ID","maxLength":128,"minLength":1,"type":"string"},"combine_expression":{"description":"条件表达式","maxLength":128,"minLength":1,"type":"string"},"description":{"description":"规则描述","maxLength":4096,"minLength":0,"type":"string"},"enable":{"description":"使能状态。","type":"boolean"},"name":{"description":"规则名称","maxLength":128,"minLength":1,"type":"string"},"secrecy_level_id":{"description":"密级ID","maxLength":128,"minLength":1,"type":"string"},"single_expressions":{"description":"条件单规则","items":{"$ref":"#/definitions/DataClassificationSingleRuleDTO"},"maxItems":5,"minItems":1,"type":"array"}},"required":["name","secrecy_level_id","combine_expression","single_expressions"],"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"},"DataClassificationSingleRuleDTO":{"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":{"algorithm_type":{"description":"算法类型, REGEX,REGEX_INSENSITIVE,GROOVY,LENGTH_EQ,LENGTH_GT,LENGTH_LT,BUILTIN","enum":["REGEX","REGEX_INSENSITIVE","GROOVY","LENGTH_EQ","LENGTH_GT","LENGTH_LT","BUILTIN"],"maxLength":128,"minLength":1,"type":"string"},"builtin_rule_id":{"description":"内置规则ID","maxLength":128,"minLength":1,"type":"string"},"expression":{"description":"expression","maxLength":65535,"minLength":1,"type":"string"},"match_type":{"description":"匹配类型, CONTENT,COLUMN,COMMIT,TABLE_NAME,TABLE_COMMENT,DATABASE_NAME","enum":["CONTENT","COLUMN","COMMIT","TABLE_NAME","TABLE_COMMENT","DATABASE_NAME"],"maxLength":128,"minLength":1,"type":"string"},"rule_code":{"description":"规则序号,大写字母","maxLength":128,"minLength":1,"type":"string"}},"required":["rule_code","algorithm_type","match_type","expression"],"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":"eda25aa65f0e464ab31ab3d34c359a49","info_version":"v1","method":"post","name":"CreateSecurityDataClassificationCombineRule","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/combine":{"post":{"description":"创建组合识别规则","operationId":"CreateSecurityDataClassificationCombineRule","parameters":[{"$ref":"#/parameters/project_id"},{"$ref":"#/parameters/workspace"},{"$ref":"#/parameters/X-Auth-Token"},{"description":"敏感数据识别组合规则传输层DTO对象","in":"body","name":"CreateSecurityDataClassificationCombineRuleRequestBody","required":true,"schema":{"$ref":"#/definitions/DataClassificationCombineRuleDTO"}}],"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,"groups":null,"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","combine_expression":"A&&B","description":"testModifyDes","name":"Special_Administrative_Region_test","secrecy_level_id":"8a9480ad7e992660017e9a381244000d","single_expressions":[{"algorithm_type":"REGEX","expression":"a*","match_type":"CONTENT","rule_code":"A"},{"algorithm_type":"LENGTH_EQ","expression":11,"match_type":"TABLE_COMMENT","rule_code":"B"}]},"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"}