public static base_response add ( nitro_service client , scpolicy resource ) throws Exception { scpolicy addresource = new scpolicy ( ) ; addresource . name = resource . name ; addresource . url = resource . url ; addresource . rule = resource . rule ; addresource . delay = resource . delay ; addresource . maxconn = resource . maxconn ; addresource . action = resource . action ; addresource . altcontentsvcname = resource . altcontentsvcname ; addresource . altcontentpath = resource . altcontentpath ; return addresource . add_resource ( client ) ; }
Use this API to add scpolicy .