Sharad Mishra has uploaded a new change for review. Change subject: restapi: WIP: RSDL metadata for restore related rest api. ......................................................................
restapi: WIP: RSDL metadata for restore related rest api. We are introducing 3 new APIs for backup/restore ISVs to use to restore VMs. 1. Create a VM using vmconfig. This API will take the vmconfig from the backup application and create a new VM. The VMconfig is an ovf string. It takes vmconfig string and is an action item. 2. Prepare for restore. This API will take the backup image stored at backup application and make it available to OE for copy. 3. Tear down restore. This API will do the reverse of what prepare does. Change-Id: Ibd237862d64ff1f5266acc51914672b39b4f83df Signed-off-by: Sharad Mishra <snmis...@linux.vnet.ibm.com> --- M backend/manager/modules/restapi/interface/definition/src/main/resources/rsdl_metadata.yaml 1 file changed, 29 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/36/14736/1 diff --git a/backend/manager/modules/restapi/interface/definition/src/main/resources/rsdl_metadata.yaml b/backend/manager/modules/restapi/interface/definition/src/main/resources/rsdl_metadata.yaml index 422423e..f17b53d 100644 --- a/backend/manager/modules/restapi/interface/definition/src/main/resources/rsdl_metadata.yaml +++ b/backend/manager/modules/restapi/interface/definition/src/main/resources/rsdl_metadata.yaml @@ -248,6 +248,17 @@ headers: Content-Type: {value: application/xml|json, required: true} Correlation-Id: {value: 'any string', required: false} +- name: /api/vms/restore|rel=restore + request: + body: + parameterType: Action + signatures: + - mandatoryArguments: {action.vmconfig: 'xs:string'} + optionalArguments: {} + urlparams: {} + headers: + Content-Type: {value: application/xml|json, required: true} + Correlation-Id: {value: 'any string', required: false} - name: /api/vms/{vm:id}/ticket|rel=ticket request: body: @@ -1004,6 +1015,24 @@ headers: Content-Type: {value: application/xml|json, required: true} Correlation-Id: {value: 'any string', required: false} +- name: /api/storagedomains/{storagedomain:id}/vms/{vm:id}/prepareRestore|rel=prepareRestore + request: + body: + parameterType: Action + signatures: [] + urlparams: {} + headers: + Content-Type: {value: application/xml|json, required: true} + Correlation-Id: {value: 'any string', required: false} +- name: /api/storagedomains/{storagedomain:id}/vms/{vm:id}/tearDownRestore|rel=tearDownRestore + request: + body: + parameterType: Action + signatures: [] + urlparams: {} + headers: + Content-Type: {value: application/xml|json, required: true} + Correlation-Id: {value: 'any string', required: false} - name: /api/clusters|rel=get request: body: -- To view, visit http://gerrit.ovirt.org/14736 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ibd237862d64ff1f5266acc51914672b39b4f83df Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Sharad Mishra <snmis...@linux.vnet.ibm.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches