---
title: "Retrieve all job's job instances"
method: GET
path: "/root/{m-wf-id}/workflow/{wf-id}/job/{job-id}/job-instance"
tags: ["Job Instance"]
---

# Retrieve all job's job instances

`GET /root/{m-wf-id}/workflow/{wf-id}/job/{job-id}/job-instance`

## Request

- Base URL: `https://localhost:5000/api/v1/user/unknown`
- URL: `https://localhost:5000/api/v1/user/unknown/root/{m-wf-id}/workflow/{wf-id}/job/{job-id}/job-instance`
- Auth: none declared
- TypeScript: <https://skmtc.dev/pegasus-isi/apis/monitoring-api/docs/root/:m-wf-id/workflow/:wf-id/job/:job-id/job-instance/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns a collection of the Job Instance resource

## Query parameters

- `query` string
- `order` string
- `start-index` integer
- `max-results` integer
- `recent` boolean

## Response `200`

Success

- JobInstance[]
  - `job_instance_id` integer
  - `host_id` integer
  - `job_submit_seq` integer
  - `sched_id` string
  - `site_name` string
  - `user` string
  - `work_dir` string
  - `cluster_start` number
  - `cluster_duration` number
  - `local_duration` number
  - `subwf_id` integer
  - `stdout_text` string
  - `stderr_text` string
  - `stdin_file` string
  - `stdout_file` string
  - `stderr_file` string
  - `multiplier_factor` string
  - `exitcode` string

## Other responses

- `204`: No content
- `400`: Bad request
- `401`: Not authenticated
- `403`: Not authorized
- `default`: Internal server error

---

[API](https://skmtc.dev/pegasus-isi/apis/monitoring-api.md) - [All operations](https://skmtc.dev/pegasus-isi/apis/monitoring-api/llms.txt) - [OpenAPI document](https://skmtc.dev/pegasus-isi/apis/monitoring-api/revisions/0f83c09a8c4a?raw)
