57f8ebfa26
* Adding check-legacy-links-format workflow * Adding test-link-rewrites workflow * chore: updates link checker workflow hash * Migrating links to new format Co-authored-by: Kendall Strautman <kendallstrautman@gmail.com>
60 lines
1.5 KiB
Plaintext
60 lines
1.5 KiB
Plaintext
---
|
|
layout: api
|
|
page_title: System - HTTP API
|
|
description: The /system endpoints are used for system maintenance.
|
|
---
|
|
|
|
# System HTTP API
|
|
|
|
The `/system` endpoints are used to for system maintenance and should not be
|
|
necessary for most users.
|
|
|
|
## Force GC
|
|
|
|
This endpoint initializes a garbage collection of jobs, evaluations, allocations, and
|
|
nodes. This is an asynchronous operation.
|
|
|
|
| Method | Path | Produces |
|
|
| ------ | --------------- | ------------------ |
|
|
| `PUT` | `/v1/system/gc` | `application/json` |
|
|
|
|
The table below shows this endpoint's support for
|
|
[blocking queries](/nomad/api-docs#blocking-queries) and
|
|
[required ACLs](/nomad/api-docs#acls).
|
|
|
|
| Blocking Queries | ACL Required |
|
|
| ---------------- | ------------ |
|
|
| `NO` | `management` |
|
|
|
|
### Sample Request
|
|
|
|
```shell-session
|
|
$ curl \
|
|
--request PUT \
|
|
https://localhost:4646/v1/system/gc
|
|
```
|
|
|
|
## Reconcile Summaries
|
|
|
|
This endpoint reconciles the summaries of all registered jobs.
|
|
|
|
| Method | Path | Produces |
|
|
| ------ | -------------------------------- | ------------------ |
|
|
| `PUT` | `/v1/system/reconcile/summaries` | `application/json` |
|
|
|
|
The table below shows this endpoint's support for
|
|
[blocking queries](/nomad/api-docs#blocking-queries) and
|
|
[required ACLs](/nomad/api-docs#acls).
|
|
|
|
| Blocking Queries | ACL Required |
|
|
| ---------------- | ------------ |
|
|
| `NO` | `management` |
|
|
|
|
### Sample Request
|
|
|
|
```shell-session
|
|
$ curl \
|
|
--request PUT \
|
|
https://localhost:4646/v1/system/reconcile/summaries
|
|
```
|