From 44232fe3c6c77af61b1c07b29e0f07e58896f477 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Tue, 20 Aug 2024 11:07:56 -0400 Subject: [PATCH] Fix export swagger definition --- api-daemon/pvcapid/flaskapi.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/api-daemon/pvcapid/flaskapi.py b/api-daemon/pvcapid/flaskapi.py index fc042d59..967ae792 100755 --- a/api-daemon/pvcapid/flaskapi.py +++ b/api-daemon/pvcapid/flaskapi.py @@ -3314,7 +3314,7 @@ class API_VM_Snapshot_Export(Resource): @Authenticator def post(self, vm, reqargs): """ - Roll back to a snapshot of a VM's disks and configuration + Export a snapshot of a VM's disks and configuration to files --- tags: - vm @@ -3323,7 +3323,17 @@ class API_VM_Snapshot_Export(Resource): name: snapshot_name type: string required: true - description: The name of the snapshot to roll back to + description: The name of the snapshot to export (must exist) + - in: query + name: export_path + type: string (path) + required: true + description: The absolute file path to export the snapshot to on the active primary coordinator + - in: query + name: incremental_parent + type: boolean + required: false + description: A snapshot name to generate an incremental diff from responses: 200: description: OK