Added new API route to obtain available ports for a device