def get_port_detail(ports):
    """
    Iterate over ports details from response and retrieve details of ports.

    :param ports: list of ports details from response
    :return: list of detailed element of ports
    :rtype: list
    """
    return [{
        'ID': port.get('id', ''),
        'Number': port.get('number', '')
    } for port in ports]