public static base_response add ( nitro_service client , dnsaction resource ) throws Exception { dnsaction addresource = new dnsaction ( ) ; addresource . actionname = resource . actionname ; addresource . actiontype = resource . actiontype ; addresource . ipaddress = resource . ipaddress ; addresource . ttl = resource . ttl ; addresource . viewname = resource . viewname ; addresource . preferredloclist = resource . preferredloclist ; return addresource . add_resource ( client ) ; }
Use this API to add dnsaction .