---
title: "Inspect an exec instance"
method: GET
path: "/exec/{id}/json"
tags: ["Exec"]
---

# Inspect an exec instance

`GET /exec/{id}/json`

Return low-level information about an exec instance.

## Path parameters

- `id` string, required

## Response `200`

No error

- ContainerExecInspect — holds information about a running process started.
  - `ID` string, required — The ID of this exec
  - `Running` boolean, required
  - `ExitCode` integer, required — The last exit code of this container
  - `ProcessConfig` ProcessConfig, required — ExecProcessConfig holds information about the exec process.
    - `privileged` boolean, required
    - `user` string, required
    - `tty` boolean, required
    - `entrypoint` string, required
    - `arguments` string[], required
  - `OpenStdin` boolean, required
  - `OpenStderr` boolean, required
  - `OpenStdout` boolean, required
  - `CanRemove` boolean, required
  - `ContainerID` string, required — The ID of this container
  - `DetachKeys` string, required

## Other responses

- `404` — An unexpected 404 error occurred.
- `500` — An unexpected server error occurred.

---

[API](https://skmtc.dev/aliyun/apis/pouch-engine-api.md) · [All operations](https://skmtc.dev/aliyun/apis/pouch-engine-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/aliyun/pouch-engine-api/revisions/36d75b2825fc/schema)
