modify api interface, add argement ttl and record_type