accessing response for getPorts