The magnum client is the command-line interface (CLI) for the Containers service API and its extensions.
This chapter documents magnum version 2.0.0.
For help on a specific magnum command, enter:
$ magnum help COMMAND
usage: magnum [--version] [--debug] [--os-cache]
[--os-region-name <region-name>]
[--os-tenant-id <auth-tenant-id>]
[--os-user-domain-id <auth-user-domain-id>]
[--os-user-domain-name <auth-user-domain-name>]
[--os-project-domain-id <auth-project-domain-id>]
[--os-project-domain-name <auth-project-domain-name>]
[--service-type <service-type>]
[--endpoint-type <endpoint-type>]
[--magnum-api-version <magnum-api-ver>]
[--os-cacert <ca-certificate>] [--bypass-url <bypass-url>]
[--insecure] [--os-auth-system <auth-system>]
[--os-username <username>] [--os-password <password>]
[--os-tenant-name <tenant-name>] [--os-token <token>]
[--os-auth-url <auth-url>]
<subcommand> ...
Subcommands:
magnum.. _magnum_common_auth:
usage: magnum bay-create [--name <name>] --baymodel <baymodel>
[--node-count <node-count>]
[--master-count <master-count>]
[--discovery-url <discovery-url>]
[--timeout <timeout>]
Create a bay.
Optional arguments:
usage: magnum bay-delete <bay> [<bay> ...]
Delete specified bay.
Positional arguments:
usage: magnum bay-show <bay>
Show details about the given bay.
Positional arguments:
usage: magnum bay-update <bay> <op> <path=value> [<path=value> ...]
Update information about the given bay.
Positional arguments:
usage: magnum baymodel-create [--name <name>] --image-id <image-id>
--keypair-id <keypair-id> --external-network-id
<external-network-id> --coe <coe>
[--fixed-network <fixed-network>]
[--network-driver <network-driver>]
[--volume-driver <volume-driver>]
[--dns-nameserver <dns-nameserver>]
[--flavor-id <flavor-id>]
[--master-flavor-id <master-flavor-id>]
[--docker-volume-size <docker-volume-size>]
[--http-proxy <http-proxy>]
[--https-proxy <https-proxy>]
[--no-proxy <no-proxy>]
[--labels <KEY1=VALUE1,KEY2=VALUE2...>]
[--tls-disabled] [--public] [--registry-enabled]
Create a baymodel.
Optional arguments:
usage: magnum baymodel-delete <baymodels> [<baymodels> ...]
Delete specified baymodel.
Positional arguments:
usage: magnum baymodel-list [--limit <limit>] [--sort-key <sort-key>]
[--sort-dir <sort-dir>]
Print a list of bay models.
Optional arguments:
usage: magnum baymodel-show <baymodel>
Show details about the given baymodel.
Positional arguments:
usage: magnum baymodel-update <baymodel> <op> <path=value> [<path=value> ...]
Updates one or more baymodel attributes.
Positional arguments:
usage: magnum ca-show --bay <bay>
Show details about the CA certificate for a bay.
Optional arguments:
usage: magnum ca-sign [--csr <csr>] --bay <bay>
Generate the CA certificate for a bay.
Optional arguments:
usage: magnum coe-service-create [--manifest-url <manifest-url>]
[--manifest <manifest>] --bay <bay>
Create a coe service.
Optional arguments:
usage: magnum coe-service-delete --bay <bay> <services> [<services> ...]
Delete specified coe service.
Positional arguments:
Optional arguments:
usage: magnum coe-service-list --bay <bay>
Print a list of coe services.
Optional arguments:
usage: magnum coe-service-show --bay <bay> <services>
Show details about the given coe service.
Positional arguments:
Optional arguments:
usage: magnum coe-service-update --bay <bay>
<services> <op> <path=value>
[<path=value> ...]
Update information about the given coe service.
Positional arguments:
Optional arguments:
usage: magnum container-create [--name <name>] --image <image> --bay <bay>
[--command <command>] [--memory <memory>]
Create a container.
Optional arguments:
usage: magnum container-delete <container> [<container> ...]
Delete specified containers.
Positional arguments:
usage: magnum container-exec --command <command> <container>
Execute command in a container.
Positional arguments:
Optional arguments:
usage: magnum container-list [--bay <bay>]
Print a list of available containers.
Optional arguments:
usage: magnum container-logs <container>
Get logs of a container.
Positional arguments:
usage: magnum container-pause <container> [<container> ...]
Pause specified containers.
Positional arguments:
usage: magnum container-reboot <container> [<container> ...]
Reboot specified containers.
Positional arguments:
usage: magnum container-show [--json] <container>
Show details of a container.
Positional arguments:
Optional arguments:
usage: magnum container-start <container> [<container> ...]
Start specified containers.
Positional arguments:
usage: magnum container-stop <container> [<container> ...]
Stop specified containers.
Positional arguments:
usage: magnum container-unpause <container> [<container> ...]
Unpause specified containers.
Positional arguments:
usage: magnum pod-create [--manifest-url <manifest-url>]
[--manifest <manifest>] --bay <bay>
Create a pod.
Optional arguments:
usage: magnum pod-delete --bay <bay> <pods> [<pods> ...]
Delete specified pod.
Positional arguments:
Optional arguments:
usage: magnum pod-list --bay <bay>
Print a list of registered pods.
Optional arguments:
usage: magnum pod-show --bay <bay> <pod>
Show details about the given pod.
Positional arguments:
Optional arguments:
usage: magnum pod-update --bay <bay>
<pod-id> <op> <path=value> [<path=value> ...]
Update information about the given pod.
Positional arguments:
Optional arguments:
usage: magnum rc-create [--manifest-url <manifest-url>]
[--manifest <manifest>] --bay <bay>
Create a replication controller.
Optional arguments:
usage: magnum rc-delete --bay <bay> <rcs> [<rcs> ...]
Delete specified replication controller.
Positional arguments:
Optional arguments:
usage: magnum rc-list --bay <bay>
Print a list of registered replication controllers.
Optional arguments:
usage: magnum rc-show --bay <bay> <rc>
Show details about the given replication controller.
Positional arguments:
Optional arguments:
usage: magnum rc-update --bay <bay> <rc> <op> <path=value> [<path=value> ...]
Update information about the given replication controller.
Positional arguments:
Optional arguments:
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.