F5 Sites
  • F5.com
  • LearnF5
  • NGINX
  • MyF5
  • Partner Central
Contact
  • Under Attack?
  • F5 Support
  • DevCentral Support
  • F5 Sales
  • NGINX Sales
  • F5 Professional Services
Skip to contentBrand Logo
Forums
CrowdSRC
Articles
Groups
EventsSuggestionsHow Do I...?
RegisterSign In
  1. DevCentral
  2. Articles
  3. Technical Articles

iControl 101 - #13 - Data Groups

Data Groups can be useful when writing iRules.  A data group is simply a group of related elements, such as a set of IP addresses, URI paths, or document extensions. When used in conjuction with the ...
Published May 01, 2008
Version 1.0
101
application delivery
automation
basic
BIG-IP
dev
devops
events
getting started
iControl
Joe_Pruitt's avatar
Joe_Pruitt
Joined September 22, 2004
View Profile
Joe_Pruitt's avatar
Joe_Pruitt
Joined September 22, 2004
View Profile
Joe_Pruitt's avatar
Joe_Pruitt
Mar 02, 2012
@Erik, you can use the LocalLB.Class.get_* methods to pull out the values. For a string class named urimappnings, you could do something like this

 

 

pull out the names from the string class;

 

$StringClassA = (Get-F5.iControl).LocalLBClass.get_string_class(@("urimappings") );

 

ValuesAofA = (Get-F5.iControl).LocalLBClass.get_string_class_member_data_value($StringClassA);

 

Print out the results

 

Write-Host "Data Group: urimappings"

 

Write-Host "Names:"

 

$StringClassA[0].members

 

Write-Host "Values"

 

$ValuesAofA[0]

 

 

Hope this helps...

ABOUT DEVCENTRAL

DevCentral NewsTechnical ForumTechnical ArticlesTechnical CrowdSRCCommunity GuidelinesDevCentral EULAGet a Developer Lab LicenseBecome a DevCentral MVP

RESOURCES

Product DocumentationWhite PapersGlossaryCustomer StoriesWebinarsFree Online CoursesF5 CertificationLearnF5 Training

SUPPORT

Manage SubscriptionsProfessional ServicesProfessional ServicesCreate a Service RequestSoftware DownloadsSupport Portal

PARTNERS

Find a Reseller PartnerTechnology AlliancesBecome an F5 PartnerLogin to Partner Central

F5 logo©2024 F5, Inc. All rights reserved.
TrademarksPoliciesPrivacyCalifornia PrivacyDo Not Sell My Personal Information