source: admin/Sources/Services/ogAdmServer/tests/restore_image.json @ d233fdb

918-git-images-111dconfigfileconfigure-oglivegit-imageslgromero-new-oglivemainmaint-cronmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineogboot-installer-jenkinsoglive-ipv6test-python-scriptsticket-301ticket-50ticket-50-oldticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacion
Last change on this file since d233fdb was fc15dd1, checked in by OpenGnSys Support Team <soporte-og@…>, 6 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
RevLine 
[fc15dd1]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.