python-openstackclient/doc/source/command-objects/host.rst
Huanxuan Ao 7177014fcc Fix errors for "host set" command
"Host set" command cannot work. Because:
1.Host has no 'ID' attribute, so 'ID' attribute cannot be found
in "host set" command.
2.value "True" and "Flase" are invalid in updata() method of host.
3.Some update functionalities is not supported in host API now.

This patch solves the problems 1 and 2 in OSC. But the problem 3
is a API problem and can't be solved in OSC, only XenServer driver
support to set enable/disable and maintenance host, it is a normal
problem.
After this patch the output of "host set" command is:
The requested functionality is not supported. (HTTP 501)
(Request-ID: req-14031fce-8c90-48a0-8492-dc8e3dd349f3)
Just the same as the "host-update" command in novaclient.

Change-Id: Ibe94c4d3d492d3d63355de803810edb988e1b4e9
Closes-Bug: #1594689
2016-06-22 14:20:53 +08:00

970 B

host

Compute v2

The physical computer running a hypervisor.

host list

List all hosts

host list

os host list
    [--zone <availability-zone>]

--zone <availability-zone>

Only return hosts in the availability zone

host set

Set host command

host set

os host set
    [--enable | --disable]
    [--enable-maintenance | --disable-maintenance]
    <host>




Enable the host

--disable

Disable the host

Enable maintenance mode for the host

--disable-maintenance

Disable maintenance mode for the host

<host>

Host to modify (name only)

host show

Display host details

host show

os host show
    <host>

<host>

Name of host