def create_record(name, zone_id, type, data, profile):
 conn = _get_driver(profile=profile)
 record_type = _string_to_record_type(type)
 zone = conn.get_zone(zone_id)
 return conn.create_record(name, zone, record_type, data)

def create_record ( name , zone_id , type , data , profile ) : conn = _get_driver ( profile = profile ) record_type = _string_to_record_type ( type ) zone = conn . get_zone ( zone_id ) return conn . create_record ( name , zone , record_type , data )
create a new record .