@@ -125,6 +125,11 @@ func resourceFortiadcLoadbalanceVirtualServer() *schema.Resource {
125125 Optional : true ,
126126 Default : false ,
127127 },
128+ "persistence" : & schema.Schema {
129+ Type : schema .TypeString ,
130+ Optional : true ,
131+ Default : "" ,
132+ },
128133 },
129134 }
130135}
@@ -212,6 +217,7 @@ func resourceFortiadcLoadbalanceVirtualServerCreate(d *schema.ResourceData, m in
212217 Pool : d .Get ("pool" ).(string ),
213218 ClientSSLProfile : d .Get ("client_ssl_profile" ).(string ),
214219 HTTP2HTTPS : http2https ,
220+ Persistence : d .Get ("persistence" ).(string ),
215221 ErrorMsg : d .Get ("error_msg" ).(string ),
216222 ErrorPage : d .Get ("error_page" ).(string ),
217223 }
@@ -281,6 +287,7 @@ func resourceFortiadcLoadbalanceVirtualServerRead(d *schema.ResourceData, m inte
281287 d .Set ("pool" , rs .Pool )
282288 d .Set ("client_ssl_profile" , rs .ClientSSLProfile )
283289 d .Set ("http_to_https" , http2https )
290+ d .Set ("persistence" , rs .Persistence )
284291 d .Set ("error_msg" , rs .ErrorMsg )
285292 d .Set ("error_page" , rs .ErrorPage )
286293
@@ -388,6 +395,7 @@ func resourceFortiadcLoadbalanceVirtualServerUpdate(d *schema.ResourceData, m in
388395 Pool : d .Get ("pool" ).(string ),
389396 ClientSSLProfile : d .Get ("client_ssl_profile" ).(string ),
390397 HTTP2HTTPS : http2https ,
398+ Persistence : d .Get ("persistence" ).(string ),
391399 ErrorMsg : d .Get ("error_msg" ).(string ),
392400 ErrorPage : d .Get ("error_page" ).(string ),
393401 }
0 commit comments