Ask Your Question

Openstack automation: REST APIs Vs python sdk (Python bindings to the OpenStack Network API)?

asked 2015-08-19 07:50:58 -0500

vdani gravatar image

updated 2015-08-19 11:43:19 -0500

smaffulli gravatar image

I want to write Openstack automation scripts more specifically around Neutron operations. My confusion is whether I should opt for automation with REST APIs or use python sdk (Python bindings to the OpenStack Network API). Can somebody please throw some light on which is the more efficient way of going about this?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2015-08-19 11:43:07 -0500

smaffulli gravatar image

It's almost impossible to give you a generic answer. You'd want to use an SDK if that satisfies your needs and use the REST API directly if you have very special needs that the SDKs don't satisfy.

edit flag offensive delete link more


But which one is better in terms of modularity, efficiency and scale?

vdani gravatar imagevdani ( 2015-08-20 06:55:11 -0500 )edit

answered 2019-03-21 08:26:55 -0500

Aref gravatar image

openstack python sdk directly uses openstack rest api for operations. and the code is written pretty well, but like any other code, there will be some bugs and flaws. as @smaffulli mentioned, if you have very special case, you may write your own code using rest api my suggestion is to use openstacksdk first, and see if it satisfies your need.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools


Asked: 2015-08-19 07:50:58 -0500

Seen: 425 times

Last updated: Mar 21 '19