Revision 7a3c66e1 docs/commands.rst
b/docs/commands.rst | ||
---|---|---|
8 | 8 |
In this context, objects are not services, but virtual objects like a server, a |
9 | 9 |
file or an image. The action concerns objects of the specified type. Some |
10 | 10 |
actions (e.g. "delete" or "info") need to operate on an existing object. The |
11 |
identifiers strictly identify this object and they can have the form of an id |
|
12 |
(e.g., `server delete <SERVER_ID>`) or a foreign key (e.g., |
|
13 |
`port create <NETWORK_ID> <DEVICE_ID>`) |
|
11 |
identifiers strictly identify this object and they should have the form of an id |
|
12 |
(e.g., `server delete <SERVER_ID>`). |
|
14 | 13 |
|
15 | 14 |
The examples bellow showcase some commands. The kamaki-shell (check |
16 | 15 |
`Usage section <usage.html#interactive-shell>`_ for details) is chosen as the |
... | ... | |
351 | 350 |
* Try network-connect (to get help) * |
352 | 351 |
[network]: connect |
353 | 352 |
Syntax error |
354 |
usage: connect <network id> <device id> [-s] [-h] [-i] [--config CONFIG]
|
|
353 |
usage: connect <network id> --device-id <DEVICE_ID> [-s] [-h] [-i] [--config CONFIG]
|
|
355 | 354 |
|
356 | 355 |
Connect a server to a network |
357 | 356 |
|
... | ... | |
364 | 363 |
-v,--verbose: More info at response |
365 | 364 |
|
366 | 365 |
* Connect VM with id 11687 to network with id 1409 |
367 |
[network]: connect 11687 1409 --wait |
|
366 |
[network]: connect 11687 --device-id=1409 --wait
|
|
368 | 367 |
Creating port between network 1409 and server 11687 |
369 | 368 |
New port: 8 |
370 | 369 |
|
Also available in: Unified diff