Ask Your Question

CLI Tool and Rest API for Quantum

asked 2012-11-23 09:40:19 -0600

I am new to Quantum and as my current understanding, it seems that Quantum provides both the command line tool used on directly on the Quantum Server and also the set of Rest API that can be invoked remotely. So i want to know whether they both provide the same functional set from the end user perspective, such as create network, interface, port and etc... Therefore, i can use anyone of them to interact with Quantum service from the programming perspective.


edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted

answered 2012-11-24 14:45:31 -0600

Thanks Salvatore Orlando, that solved my question.

edit flag offensive delete link more

answered 2012-11-23 13:11:06 -0600

salvatore-orlando gravatar image

Hi Kevin,

I am not entirely sure what you mean by "interact with Quantum service from the programming perspective". I guess you want to know how you can develop applications that interact with a Quantum server.

If that is correct, then the answer is yes: you can use both the Quantum API directly in your application, by sending HTTP requests with the appropriate JSON payload, or the CLI. For the CLI bear in mind that is based on cliff, a flexibile framework which allows for both human and machine readable output. This means you can output something from a quantum CLI command that could be parsed straight into a python dict.

A third option, if you're developing in python, is to import the quantum client library into your application. In python-quantumclient, the quantumclient.quantum.v2_0 package has modules that can be used in your app to interact with the Quantum server. However, please bear in mind this library at the moment is used only be the CLI and (I tihink) it is not yet officially supported byt the Quantum core team.

edit flag offensive delete link more

answered 2012-11-24 14:49:15 -0600

Salvatore Orlando, really appreciated for your detailed and deep information. It definitely provides great insight and direction for my next step.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2012-11-23 09:40:19 -0600

Seen: 40 times

Last updated: Nov 24 '12