
# 查询execution
get_execution(execution_id)
#### 功能描述
查询特定execution执行结果。
#### 输入参数
| 参数           | 是否必选 | 参数类型   | 参数描述                                                                                                                   |
|:---|:---|:---|:---|
| execution_id | 是    | String | execution id，[create_execution](https://support.huaweicloud.com/sdkreference-gcs/gcs_sdkreference_007_006.html)接口的返回值。 |
   
#### 返回值
响应中含有一个execution结构，建议通过response.json()方式获取返回值，结构如[表1]所示。
 表1返回值 
| 参数                 | 参数类型       | 参数描述                                                                   |
|:---|:---|:---|
| execution          | JSONObject | execution基本属性，详见[表3]。  |
| metadata           | JSONObject | cromwell metadata                                                      |
| status             | JSONObject | 节点状态，详见[表4]， 如果为空，则不返回。 |
| enterprise_project | JSONObjec  | 企业项目，详见表[表2]            |
   
 表2enterprise_project 
| 参数   | 参数类型   | 描述      |
|:---|:---|:---|
| id   | String | 企业项目id  |
| name | String | 企业项目的名称 |
   
 表3Execution基本属性 
| 参数                | 参数类型       | 描述                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
|:---|:---|:---|
| guid              | String     | execution guid。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| name              | String     | execution名称。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| namespace         | String     | execution所属命名空间。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| project_id        | String     | execution所属项目ID。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| domain_id         | String     | execution所属租户ID。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| status            | String     | execution状态： - Running：执行中  - Aborting：停止中  - Deleting： 删除中  - Submitted：已提交  - Succeeded：执行成功  - Failed：执行失败  - Aborted：已停止   |
| workflow_name     | String     | 若使用GCS中的wdl流程提交，该字段表示流程名称；若使用其他方式提交，该字段表示wdl文件名称                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| wdl_name          | String     | 该execution所使用的workflow的名称                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| workflow_id       | String     | 若用GCS中的wdl流程提交任务，该字段表示该流程的ID                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| inputs_json       | String     | execution输入。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| outputs_json      | String     | execution输出。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| image             | String     | 流程拓扑图。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| time_duration     | int        | 处理持续时间。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| target            | String     | execution的运行环境                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| create_at         | String     | execution创建时间。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| update_at         | String     | execution更新时间。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| task_status       | String     | 任务状态，详见[表4]， 如果为空，则不返回。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| engine_deployment | String     | cromwell对应的无状态负载名称                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| env_guid          | String     | execution执行环境id                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| node_number       | int        | 流程任务数量                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| metadata_json     | String     | cromwell metadata                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| resources         | Dictionary | execution消耗的资源（CPU，Memory，GPU等）以及时间比，该时间比表示execution的实际执行时间所占总时间（包括执行时间、调度时间、失败处理时间等时间总和）的百分比，其中百分号已省略。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| tae_resources     | Dictionary | execution重试消耗的资源（CPU，Memory，GPU等)以及时间比，该时间比表示execution的重试执行时间所占总时间（包括重试执行时间、调度时间、失败处理时间等时间总和）的百分比，其中百分号已省略。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
   
 表4task_status 
| 参数                   | 参数类型                                                            | 描述             |
|:---|:---|:---|
| node_number          | int                                                             | excution中步骤数量。 |
| finished_node_number | int                                                             | 已完成步骤个数。       |
| actual_node_status   | JSONObject，详见[表5] | 各步骤的状态。        |
   
 表5actual_node_status 
| 参数                   | 参数类型   | 描述                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
|:---|:---|:---|
| name                 | String | 节点名称。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| status               | String | 该操作步骤的执行状态： - Pending：等待处理中  - Running：处理中  - Cancelling：取消中  - ForceCancelling：强制取消中  - Retrying：重试中  - Succeeded：执行成功  - Failed：执行失败  - Cancelled：取消   |
| sub_job_num          | int    | 子job的数量。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| finished_sub_job_num | int    | 已完成子job的数量。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| sub_job_status       | map    | 子job的状态： - Submitted：已提交  - Aborted：已停止  - Aborting：停止中  - Done：已完成  - QueuedInCromwell：等待执行  - Starting：执行中  - Failed：执行失败                                                                                                         |
| time_duration        | int    | 持续时间。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| resources            | map    | job在持续时间内的资源消耗情况： - CPU：单位为"ch"（核数\*秒数）  - GPU：单位为"ch"（核数\*秒数）  - Memory：单位为"gs"(内存数\*秒数，内存单位为g)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
   
