Allows the creation of user-defined types out of the existing types. The defined type can then be used multiple times independently. This is especially useful in conjunction with the “include” functionality because types can be defined in the included APL script, and then used where necessary in the template. Note that define doesn’t take a as an argument. the keyword “define” is followed by a type definition such as choice. When prefaced with “define” the elements name becomes the new type which can be used later.


define <type_definition>


define choice yesno default "yes" {"yes", "no"}
section example10 {
  yesno use_ssl
text {
  example10 "SSL Parameters"
  example10.use_ssl "Offload SSL? "

Resulting UI presentation:

Codeshare Entries

The BIG-IP API Reference documentation contains community-contributed content. F5 does not monitor or control community code contributions. We make no guarantees or warranties regarding the available code, and it may contain errors, defects, bugs, inaccuracies, or security vulnerabilities. Your access to and use of any code available in the BIG-IP API reference guides is solely at your own risk.