systemctl
Returns a list of the units, whether they are loaded, active, their sub and description.
systemctl is-failed
Returns a list of status only.
What is the syntax to return the details of the failed units?
You can use systemctl list-units --state=failed to list all failed units.
The parameters for systemctl are documented in the man page systemctl(1).