DataDisk feature (#1056)

* DataDisk feature

* Apply suggestions from code review

Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>

Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
This commit is contained in:
Pascal Vizeli 2021-09-17 16:31:45 +02:00 committed by GitHub
parent 11b1b0cf56
commit 4abd8b960c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1799,6 +1799,7 @@ Returns information about the OS.
| update_available | boolean | `true` if an update is available |
| board | string | The name of the board |
| boot | string | Which slot that are in use |
| data_disk | string | Device which is used for holding OS data persistent |
**Example response:**
@ -1806,8 +1807,10 @@ Returns information about the OS.
{
"version": "4.3",
"version_latest": "5.0",
"update_available": true,
"board": "ova",
"boot": "slot1"
"boot": "slot1",
"data_disk": "/dev/sda"
}
```
@ -1823,6 +1826,18 @@ Update Home Assistant OS
| ------- | ------ | -------------------------------------------------------------- |
| version | string | The version you want to install, default is the latest version |
</ApiEndpoint>
<ApiEndpoint path="/os/datadisk/move" method="post">
Move datadisk to a new location, **This will also reboot the device!**
**Payload:**
| key | type | description |
| ------- | ------ | ----------------------------------------------------------------- |
| device | string | Path to the new device which should be use as the target for the data migration |
</ApiEndpoint>
### Resolution