[Engine-devel] REST API using BASH

This is a multi-part message in MIME format. --------------060506050108000600060309 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, let me introduce some basic concepts when using REST API from the command line. I hope, it would be useful for newcomers. E.g. probably everybody has tried curl and then grep, sed, ... for response, but XPath processing tool is more convenient for this task. http://www.ovirt.org/REST_API_Using_BASH_Automation Regards, Libor --------------060506050108000600060309 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit <html> <head> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"> </head> <body bgcolor="#FFFFFF" text="#000000"> Hi,<br> <br> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"> let me introduce some basic concepts when using REST API from the command line. I hope, it would be useful for newcomers.<br> E.g. probably everybody has tried curl and then grep, sed, ... for response, but XPath processing tool is more convenient for this task.<br> <br> <a href="http://www.ovirt.org/REST_API_Using_BASH_Automation">http://www.ovirt.org/REST_API_Using_BASH_Automation</a><br> <br> Regards,<br> Libor<br> </body> </html> --------------060506050108000600060309--

----- Original Message -----
From: "Libor Spevak" <lspevak@redhat.com> To: engine-devel@ovirt.org Sent: Wednesday, March 6, 2013 11:06:53 AM Subject: [Engine-devel] REST API using BASH
Hi,
let me introduce some basic concepts when using REST API from the command line. I hope, it would be useful for newcomers.
Very useful in creating working instance from scratch. Are there any plans to extend it to cover more commands? Thanks
E.g. probably everybody has tried curl and then grep, sed, ... for response, but XPath processing tool is more convenient for this task.
http://www.ovirt.org/REST_API_Using_BASH_Automation
Regards, Libor
_______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel

On 6.3.2013 23:15, Eli Mesika wrote:
----- Original Message -----
From: "Libor Spevak" <lspevak@redhat.com> To: engine-devel@ovirt.org Sent: Wednesday, March 6, 2013 11:06:53 AM Subject: [Engine-devel] REST API using BASH
Hi,
let me introduce some basic concepts when using REST API from the command line. I hope, it would be useful for newcomers. Very useful in creating working instance from scratch. Are there any plans to extend it to cover more commands? Thanks
It depends on available documentation and samples, too. Do you have ideas, what should be covered? The intent was to provide inspiration, not start a new project, but from practical point of view, extensions would be useful.
E.g. probably everybody has tried curl and then grep, sed, ... for response, but XPath processing tool is more convenient for this task.
http://www.ovirt.org/REST_API_Using_BASH_Automation
Regards, Libor
_______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel

On 03/07/2013 12:15 AM, Eli Mesika wrote:
----- Original Message -----
From: "Libor Spevak" <lspevak@redhat.com> To: engine-devel@ovirt.org Sent: Wednesday, March 6, 2013 11:06:53 AM Subject: [Engine-devel] REST API using BASH
Hi,
let me introduce some basic concepts when using REST API from the command line. I hope, it would be useful for newcomers.
Very useful in creating working instance from scratch. Are there any plans to extend it to cover more commands? Thanks
Can you please explain the difference from using the ovirt-shell cli tool?
E.g. probably everybody has tried curl and then grep, sed, ... for response, but XPath processing tool is more convenient for this task.
http://www.ovirt.org/REST_API_Using_BASH_Automation
Regards, Libor
_______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel
_______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel

Hi, I recommend not using bash but standard POSIX shell. There is almost nothing that cannot be done in standard POSIX shell these days, so no need to have constraint. Regards, Alon ----- Original Message -----
From: "Libor Spevak" <lspevak@redhat.com> To: engine-devel@ovirt.org Sent: Wednesday, March 6, 2013 11:06:53 AM Subject: [Engine-devel] REST API using BASH
Hi,
let me introduce some basic concepts when using REST API from the command line. I hope, it would be useful for newcomers. E.g. probably everybody has tried curl and then grep, sed, ... for response, but XPath processing tool is more convenient for this task.
http://www.ovirt.org/REST_API_Using_BASH_Automation
Regards, Libor
_______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel
participants (4)
-
Alon Bar-Lev
-
Eli Mesika
-
Itamar Heim
-
Libor Spevak