The information in this doc is based on Juju version 3.5.6, and may not accurately reflect other versions of Juju.
See also: add-unit, remove-unit
Summary
Displays information about a unit.
Usage
juju show-unit [options] <unit name>
Options
Flag | Default | Usage |
---|---|---|
-B , --no-browser-login |
false | Do not use web browser for authentication |
--app |
false | only show application relation data |
--endpoint |
only show relation data for the specified endpoint | |
--format |
yaml | Specify output format (json|smart|yaml) |
-m , --model |
Model to operate in. Accepts [<controller name>:]<model name>|<model UUID> | |
-o , --output |
Specify an output file | |
--related-unit |
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.