'Return a Record instance.
:param zone_id: ID of the required zone
:type  zone_id: ``str``
:param record_id: ID of the required record
:type  record_id: ``str``
:rtype: :class:`Record`'

def get_record(self, zone_id, record_id):

    zone = self.get_zone(zone_id=zone_id)
    action = '/v1/Network/DNS/Record/details'
    data = json.dumps({'params': {'id': record_id}})
    try:
        response = self.connection.request(action=action, method='POST', data=data)
    except APIException:
        e = sys.exc_info()[1]
        if (e.error_class == 'LW::Exception::RecordNotFound'):
            raise RecordDoesNotExistError(record_id=record_id, driver=self, value=e.value)
        else:
            raise e
    record = self._to_record(response.objects[0], zone=zone)
    return record
