Resolve API endpoint and cli command return list of hostnames base on given label.
Implemented in API and ctl.