Read the JSON syntax and Network Ports API pages on nomadproject.io to see how to set ports (these apply on the Job level).