{"base_path":"/","components":null,"consumes":"","definitions":{"ErrorResponse":{"properties":{"error_code":{"description":"错误码","example":"CC.00000000","type":"string"},"error_msg":{"description":"错误描述","example":"网络繁忙,请稍后再试","type":"string"}}},"ShowTasksResponseV2":{"properties":{"tasks":{"description":"任务信息","items":{"$ref":"#/definitions/SimpleTaskInfoV2"},"type":"array"},"total":{"description":"总数","example":2,"type":"integer"}}},"SimpleTaskInfoV2":{"properties":{"created_at":{"description":"创建时间","example":"2020-02-20 11:21:11","type":"string"},"creator_id":{"description":"创建者id","example":"a2b9a42ee649xxxx94f5655f8535920e","type":"string"},"git_branch":{"description":"代码仓分支,如果是MR模式,为源分支","example":"portal-ts","type":"string"},"git_url":{"description":"代码仓地址","example":"https://codehub.alpha.devcloud.inhuawei.com/******","type":"string"},"last_check_time":{"description":"上一次检查时间","example":"2020-02-20 11:37:46","type":"string"},"task_id":{"description":"任务id","example":"b9db371361724xxxx6937f3280df1d4fc4","type":"string"},"task_name":{"description":"任务名字","example":"test","type":"string"}}}},"description":null,"group_id":"6e24e1d8225c45beaaeeceee605429ba","host":"codecheck-ext.cn-north-4.myhuaweicloud.com","id":"a3ce5c8b034d4559ba965b4074e85a47","info_version":"v2","method":"get","name":"ShowTaskListByProjectId","parameters":{},"paths":{"/v2/{project_id}/tasks":{"get":{"consumes":["application/json"],"deprecated":false,"description":"根据DEVCLOUD_PROJECT_UUID查询该项目下的任务列表。","operationId":"ShowTaskListByProjectId","parameters":[{"description":"用户Token\n\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"},{"allowEmptyValue":true,"default":0,"description":"分页索引,偏移量","format":"int32","in":"query","minimum":0,"name":"offset","type":"integer","x-example":1},{"allowEmptyValue":true,"default":10,"description":"每页显示的数量,每页最多显示100条","format":"int32","in":"query","maximum":100,"minimum":1,"name":"limit","type":"integer","x-example":1}],"produces":["application/json"],"responses":{"200":{"description":"Request succeeded!","examples":{"application/json":{"tasks":[{"created_at":"2020-02-20 11:21:11","creator_id":"ecadebb5041***9780f3d905e20","git_branch":"master","git_url":"git@codehub.dev****_02201119.git","last_check_time":"2020-02-20 11:37:46","task_id":"435b58e********d01c94a6","task_name":"CSharp_02201119"},{"created_at":"2020-02-20 11:21:11","creator_id":"ecadebb3664*****","git_branch":"master","git_url":"git@codehub.dev****_02201119.git","last_check_time":"2020-02-20 11:37:46","task_id":"435b58343tg5g36907c1384d01c94a6","task_name":"CSharp_066"}],"total":2}},"schema":{"$ref":"#/definitions/ShowTasksResponseV2"}},"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/v2/{project_id}/tasks","scheme":"https","timeout":60000},"parameters":[{"description":"逻辑region","in":"header","name":"X-AUTH-REGION","origin":"CONSTANT","value":"cn-north-7"},{"description":"项目uuid","in":"path","name":"project_id","origin":"REQUEST","value":"project_id"},{"description":"分页索引","in":"query","name":"offset","origin":"REQUEST","value":"offset"},{"description":"每页条目数","in":"query","name":"limit","origin":"REQUEST","value":"limit"}],"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-description-1":"","x-request-examples-url-1":"GET https://{endpoint}/v2/{task_id}/tasks","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"}