api: admin/datastore: enable streaming for some api calls
namely /admin/datastore/{store}/snapshots and /nodes/{node}/tasks since those are api calls where the result can get quite large with this change, the serialization is now streaming instead of making a `Value` in memory. Signed-off-by: Dominik Csapak <d.csapak@proxmox.com> Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
32e2b5abe6
commit
b7c3eaa981
@ -375,6 +375,7 @@ pub fn delete_snapshot(
|
||||
}
|
||||
|
||||
#[api(
|
||||
streaming: true,
|
||||
input: {
|
||||
properties: {
|
||||
store: {
|
||||
|
@ -380,6 +380,7 @@ fn stop_task(
|
||||
}
|
||||
|
||||
#[api(
|
||||
streaming: true,
|
||||
input: {
|
||||
properties: {
|
||||
node: {
|
||||
|
Loading…
Reference in New Issue
Block a user