mirror of
https://git.proxmox.com/git/proxmox-backup
synced 2025-08-16 04:01:17 +00:00
cli: manager: sync: add 'sync-direction' parameter to list
so one can list pull and push jobs Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
403ad1f6d1
commit
28d6afc2d7
@ -4,7 +4,7 @@ use serde_json::Value;
|
||||
use proxmox_router::{cli::*, ApiHandler, RpcEnvironment};
|
||||
use proxmox_schema::api;
|
||||
|
||||
use pbs_api_types::JOB_ID_SCHEMA;
|
||||
use pbs_api_types::{SyncDirection, JOB_ID_SCHEMA};
|
||||
|
||||
use proxmox_backup::api2;
|
||||
|
||||
@ -20,6 +20,10 @@ fn render_group_filter(value: &Value, _record: &Value) -> Result<String, Error>
|
||||
#[api(
|
||||
input: {
|
||||
properties: {
|
||||
"sync-direction": {
|
||||
type: SyncDirection,
|
||||
optional: true,
|
||||
},
|
||||
"output-format": {
|
||||
schema: OUTPUT_FORMAT,
|
||||
optional: true,
|
||||
|
Loading…
Reference in New Issue
Block a user