Forum Discussion
Dmitriy_Sysoev
Nimbostratus
Aug 06, 2018Icall script argument
Hello!
How I can translate to icall script argument from APM via iRule? Example. I want generate user certificate SSL via APM. I wrote bash script, but it should be called with two argument - UserName and UserDomain.
Thank you!
sys icall script gcc_script {
app-service none
definition {
exec /home/root/scripts/certificates.sh $UserDN $DomainDN
exec istats remove "GCC generate for UserDN"
}
description none
events none
}
1 Reply
Hi,
I think you have to fix a couple of parameters to correct your script:
1. You need to use the method Patch to edit the current profile.
2.The correct URL to edit the profile is /mgmt/tm/ltm/profile/client-ssl/~Common~pofile_name?ver=15.1.3.1
3. The body is correct.
- qbolbk59
Nimbostratus
Sebastiansierra Ah.. rookie mistake with the URL. Thanks for pointing it out ! 😝