官术网_书友最值得收藏!

Python-openstackclient - the unified client

Because it was quite frustrating to remember commands for each separate client, the OpenStack community created a new OpenStack client called OSC (OpenStack Client) in 2013. The actual program is named python-openstackclient and available at http://github.com/openstack/python-openstackclient.

See Figure 1.6. python-openstackclient is a CLI client for OpenStack that brings all the traditional service-based clients into a single shell with a uniform command structure. It has a consistent and predictable format for all of its commands and takes the following form:

openstack [<global-options>] <object-1> <action> [<object-2>] [<command-arguments>]

For example, if you wanted to create a brand new Nova virtual machine instance, you could simply run:

$ openstack server create demo-instance1 --flavor m1.tiny --image cirros MyFirstInstance
Figure 1.6: python-openstackclient brings the traditional service-based clients into a single shell with a uniform command structure

You can also view help commands by running the following:

$ openstack help
The OpenStack clients will be discussed in more detail in upcoming chapters. As of September 2017, the COA exam tests on the Newton version of OpenStack. The exam will provide access to python-openstackclient and all service-based clients. A majority of the exam objectives can be completed with python-openstackclient, except where noted in this book.
主站蜘蛛池模板: 镇巴县| 襄垣县| 新巴尔虎右旗| 上高县| 曲松县| 阳朔县| 望江县| 三原县| 济宁市| 花莲县| 大同市| 永丰县| 陈巴尔虎旗| 互助| 罗源县| 定陶县| 枣强县| 旺苍县| 芮城县| 勐海县| 姚安县| 鹤山市| 闵行区| 阆中市| 留坝县| 岳西县| 沂南县| 遂平县| 大港区| 永泰县| 礼泉县| 阿拉善右旗| 沙湾县| 高雄县| 东丽区| 桐柏县| 北安市| 卢湾区| 万源市| 麦盖提县| 萝北县|