{"base_path":"/","components":null,"consumes":"","definitions":{"ErrorResponse":{"properties":{"error_code":{"description":"错误码","example":"CC.00000000","type":"string"},"error_msg":{"description":"错误描述","example":"网络繁忙,请稍后再试","type":"string"}}},"RunRequestV2":{"description":"代码仓相关的信息非必填,主要是用于CodeFever临时仓库使用,不填时直接使用创建任务时已经提供的信息","properties":{"access_token":{"description":"该任务对应临时仓库有权限的用户token","example":"xLD56Vhd8xxxxxJF3Sd43fT","type":"string"},"git_branch":{"description":"该任务对应的临时仓库分支","example":"master","type":"string"},"git_url":{"description":"该任务对应的临时仓库地址","example":"http://github.*******.git","type":"string"},"username":{"description":"该任务对应临时仓库有权限的用户名","example":"test","type":"string"}}},"RunTaskInfoV2":{"properties":{"exec_id":{"description":"执行id","example":"9e16b*********9471ce5d","type":"string"}},"required":["exec_id"]}},"description":null,"group_id":"6e24e1d8225c45beaaeeceee605429ba","host":"codecheck-ext.cn-north-4.myhuaweicloud.com","id":"8c1ed193d5e648c28d11fd13540fda12","info_version":"v2","method":"post","name":"RunTask","parameters":{},"paths":{"/v2/tasks/{task_id}/run":{"post":{"consumes":["application/json"],"deprecated":false,"description":"执行检查任务。","operationId":"RunTask","parameters":[{"description":"通过调用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":"task_id","required":true,"type":"string","x-example":"2b31ed520xxxxxxebedb6e57xxxxxxxx"},{"description":"代码仓相关的信息,主要是用于CodeFever临时仓库使用,不填时直接使用创建任务时已经提供的信息","in":"body","name":"RunTaskV2RequestBody","required":false,"schema":{"$ref":"#/definitions/RunRequestV2"}}],"produces":["application/json"],"responses":{"200":{"description":"Request succeeded!","examples":{"application/json":{"exec_id":"d163535d0*******81d6a7654443e"}},"schema":{"$ref":"#/definitions/RunTaskInfoV2"}},"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":"POST","path":"/codecheck/v2/tasks/{task_id}/run","scheme":"https","timeout":60000},"parameters":[{"description":"逻辑region","in":"HEADER","name":"X-AUTH-REGION","origin":"CONSTANT","value":"cn-north-7"},{"description":"任务ID","in":"path","name":"task_id","origin":"REQUEST","required":true,"type":"string","value":"task_id","x-example":"2b31ed520xxxxxxebedb6e57xxxxxxxx"}],"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":{"access_token":"xLD56xxxxxxxxxJF3Sdxxxx","git_branch":"master","git_url":"http://github.xxxxxxxx.git","username":"test"},"x-request-examples-url-1":"POST https://{endpoint}/v2/tasks/{taskid}/run","x-support-sdk":"Y","x-version":"v2"}}},"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"}