
# 示例2：根据项目ID查看项目下构建任务列表
#### 场景描述
本章将指导您通过API根据项目ID查看项目下构建任务列表。
API的调用方法请参见[如何调用API](https://support.huaweicloud.com/api-codeci/cloudbuild_03_0007.html)。
#### 约束限制
项目已经存在并且构建任务已经在编译构建服务中创建。
#### 涉及接口
通过用户Token、项目ID[查看项目下用户的构建任务列表](https://support.huaweicloud.com/api-codeci/ShowJobListByProjectId.html)。
#### 操作步骤
1. 查看项目下构建任务列表。 
   - 接口信息 URI：GET /v3/{project_id}/jobs
     API文档详情请参见：[查看项目下用户的构建任务列表](https://support.huaweicloud.com/api-codeci/ShowJobListByProjectId.html)
     API Explorer在线调试请参见： [查看项目下用户的构建任务列表](https://apiexplorer.developer.huaweicloud.com/apiexplorer/doc?product=CloudBuild&api=ShowJobListByProjectId)
     
   
   - 请求示例
     ```
     GET  https://cloudbuild-ext.cn-north-1.myhuaweicloud.com/v3/8391ec48637849f384dd3db5c8d61.../jobs?page_index=0&page_size=2
     ```
     
   
   - 响应示例
     ```
     {
         "total": 35,
         "jobs": [{
             "id": "d62d64d7782545c696ffaacc9ac9c69a",
             "job_name": "build-制作镜像并推送到SWR仓库",
             "job_creator": "b7066bfb50194e36b472a61f088bbf72",
             "user_name": "L0_codeci",
             "last_build_time": 1598438571000,
             "health_score": 100,
             "source_code": "codeci",
             "last_build_status": "blue",
             "is_finished": true,
             "disabled": false,
             "favorite": true,
             "is_modify": true,
             "is_delete": true,
             "is_execute": true,
             "is_copy": true,
             "is_forbidden": true,
             "is_view": true
         },
         {
             "id": "4485de11a8e74ffdb9c9f85bafb85f83",
             "job_name": "build-使用SWR公共镜像",
             "job_creator": "b7066bfb50194e36b472a61f088bbf72",
             "user_name": "L0_codeci",
             "last_build_time": 1598438567000,
             "health_score": 100,
             "source_code": "codeci",
             "last_build_status": "blue",
             "is_finished": true,
             "disabled": false,
             "favorite": true,
             "is_modify": true,
             "is_delete": true,
             "is_execute": true,
             "is_copy": true,
             "is_forbidden": true,
             "is_view": true
         }]
     }
     ```
     
   
   
   
   
 
