Forum Discussion
Roman_80473
Dec 30, 2010Nimbostratus
How to check if particular Virtual Server exists?
Hi folks,
I'm new to iControl, and I'm struggling to have few simple tasks accomplished via java:
1. check if particular Virtual Server exists
2. create new Virtual Server
3. Set basic properties
I've found an article (http://devcentral.f5.com/Tutorials/TechTips/tabid/63/articleType/ArticleView/articleId/205/iC2I-Creating-a-Virtual-Server.aspx) which prob covers some basic stuff, but I'm still not sure how to check whether the vserver exists. Is there a wrapper class similar to Pool or PoolMember?
Any help is appreciated.
Thank you, Roman
- L4L7_53191NimbostratusRoman: I'd just to a get_list(), check for the VS. If it exists, pass. Else, create().
- Roman_80473NimbostratusHi Matt,
- Roman_80473NimbostratusHi Matt,
- L4L7_53191NimbostratusThat's actually a really good question, and the answer reveals quite a bit about how BigIP is setup. In short, no, you don't need to have a default pool setup. A Virtual Server is an object that you can assign a bunch of optional behaviors and attributes to - a pool is among them. From an iControl perspective, you'll probably need to specify that there's no default pool though - it doesn't handle default settings like the CLI or GUI does (which is a shame in my opinion).
- Roman_80473NimbostratusGot it, thanks. I think I'll be better off creating a pool w members first. Otherwise, vserver would pretty much render itself useless.
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