Forum Discussion
Bin_Qiu_195313
Apr 23, 2015Nimbostratus
How to use REST to create a Virtual Server with profile
I want to use REST to create a virtual server with profile. Below code is not work. The virtual server got created, but profiles are not set right def create_http_virtual(bigip, name, address, p...
Bin_Qiu_195313
Apr 27, 2015Nimbostratus
I got away with the issue by doing below
1) create VIP VIPName with empty profiles
2) add profile to /ltm/virtual/${VIPName}/profiles.
3) Modify the VIP via PUT to modify the irules for the VIP.
But, the below JSON to modify the VIP to add rules does not work
"rules":["/Common/_sys_https_redirect"]
It complain that
{"code":400,"message":"Found invalid JSON body in the request.","errorStack":[]}
if i used "rules":['/Common/_sys_https_redirect']
It complain that
{"code":400,"message":"\"[ '/Common/_sys_https_redirect' ]\" unexpected argument","errorStack":[]}
Please help.
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