Henrik M. Christensen Posted November 8, 2023 Posted November 8, 2023 The cli code I wish to have Terraform create:add rewrite action rw_acr_custom_notification insert_after_all "http.res.body(50000).set_text_mode(IGNORECASE)" ""<div id=ADCRewrite style='text-align:center;color:white;font-size:20px;'><div id=Please notice><br><b>Important notice: You are accessing a secure environment</b></div>"" -search q/text("customAuthBottom">")/
Solution Sumanth Lingappa Posted November 9, 2023 Solution Posted November 9, 2023 Hello @Henrik M. Christensen, thank you for posting your question here.The terraform resource equivalent to the nscli you asked for is below. ```resource "citrixadc_rewriteaction" "rw_acr_custom_notification" { name = "rw_acr_custom_notification" type = "insert_after_all" target = "http.res.body(50000).set_text_mode(IGNORECASE)" stringbuilderexpr = ""<div id=ADCRewrite style=''text-align:center;color:white;font-size:20px;''><div id=Please notice><br><b>Important notice: You are accessing a secure environment</b></div>"" search = "text("customAuthBottom\">")"}```You can also ask your question in our GitHub repo issues section where our active ADC terraform ADC user community can also help you.https://github.com/citrix/terraform-provider-citrixadc/issues
Henrik M. Christensen Posted November 9, 2023 Author Posted November 9, 2023 Great, that worked!Many thanks, the expression for stringbuilderexpr gave me a headache but where just missing the escape :)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now