juju show-unit
¶
See also: add-unit, remove-unit
Summary¶
Displays information about a unit.
Usage¶
juju show-unit [options] <unit name>
Options¶
Flag |
Default |
Usage |
---|---|---|
|
false |
Do not use web browser for authentication |
|
false |
only show application relation data |
|
only show relation data for the specified endpoint |
|
|
yaml |
Specify output format (json|smart|yaml) |
|
Model to operate in. Accepts [<controller name>:]<model name>|<model UUID> |
|
|
Specify an output file |
|
|
only show relation data for the specified unit |
Examples¶
To show information about a unit:
juju show-unit mysql/0
To show information about multiple units:
juju show-unit mysql/0 wordpress/1
To show only the application relation data for a unit:
juju show-unit mysql/0 --app
To show only the relation data for a specific endpoint:
juju show-unit mysql/0 --endpoint db
To show only the relation data for a specific related unit:
juju show-unit mysql/0 --related-unit wordpress/2
Details¶
The command takes deployed unit names as an argument.
Optionally, relation data for only a specified endpoint or related unit may be shown, or just the application data.