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

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.
主站蜘蛛池模板: 宣恩县| 清河县| 当涂县| 卓资县| 揭东县| 和林格尔县| 安丘市| 马龙县| 嘉义县| 偏关县| 峡江县| 梧州市| 宁陕县| 轮台县| 镇康县| 临夏市| 富阳市| 常熟市| 葫芦岛市| 江陵县| 阳谷县| 兴文县| 五指山市| 北海市| 乌拉特前旗| 安乡县| 日照市| 延庆县| 西吉县| 大姚县| 江北区| 宣城市| 泸定县| 南平市| 阿克苏市| 红河县| 吉首市| 杭锦后旗| 金山区| 泸水县| 泰顺县|