---
title: "Get job log by job id"
method: GET
path: "/jobservice/jobs/{job_id}/log"
tags: ["jobservice"]
---

# Get job log by job id

`GET /jobservice/jobs/{job_id}/log`

## Request

- Base URL: `http://localhost/api/v2.0`
- URL: `http://localhost/api/v2.0/jobservice/jobs/{job_id}/log`
- Auth: one of:
  - HTTP basic
  - none
- TypeScript: <https://skmtc.dev/goharbor/apis/harbor-api/docs/jobservice/jobs/:job_id/log/get.ts> (a function with typed inputs; its response is checked against the schema)

Get job log by job id, it is only used by administrator

## Path parameters

- `job_id` string, required

## Headers

- `X-Request-Id` string

## Response `200`

Get job log successfully.

## Other responses

- `401`: Unauthorized. Authentication is required to access this resource.
- `403`: Forbidden. The caller does not have sufficient permission to perform the requested operation.
- `404`: Not found. The requested resource does not exist.
- `500`: Internal server error. Inspect the `errors` array in the response body for details.

---

[API](https://skmtc.dev/goharbor/apis/harbor-api.md) - [All operations](https://skmtc.dev/goharbor/apis/harbor-api/llms.txt) - [OpenAPI document](https://skmtc.dev/goharbor/apis/harbor-api/revisions/6198c63d2dee?raw)
