Ask Your Question
0

CRUD regions, zones, hard disks in Openstack Swift with Python

asked 2016-11-03 10:51:15 -0500

I setup successfully a test Openstack Swift environment followed by this http://docs.openstack.org/developer/swift/development_saio.html (SAIO - Swift All In One) page. And also installed https://pypi.python.org/pypi/python-swiftclient (python-swiftclient) package to manage data on Swift. But both of swift command and swiftclient package only support to manage Account, Container and Object data.

So I wonder is there any ways help to execute CRUD command for regions, zones, hard disks...with commands or Python?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-11-04 04:21:57 -0500

RichArt gravatar image

I am not sure if I really got your question, but you can use the openstackclient: https://wiki.openstack.org/wiki/OpenStackClients (https://wiki.openstack.org/wiki/OpenS...)

Or the APIs if you wanna write code in Python: http://developer.openstack.org/api-guide/quick-start/index.html (http://developer.openstack.org/api-gu...)

edit flag offensive delete link more

Comments

Thanks for your help. I am just looking up some solutions to manage regions, zones...in Swift cluster. After installing Swift on my local machine, I found that it had 4 regions in Swift cluster. So I want to add, remove some regions but no luck for me.

leeminh gravatar imageleeminh ( 2016-11-04 04:43:22 -0500 )edit

May be you should really consider to use the Identity API to manage regions: http://developer.openstack.org/api-ref/identity/v3/#show-region-details (http://developer.openstack.org/api-re...) Or is Swift totally independent from the other OpenStack Infrastructure?

RichArt gravatar imageRichArt ( 2016-11-04 10:51:02 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-11-03 10:51:15 -0500

Seen: 46 times

Last updated: Nov 04 '16