
# 查询流水线部署记录
#### 功能介绍
此API用于查询流水线的部署记录。
#### URI
GET /cpepipeline/v2/pipelines/{pipeline_id}/records
表1路径参数 
| 参数          | 是否必选 | 参数类型   | 描述                                                                                                   |
|:---|:---|:---|:---|
| pipeline_id | 是    | String | 流水线ID。获取方法，请参考[查询流水线列表](https://support.huaweicloud.com/api-servicestage/servicestage_06_0294.html)。 |
   
#### 请求消息
表2请求Header参数 
| 参数           | 是否必选 | 参数类型   | 描述                                                                                                                                           |
|:---|:---|:---|:---|
| Content-Type | 是    | String | 消息体的类型（格式），默认取值为"application/json;charset=utf8"。                                                                                             |
| X-Auth-Token | 是    | String | 调用接口的认证方式分为Token和AK/SK两种，如果您使用的Token方式，此参数为必填，请填写Token的值。Token获取方式，请参考[获取用户Token](https://support.huaweicloud.com/api-iam/iam_30_0001.html)。 |
   
#### 响应消息
表3响应参数 
| 参数       | 参数类型             | 描述                                                       |
|:---|:---|:---|
| \[数组元素\] | Array of objects | 执行记录，详情请见[表4]。 |
   
 表4records 
| 参数          | 参数类型    | 描述      |
|:---|:---|:---|
| id          | Integer | 执行历史ID。 |
| version     | Integer | 执行版本。   |
| trigger     | String  | 执行者     |
| triggerType | Integer | 执行类型。   |
| triggerAt   | Integer | 执行时间。   |
| status      | Integer | 执行状态。   |
   
#### 请求示例
无
#### 响应示例
```
[
    {
        "id": 288506,
        "version": 1,
        "trigger": "test",
        "triggerType": 0,
        "triggerAt": 1753080264252,
        "status": 2
    }
]
```
#### 状态码
| 状态码 | 描述       |
|:---|:---|
| 200 | 操作成功。    |
| 400 | 错误的请求。   |
| 404 | 请求对象不存在。 |
| 500 | 内部错误。    |
   
#### 错误码
请参考[ServiceStage错误码](https://support.huaweicloud.com/api-servicestage/servicestage_06_0162.html)。
