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...
Mar 21, 2017
Very helpful post. I used the following code to add profiles.
add TCP and HTTP profiles to virtual server
self.profiles = []
if self.payload['ipProtocol'] == 'tcp':
self.profile = {}
self.profile['name'] = "tcp-lan-optimized-default"
self.profiles.append(self.profile)
if self.serviceNumber == "80":
self.profile = {}
self.profile['name'] = "http-default"
self.profiles.append(self.profile)
self.payload['profiles'] = self.profiles
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