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
juju show-unit mysql/0
juju show-unit mysql/0 wordpress/1
juju show-unit mysql/0 --app
juju show-unit mysql/0 --endpoint db
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.