{"base_path":"/","components":null,"consumes":"","definitions":{"ErrorResponse":{"properties":{"error_code":{"description":"错误码","example":"CC.00000000","type":"string"},"error_msg":{"description":"错误描述","example":"网络繁忙,请稍后再试","type":"string"}}},"TaskRulesetInfo":{"properties":{"language":{"description":"规则集语言","example":"Java","type":"string"},"status":{"description":"规则集属性0 是默认用户规则集,1 是系统默认规则集","example":"1","type":"string"},"template_id":{"description":"规则集id","example":"99f573075fe24e769ad96c676511c823","type":"string"},"template_name":{"description":"规则集名称","example":"自定义规则集","type":"string"},"type":{"description":"规则集状态optional:可选,selected:已选","example":"selected","type":"string"}}},"TaskRulesetResponse":{"properties":{"info":{"description":"规则集信息","items":{"$ref":"#/definitions/TaskRulesetInfo"},"type":"array"},"total":{"description":"总数","example":10,"type":"integer"}}}},"description":null,"group_id":"6e24e1d8225c45beaaeeceee605429ba","host":"codecheck-ext.cn-north-4.myhuaweicloud.com","id":"943818a0ebe944b480481693505b79fc","info_version":"v2","method":"get","name":"ShowTasksRulesets","parameters":{},"paths":{"/v3/{project_id}/tasks/{task_id}/rulesets":{"get":{"consumes":["application/json"],"deprecated":false,"description":"查询任务的已选规则集列表。","operationId":"ShowTasksRulesets","parameters":[{"description":"设置媒体类型和编码格式","in":"header","name":"Content-Type","required":true,"type":"string","x-example":"application/json;charset=UTF-8"},{"description":"用户Token\n通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)。","in":"header","maxLength":100000,"minLength":1,"name":"X-Auth-Token","required":true,"type":"string","x-example":"MIIDkgYJKoZIhvcNAQcCoIIDgzCCXXXXX..."},{"description":"项目ID","in":"path","name":"project_id","required":true,"type":"string","x-example":"2b31ed520xxxxxxebedb6e57xxxxxxxx"},{"description":"任务ID","in":"path","name":"task_id","required":true,"type":"string","x-example":"2b31ed520xxxxxxebedb6e57xxxxxxxx"},{"allowEmptyValue":true,"default":0,"description":"分页索引,偏移量","format":"int32","in":"query","minimum":0,"name":"offset","type":"integer","x-example":1},{"allowEmptyValue":true,"default":10,"description":"每页显示的数量,每页最多显示1000条","format":"int32","in":"query","maximum":1000,"minimum":1,"name":"limit","type":"integer","x-example":1}],"produces":["application/json"],"responses":{"200":{"description":"Request succeeded!","schema":{"$ref":"#/definitions/TaskRulesetResponse"}},"400":{"description":"Bad Request","examples":{"application/json":{"error_code":"CC.00000000","error_msg":"网络繁忙,请稍后再试"}},"schema":{"$ref":"#/definitions/ErrorResponse"}},"401":{"description":"Unauthorized","examples":{"application/json":{"error_code":"CC.00000003","error_msg":"认证信息过期"}},"schema":{"$ref":"#/definitions/ErrorResponse"}}},"security":[{"apig-auth-iam":[]}],"summary":"查询任务的已选规则集列表","tags":["任务管理"],"x-apigateway-backend":{"httpEndpoints":{"address":"10.63.38.190:40115","description":"","method":"GET","path":"/codecheck/v3/{project_id}/tasks/{task_id}/rulesets","scheme":"https","timeout":60000},"parameters":[{"description":"逻辑region","in":"header","name":"X-AUTH-REGION","origin":"CONSTANT","value":"cn-north-7"}],"type":"HTTP"},"x-apigateway-cors":false,"x-apigateway-match-mode":"NORMAL","x-apigateway-request-type":"public","x-is-registered":"Y","x-name":"查询任务的已选规则集列表","x-request-examples-1":"PUT https://{endpoint}/v3/{project_id}/tasks/{task_id}/rulesets","x-request-examples-description-1":"","x-support-sdk":"Y","x-version":"v3"}}},"product_short":"CodeCheck","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":{"apig-auth-app":{"in":"header","name":"Authorization","type":"apiKey","x-apigateway-auth-type":"AppSigv1"},"apig-auth-app-optional":{"in":"header","name":"Authorization","type":"apiKey","x-apigateway-auth-opt":{"access-auth-type":"optional"},"x-apigateway-auth-type":"AppSigv1"},"apig-auth-iam":{"in":"header","name":"unused","type":"apiKey","x-apigateway-auth-type":"IAM"},"apig-auth-iam-none":{"in":"header","name":"unused","type":"apiKey","x-apigateway-auth-type":"IAM_NONE"}},"summary":"查询任务的已选规则集列表","tags":"任务管理","uri":null,"version":"2.0"}