
# 查询数据处理任务版本的结果展示
#### 功能介绍
查询数据处理任务版本的结果展示。
#### 调试
您可以在[API Explorer](https://console.huaweicloud.com/apiexplorer/#/openapi/ModelArts/doc?api=ListProcessorTaskVersionResults)中调试该接口，支持自动认证鉴权。API Explorer可以自动生成SDK代码示例，并提供SDK代码示例调试功能。
#### URI
GET /v2/{project_id}/processor-tasks/{task_id}/versions/{version_id}/results
表1路径参数 
| 参数         | 是否必选 | 参数类型   | 描述                                                                                               |
|:---|:---|:---|:---|
| project_id | 是    | String | 用户项目ID。获取方法请参见[获取项目ID和名称](https://support.huaweicloud.com/api-modelarts/modelarts_03_0147.html)。 |
| task_id    | 是    | String | 数据处理任务ID。                                                                                        |
| version_id | 是    | String | 数据处理任务的版本ID。                                                                                     |
   
表2Query参数 
| 参数                | 是否必选 | 参数类型    | 描述                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
|:---|:---|:---|:---|
| limit             | 否    | Integer | 指定每一页返回的最大条目数，取值范围\[1,100\]，默认为10。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| offset            | 否    | Integer | 分页列表的起始页，默认为0。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| process_parameter | 否    | String  | 图像缩略设置，同OBS缩略图设置，详见[OBS缩略图设置](https://support.huaweicloud.com/usermanual-obs/obs_01_0430.html)。如：image/resize,m_lfit,h_200表示等比缩放目标缩略图并设置高度为200像素。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| result_property   | 否    | String  | 样本状态，不传或传-1默认返回全部样本。可选值如下： - -1：全部   - 0：保留   - 1：修改   - 2：删除   - 3：新增    |
   
#### 请求参数
无
#### 响应参数
**状态码： 200**
表3响应Body参数 
| 参数       | 参数类型                                                                                                                                | 描述         |
|:---|:---|:---|
| count    | Integer                                                                                                                             | 结果总数。      |
| has_more | Boolean                                                                                                                             | 是否已返回全部结果。 |
| results  | Array of [DescProcessorTaskVersionResultsResp] objects | 分页展示的结果。   |
   
 表4DescProcessorTaskVersionResultsResp 
| 参数                   | 参数类型             | 描述                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
|:---|:---|:---|
| new_source           | String           | 处理后样本的地址。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| origin_source        | String           | 样本的原地址。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| result_description   | Array of objects | 样本的处理描述。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| result_property      | Integer          | 样本的处理状态。可选值如下： - -1：全部   - 0：保留   - 1：修改   - 2：删除   - 3：新增    |
| sample_id            | String           | 样本ID，通过OBS路径的md5生成。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| signed_new_source    | String           | 签名后的处理后样本地址。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| signed_origin_source | String           | 签名后的原样本地址。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| version_id           | String           | 数据处理任务的版本ID。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
   
#### 请求示例
查询数据处理任务版本的结果展示
```
GET https://{endpoint}/v2/{project_id}/processor-tasks/{task_id}/versions/{version_id}/results?offset=0&limit=14&result_property=-1
```
#### 响应示例
**状态码： 200**
OK
```
{
  "count" : 3,
  "results" : [ {
    "sample_id" : "0ac9aee517acbef965f547bb5a3268af",
    "version_id" : "7PoIhUzSk92OglQrTxr",
    "origin_source" : "s3://test-obs/classify/data/animals/8.jpg",
    "new_source" : "obs://test-obs/classify/output/7PoIhUzSk92OglQrTxr/Data/8.jpg",
    "signed_origin_source" : "https://test-obs.obs.xxx.com:443/classify/data/animals/8.jpg?AccessKeyId=P19WXXXXXXXXXXXX5M5&Expires=1606380154&x-obs-security-token=gQpjbi1ub3J0aC03jQ5yFSR1TfKXjeawutgyAnMranimalsNaSkeSBOKK...&Signature=GbnVBZ5JxUWhiAulUzpV9TD835Q%3D",
    "signed_new_source" : "https://test-obs.obs.xxx.com:443/classify/output/7PoIhUzSk92OglQrTxr/Data/8.jpg?AccessKeyId=P19WXXXXXXXXXXXX5M5&Expires=1606380154&x-obs-security-token=gQpjbi1ub3J0aC03jQ5yFSR1TfKXjeawutgyAnMranimalsNaSkeSBOKK...&Signature=Q5stFFFfVx9kykR49S8PPBlFqe0%3D",
    "result_property" : 3,
    "result_description" : [ [ "use AddNoise augmentation" ], [ "result_description to translate" ] ]
  }, {
    "sample_id" : "196799b2d731727b1800b70851fc60b0",
    "version_id" : "7PoIhUzSk92OglQrTxr",
    "origin_source" : "s3://test-obs/classify/data/animals/2.jpg",
    "new_source" : "obs://test-obs/classify/output/7PoIhUzSk92OglQrTxr/Data/2.jpg",
    "signed_origin_source" : "https://test-obs.obs.xxx.com:443/classify/data/animals/2.jpg?AccessKeyId=QEXXXXXXXXWC2YUP2JPK&Expires=1606380154&x-obs-security-token=gQpjbi1ub3J0aC03jdUZcXVRCNOHjWNNWiuu2E9Q...&Signature=6yvhJufi5kQO6UjToQgR0ztP%2Bis%3D",
    "signed_new_source" : "https://test-obs.obs.xxx.com:443/classify/output/7PoIhUzSk92OglQrTxr/Data/2.jpg?AccessKeyId=QEKXXXXXXXXXXXXP2JPK&Expires=1606380154&x-obs-security-token=gQpjbi1ub3J0aC03jdUZcXVRCNOHjWNNWiuu2E...&Signature=Zr%2BAEBDJwKS%2FpS6vzxK7MSzjblA%3D",
    "result_property" : 3,
    "result_description" : [ [ "use AddNoise augmentation" ], [ "result_description to translate" ] ]
  }, {
    "sample_id" : "1dc7351b78dcb24850f71d20267edd0e",
    "version_id" : "7PoIhUzSk92OglQrTxr",
    "origin_source" : "s3://test-obs/classify/data/animals/import_1603716822103/test-obs/classify/output/E8ZLnTQvPBVtbZ6QsAp/Data/13.jpg",
    "new_source" : "obs://test-obs/classify/output/7PoIhUzSk92OglQrTxr/Data/13.jpg",
    "signed_origin_source" : "https://test-obs.obs.xxx.com:443/classify/data/animals/import_1603716822103/test-obs/classify/output/E8ZLnTQvPBVtbZ6QsAp/Data/13.jpg?AccessKeyId=W6TXXXXXXXXXXXXDYKPY&Expires=1606380154&x-obs-security-token=gQpjbi1ub3J0aC03jVVFic8iObvdqZLuWxyIHlAjbJPCTX...&Signature=WV73XnoMkBDoSuVe%2BFSUaP1GxKw%3D",
    "signed_new_source" : "https://test-obs.obs.xxx.com:443/classify/output/7PoIhUzSk92OglQrTxr/Data/13.jpg?AccessKeyId=W6XXXXXXXXXXXXBDYKPY&Expires=1606380154&x-obs-security-token=gQpjbi1ub3J0aC03jVVFic8iObvdqZLuWxyIHlAjbJPCTXeYXkQh8z...&Signature=%2FYsgrsbyrz5ZQrndrQ9QyoHluYQ%3D",
    "result_property" : 3,
    "result_description" : [ [ "use AddNoise augmentation" ], [ "result_description to translate" ] ]
  } ],
  "has_more" : true
}
```
#### 状态码
| 状态码 | 描述           |
|:---|:---|
| 200 | OK           |
| 401 | Unauthorized |
| 403 | Forbidden    |
| 404 | Not Found    |
   
#### 错误码
请参见[错误码](https://support.huaweicloud.com/api-modelarts/modelarts_03_0095.html)。
