Changes api to return list of workstations instead of printing to
stdout.