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

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.
主站蜘蛛池模板: 红桥区| 阿鲁科尔沁旗| 姚安县| 城市| 武威市| 红河县| 柘荣县| 民勤县| 赤水市| 如东县| 叶城县| 呈贡县| 涟水县| 拉孜县| 儋州市| 河曲县| 天全县| 永清县| 南宁市| 黎城县| 辰溪县| 景德镇市| 行唐县| 崇义县| 柞水县| 垦利县| 武冈市| 贵定县| 宣武区| 泗洪县| 香格里拉县| 吉林省| 晋江市| 湛江市| 长沙县| 平和县| 洮南市| 石景山区| 张家口市| 竹北市| 仁布县|