Zum Inhalt springen

REST-API: Storage

Als Markdown ansehen

Erzeugt aus dem OpenAPI-Dokument des Daemons. Konventionen, Anmeldung, der CSRF-Header und der WebSocket stehen unter API.

Administrators only. Current storage alerts with the caller’s mute flags, and the SMART state of every disk; live through the storage/alerts topic.

Antworten

Jeder Fehler antwortet mit Problem Details (application/problem+json) und einem stabilen Code aus der Fehlerreferenz.

Administrators only. Hides a current alert for the caller until it goes away or becomes more severe. Alerts cannot be deleted.

Parameter

Name Ort Typ Pflicht Beschreibung
key path string ja

Antworten

Jeder Fehler antwortet mit Problem Details (application/problem+json) und einem stabilen Code aus der Fehlerreferenz.

Administrators only. Shows a muted alert again.

Parameter

Name Ort Typ Pflicht Beschreibung
key path string ja

Antworten

Jeder Fehler antwortet mit Problem Details (application/problem+json) und einem stabilen Code aus der Fehlerreferenz.

Administrators only. Every disk with the disk guard’s verdict: whether a new pool may use it, and why not.

Antworten

Jeder Fehler antwortet mit Problem Details (application/problem+json) und einem stabilen Code aus der Fehlerreferenz.

Administrators only. Looks for pools on the disks that are not imported (zpool import, which reads every disk’s labels and may wake a sleeping disk) and returns each with its layout and the disk guard’s import verdict. Imports nothing; importing is the plan pool.import.readonly, then pool.import.

Antworten

Jeder Fehler antwortet mit Problem Details (application/problem+json) und einem stabilen Code aus der Fehlerreferenz.

Administrators only. Probes the chosen disks, asks the disk guard and returns the exact commands of a destructive storage action, with a plan id to run them. Runs nothing.

Anfrage-Body: application/json: StoragePlanRequest

Antworten

Jeder Fehler antwortet mit Problem Details (application/problem+json) und einem stabilen Code aus der Fehlerreferenz.

Administrators only. Runs a plan exactly as it was shown, as a job; the disk guard checks every disk again right before each command. A plan runs once and expires after 10 minutes.

Parameter

Name Ort Typ Pflicht Beschreibung
planId path string ja

Antworten

  • 202: application/json: Job

Jeder Fehler antwortet mit Problem Details (application/problem+json) und einem stabilen Code aus der Fehlerreferenz.

Administrators only. Pools with their vdevs, and datasets, as last read; live through the storage/pools topic.

Antworten

Jeder Fehler antwortet mit Problem Details (application/problem+json) und einem stabilen Code aus der Fehlerreferenz.

Administrators only. Starts a scrub of the pool, or resumes a paused one, and returns at once; progress arrives on storage/pools.

Parameter

Name Ort Typ Pflicht Beschreibung
pool path string ja

Antworten

  • 204

Jeder Fehler antwortet mit Problem Details (application/problem+json) und einem stabilen Code aus der Fehlerreferenz.

Administrators only. Stops the running scrub; the next one starts from the beginning.

Parameter

Name Ort Typ Pflicht Beschreibung
pool path string ja

Antworten

  • 204

Jeder Fehler antwortet mit Problem Details (application/problem+json) und einem stabilen Code aus der Fehlerreferenz.

Administrators only. Pauses the running scrub; starting it again resumes where it stopped.

Parameter

Name Ort Typ Pflicht Beschreibung
pool path string ja

Antworten

  • 204

Jeder Fehler antwortet mit Problem Details (application/problem+json) und einem stabilen Code aus der Fehlerreferenz.

Administrators only. Scrub schedules per pool and the SMART self-test schedules, with their last and next runs.

Antworten

Jeder Fehler antwortet mit Problem Details (application/problem+json) und einem stabilen Code aus der Fehlerreferenz.

Administrators only. Sets how often a pool is scrubbed or the disks run a self-test: off, weekly or monthly.

Anfrage-Body: application/json: StorageScheduleUpdate

Antworten

Jeder Fehler antwortet mit Problem Details (application/problem+json) und einem stabilen Code aus der Fehlerreferenz.

Administrators only. The snapshots of a dataset as last read, oldest first. pithyxKind is set for snapshots Pithyx took.

Parameter

Name Ort Typ Pflicht Beschreibung
dataset query string ja

Antworten

Jeder Fehler antwortet mit Problem Details (application/problem+json) und einem stabilen Code aus der Fehlerreferenz.

Administrators only. Takes pithyx-manual- of the dataset now. Manual snapshots are never pruned by a schedule.

Anfrage-Body: application/json: SnapshotCreateRequest

Antworten

Jeder Fehler antwortet mit Problem Details (application/problem+json) und einem stabilen Code aus der Fehlerreferenz.

Administrators only. Places the hold “pithyx” on the snapshot, so neither a schedule nor anyone else can destroy it.

Anfrage-Body: application/json: SnapshotRequest

Antworten

  • 204

Jeder Fehler antwortet mit Problem Details (application/problem+json) und einem stabilen Code aus der Fehlerreferenz.

Administrators only. Releases the hold “pithyx” of the snapshot. Holds of other tools stay.

Anfrage-Body: application/json: SnapshotRequest

Antworten

  • 204

Jeder Fehler antwortet mit Problem Details (application/problem+json) und einem stabilen Code aus der Fehlerreferenz.

Administrators only. The hourly, daily, weekly and monthly schedules of a dataset; off with the default counts (24, 7, 4, 6) until saved.

Parameter

Name Ort Typ Pflicht Beschreibung
dataset query string ja

Antworten

Jeder Fehler antwortet mit Problem Details (application/problem+json) und einem stabilen Code aus der Fehlerreferenz.

Administrators only. Saves the given schedules of a dataset. A schedule takes pithyx-- once per UTC hour, day, week (from Monday) or month and keeps its newest keep snapshots; it never deletes other snapshots, held ones or ones dated after the current time.

Anfrage-Body: application/json: SnapshotScheduleList

Antworten

Jeder Fehler antwortet mit Problem Details (application/problem+json) und einem stabilen Code aus der Fehlerreferenz.