source: ogServer-Git/tests/restore_image.json @ 1dde02e

Last change on this file since 1dde02e was 1dde02e, checked in by OpenGnSys Support Team <soporte-og@…>, 5 years ago

#915: Add POST /image/restore command to REST API in ogAdmServer

This patch implements the command "image/create" that creates an image
in a client.

Request:

POST /image/restore
{ "clients" : [ "192.168.56.11" ], "disk" : "1", "partition" : "1", "name" : "test", "repository" : "192.168.56.10", "type" : "UNICAST", "filesystem": "1", "image_id": "1"}

Reply:

200 OK

  • Property mode set to 100644
File size: 173 bytes
Line 
1{ "clients" : [ "192.168.56.11" ], "disk" : "1", "partition" : "1", "name" : "test", "repository" : "192.168.56.10", "type" : "UNICAST", "filesystem": "1", "image_id": "1"}
Note: See TracBrowser for help on using the repository browser.