summaryrefslogtreecommitdiff
path: root/doc/source/cli/command-objects/compute-service.rst
blob: 0977a0e84824494d94f6c348a55e0da7cdb0a00b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
===============
compute service
===============

Compute v2

compute service delete
----------------------

Delete compute service(s)

.. program:: compute service delete
.. code:: bash

    openstack compute service delete
        <service> [<service> ...]

.. _compute_service_delete-service:
.. describe:: <service>

    Compute service(s) to delete (ID only). If using
    ``--os-compute-api-version`` 2.53 or greater, the ID is a UUID which can
    be retrieved by listing compute services using the same 2.53+ microversion.

compute service list
--------------------

List compute services

Using ``--os-compute-api-version`` 2.53 or greater will return the ID as a
UUID value which can be used to uniquely identify the service in a multi-cell
deployment.

.. program:: compute service list
.. code:: bash

    openstack compute service list
        [--host <host>]
        [--service <service>]
        [--long]

.. option:: --host <host>

    List services on specified host (name only)

.. option:: --service <service>

    List only specified service (name only)

.. option:: --long

    List additional fields in output

compute service set
-------------------

Set compute service properties

.. program:: compute service set
.. code:: bash

    openstack compute service set
        [--enable | --disable]
        [--disable-reason <reason>]
        [--up | --down]
        <host> <service>

.. option:: --enable

    Enable service

.. option:: --disable

    Disable service

.. option:: --disable-reason <reason>

    Reason for disabling the service (in quotes). Should be used with :option:`--disable` option.

.. option:: --up

    Force up service

.. option:: --down

    Force down service

.. _compute_service_set-host:
.. describe:: <host>

    Name of host

.. describe:: <service>

    Name of service (Binary name)