Storage¶
Generated from the committed OpenAPI document, bmcd 2.28.0. Do not edit this file: just refresh-api rewrites it.
GET /api/bmc/sdcard¶
SD card capacity and use
Legacy form: GET /api/bmc?opt=get&type=sdcard with the same parameters in the query string. That form answers {"response":[{"result":…}]} and puts a refusal's message in result; this path answers the bare result and a refusal as application/problem+json.
| response | body | meaning |
|---|---|---|
200 |
application/json — array of SdCard |
The result. |
204 |
empty | Done, with nothing to report. |
default |
application/problem+json — Problem |
A refusal, RFC 9457. |
200 body (application/json) (each element): SdCard
| field | type | required | description |
|---|---|---|---|
free |
integer (uint64) |
yes | |
total |
integer (uint64) |
yes | |
use |
integer (uint64) |
yes | Named use, not used. Upstream's spelling, and a Rust keyword, which is why the field is renamed rather than called what it means. |
default body (application/problem+json): Problem
| field | type | required | description |
|---|---|---|---|
detail |
string |
no | |
status |
integer |
yes | |
title |
string |
yes | |
type |
string |
no |
POST /api/bmc/sdcard/format¶
Format the SD card
Legacy form: GET /api/bmc?opt=set&type=sdcard with the same parameters in the query string. That form answers {"response":[{"result":…}]} and puts a refusal's message in result; this path answers the bare result and a refusal as application/problem+json.
| response | body | meaning |
|---|---|---|
200 |
application/json — — |
The result. Its shape is not described in this document. |
204 |
empty | Done, with nothing to report. |
default |
application/problem+json — Problem |
A refusal, RFC 9457. |
default body (application/problem+json): Problem
| field | type | required | description |
|---|---|---|---|
detail |
string |
no | |
status |
integer |
yes | |
title |
string |
yes | |
type |
string |
no |