Forum Discussion
geeko_85254
Altostratus
Jun 01, 2017iControl Rest rewrite profile
I am trying to convert the following tmsh command to iControl Rest.
tmsh modify ltm profile rewrite test uri-rules add { test_rule {client { host test.com path /test/ scheme http } server { host...
cjunior
Nacreous
Jun 01, 2017Hello, I think you forgot the rule name on the request, try this way:
curl -k -u icontrol -X POST -H "Content-type: application/json" -d ‘{"client":{"host":"test.com","path":"/test/","scheme":"http"},"server":{"host":"10.2.2.2","path":"/","scheme":"http"},"type":"both"}’ https://bigip/mgmt/tm/ltm/profile/rewrite/test/uri-rules/test_rule
Regards.
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