def get_records(self, zone_id, ttl=None, data=None, host=None,
                    record_type=None):
        _filter = utils.NestedDict()

        if ttl:
            _filter['resourceRecords']['ttl'] = utils.query_filter(ttl)

        if host:
            _filter['resourceRecords']['host'] = utils.query_filter(host)

        if data:
            _filter['resourceRecords']['data'] = utils.query_filter(data)

        if record_type:
            _filter['resourceRecords']['type'] = utils.query_filter(
                record_type.lower())

        results = self.service.getResourceRecords(
            id=zone_id,
            mask='id,expire,domainId,host,minimum,refresh,retry,'
            'mxPriority,ttl,type,data,responsiblePerson',
            filter=_filter.to_dict(),
        )

        return results
Inject request body into the function as \**kwargs for methods POST, PUT, or PATCH.
dataset/ETHPy150Open softlayer/softlayer-python/SoftLayer/managers/dns.py/DNSManager.get_records--crossover with--dataset/ETHPy150Open kofrasa/flask-apputils/flask_apputils/decorators.py/with_request_body