Forum Discussion
Hyder_141209
Altostratus
Feb 07, 2017Code snippet for iControl API on upload_policy()
Hi,
I am writing a perl script to upload the modified ASM policies to F5. Is there any related perl snippet code available regarding using the following iControl SOAP API?
upload_policy(
...
Hyder_141209
Altostratus
Feb 28, 2017Thanks Jason.
Have done the upload correctly and actually can see the file uploaded there as well. The issue is only when running the SOAP import_policy().
policy name is /TEST01/test.com.app/test.com_policy
remote file name at F5 /var/tmp/ is test.com_policy
The part of the code is:
$check_resp->($f5_iface->import_policy(SOAP::Data->name(webapp_name => $policyname),
SOAP::Data->name(filename =>
$remote_file_location_name)));Have changed webapp_name to /TEST01/test.com.app. However, still the same error message. Any reference or sample code available on import_policy()?
Cheers.
Best regards Hyder
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects