---
title: "Get purge's schedule."
method: GET
path: "/system/purgeaudit/schedule"
tags: ["purge"]
---

# Get purge's schedule.

`GET /system/purgeaudit/schedule`

This endpoint is for get schedule of purge job.

## Headers

- `X-Request-Id` string

## Response `200`

Get purge job's schedule.

- ExecHistory
  - `id` integer — the id of purge job.
  - `job_name` string — the job name of purge job.
  - `job_kind` string — the job kind of purge job.
  - `job_parameters` string — the job parameters of purge job.
  - `schedule` ScheduleObj
    - `type` 'Hourly' | 'Daily' | 'Weekly' | 'Custom' | 'Manual' | 'None' | 'Schedule' — The schedule type. The valid values are 'Hourly', 'Daily', 'Weekly', 'Custom', 'Manual', 'None' and 'Schedule'. 'Manual' means to trigger it right away, 'Schedule' means to trigger it by a specified cron schedule and 'None' means to cancel the schedule.
    - `cron` string — A cron expression, a time-based job scheduler.
    - `next_scheduled_time` string, date-time — The next time to schedule to run the job.
  - `job_status` string — the status of purge job.
  - `deleted` boolean — if purge job was deleted.
  - `creation_time` string, date-time — the creation time of purge job.
  - `update_time` string, date-time — the update time of purge job.

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `500` — Internal server error

---

[API](https://skmtc.dev/cerit/apis/harbor-api.md) · [All operations](https://skmtc.dev/cerit/apis/harbor-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cerit/harbor-api/revisions/62d78801f8df/schema)
