develop
f5_bigip_11.6
A function to connect to a bigip device and add a new member to an existing pool.
The host/address of the bigip device
The iControl REST username
The iControl REST password
The name of the pool to modify
The name of the member to add i.e. 10.1.1.2:80
CLI Example:
salt '*' bigip.add_pool_members bigip admin admin my-pool 10.2.2.1:80
A function to connect to a bigip device and commit an existing transaction.
The host/address of the bigip device
The iControl REST username
The iControl REST password
the label of this transaction stored within the grain:
bigip_f5_trans:<label>
CLI Example:
salt '*' bigip.commit_transaction bigip admin admin my_transaction
A function to connect to a bigip device and create a monitor.
The host/address of the bigip device
The iControl REST username
The iControl REST password
The type of monitor to create
The name of the monitor to create
Consult F5 BIGIP user guide for specific options for each monitor type. Typically, tmsh arg names are used.
CLI Example:
salt '*' bigip.create_monitor bigip admin admin http my-http-monitor timeout=10 interval=5
A function to connect to a bigip device and create a node.
The host/address of the bigip device
The iControl REST username
The iControl REST password
The name of the node
The address of the node
The label of the transaction stored within the grain:
bigip_f5_trans:<label>
CLI Example:
salt '*' bigip.create_node bigip admin admin 10.1.1.2
A function to connect to a bigip device and create a pool.
The host/address of the bigip device
The iControl REST username
The iControl REST password
The name of the pool to create.
List of comma delimited pool members to add to the pool. i.e. 10.1.1.1:80,10.1.1.2:80,10.1.1.3:80
[yes | no]
[yes | no]
[string]
[string]
[enabled | disabled]
[pass-through | [integer]]
[pass-through | [integer]]
[pass-through | [integer]]
[pass-through | [integer]]
[dynamic-ratio-member | dynamic-ratio-node | fastest-app-response | fastest-node | least-connections-members | least-connections-node | least-sessions | observed-member | observed-node | predictive-member | predictive-node | ratio-least-connections-member | ratio-least-connections-node | ratio-member | ratio-node | ratio-session | round-robin | weighted-least-connections-member | weighted-least-connections-node]
[integer]
[integer]
[failover | reboot | restart-all]
[enabled | disabled]
[name]
[none | profile_name]
[integer]
[enabled | disabled]
[integer]
[integer]
[drop | none | reselect | reset]
[integer]
CLI Example:
salt '*' bigip.create_pool bigip admin admin my-pool 10.1.1.1:80,10.1.1.2:80,10.1.1.3:80 monitor=http
A function to connect to a bigip device and create a profile.
The host/address of the bigip device
The iControl REST username
The iControl REST password
The type of profile to create
The name of the profile to create
[ arg=val ] ... [arg=key1:val1,key2:val2] ...
Consult F5 BIGIP user guide for specific options for each monitor type. Typically, tmsh arg names are used.
Profiles can get pretty complicated in terms of the amount of possible config options. Use the following shorthand to create complex arguments such as lists, dictionaries, and lists of dictionaries. An option is also provided to pass raw json as well.
[i,i,i]
:param='item1,item2,item3'
[k:v,k:v,k,v]
:param='key-1:val-1,key-2:val2,key-3:va-3'
[k:v,k:v|k:v,k:v|k:v,k:v]
:param='key-1:val-1,key-2:val-2|key-1:val-1,key-2:val-2|key-1:val-1,key-2:val-2'
'j{ ... }j'
:cert-key-chain='j{ "default": { "cert": "default.crt", "chain": "default.crt", "key": "default.key" } }j'
Use \,
or \:
or \|
to escape characters which shouldn't
be treated as delimiters i.e. ciphers='DEFAULT\:!SSLv3'
CLI Example:
salt '*' bigip.create_profile bigip admin admin http my-http-profile defaultsFrom='/Common/http'
salt '*' bigip.create_profile bigip admin admin http my-http-profile defaultsFrom='/Common/http' \
enforcement=maxHeaderCount:3200,maxRequests:10
A function to connect to a bigip device and create a virtual server.
The host/address of the bigip device
The iControl REST username
The iControl REST password
The name of the virtual to create
[ [virtual_address_name:port] | [ipv4:port] | [ipv6.port] ]
[ [pool_name] | none]
[yes | no]
[default | enabled | disabled ]
[none] | string]
[yes | no]
[yes | no]
[integer]
[string]
[disabled | enabled]
[none | [profile name] ]
[none | [eviction policy name] ]
[integer]
[yes | no]
[any | protocol]
[yes | no]
(12-forward) [yes | no]
[ [pool_name] | none]
{ [ipv4] | [ipv6] }
{ [disabled | enabled | none] }
[enabled | disabled]
[none | profile1,profile2,profile3 ... ]
[none | default | profile1,profile2,profile3 ... ]
[none | default | policy1,policy2,policy3 ... ]
[name]
[integer]
[destination | object | object-destination | object-source | object-source-destination | source | source-destination]
[integer]
[integer]
[none | [rule_one,rule_two ...] ]
[none | [rule_one,rule_two ...] ]
[yes | no]
{ [ipv4[/prefixlen]] | [ipv6[/prefixlen]] }
[none | snat:pool_name | lsn | automap ]
[change | preserve | preserve-strict]
[enabled | disabled]
[none | default | class_one,class_two ... ]
[enabled | disabled]
[enabled | disabled]
[none | default | [enabled|disabled]:vlan1,vlan2,vlan3 ... ]
CLI Example:
salt '*' bigip.create_virtual bigip admin admin my-virtual-3 26.2.2.5:80 \
pool=my-http-pool-http profiles=http,tcp
salt '*' bigip.create_virtual bigip admin admin my-virtual-3 43.2.2.5:80 \
pool=test-http-pool-http profiles=http,websecurity persist=cookie,hash \
policies=asm_auto_l7_policy__http-virtual \
rules=_sys_APM_ExchangeSupport_helper,_sys_https_redirect \
related_rules=_sys_APM_activesync,_sys_APM_ExchangeSupport_helper \
source_address_translation=snat:my-snat-pool \
translate_address=enabled translate_port=enabled \
traffic_classes=my-class,other-class \
vlans=enabled:external,internal
A function to connect to a bigip device and delete an existing monitor.
The host/address of the bigip device
The iControl REST username
The iControl REST password
The type of monitor to delete
The name of the monitor to delete
CLI Example:
salt '*' bigip.delete_monitor bigip admin admin http my-http-monitor
A function to connect to a bigip device and delete a specific node.
The host/address of the bigip device
The iControl REST username
The iControl REST password
The name of the node which will be deleted.
The label of the transaction stored within the grain:
bigip_f5_trans:<label>
CLI Example:
salt '*' bigip.delete_node bigip admin admin my-node
A function to connect to a bigip device and delete a specific pool.
The host/address of the bigip device
The iControl REST username
The iControl REST password
The name of the pool which will be deleted
CLI Example
salt '*' bigip.delete_node bigip admin admin my-pool
A function to connect to a bigip device and delete a specific pool.
The host/address of the bigip device
The iControl REST username
The iControl REST password
The name of the pool to modify
The name of the pool member to delete
CLI Example:
salt '*' bigip.delete_pool_member bigip admin admin my-pool 10.2.2.2:80
A function to connect to a bigip device and delete an existing profile.
The host/address of the bigip device
The iControl REST username
The iControl REST password
The type of profile to delete
The name of the profile to delete
CLI Example:
salt '*' bigip.delete_profile bigip admin admin http my-http-profile
A function to connect to a bigip device and delete an existing transaction.
The host/address of the bigip device
The iControl REST username
The iControl REST password
The label of this transaction stored within the grain:
bigip_f5_trans:<label>
CLI Example:
salt '*' bigip.delete_transaction bigip admin admin my_transaction
A function to connect to a bigip device and delete a specific virtual.
The host/address of the bigip device
The iControl REST username
The iControl REST password
The name of the virtual to delete
CLI Example:
salt '*' bigip.delete_virtual bigip admin admin my-virtual
A function to connect to a bigip device and list an existing monitor. If no name is provided than all monitors of the specified type will be listed.
The host/address of the bigip device
The iControl REST username
The iControl REST password
The type of monitor(s) to list
The name of the monitor to list
CLI Example:
salt '*' bigip.list_monitor bigip admin admin http my-http-monitor
A function to connect to a bigip device and list all nodes or a specific node.
The host/address of the bigip device
The iControl REST username
The iControl REST password
The name of the node to list. If no name is specified than all nodes will be listed.
The label of the transaction stored within the grain:
bigip_f5_trans:<label>
CLI Example:
salt '*' bigip.list_node bigip admin admin my-node
A function to connect to a bigip device and list all pools or a specific pool.
The host/address of the bigip device
The iControl REST username
The iControl REST password
The name of the pool to list. If no name is specified then all pools will be listed.
CLI Example:
salt '*' bigip.list_pool bigip admin admin my-pool
A function to connect to a bigip device and list an existing profile. If no name is provided than all profiles of the specified type will be listed.
The host/address of the bigip device
The iControl REST username
The iControl REST password
The type of profile(s) to list
The name of the profile to list
CLI Example:
salt '*' bigip.list_profile bigip admin admin http my-http-profile
A function to connect to a bigip device and list an existing transaction.
The host/address of the bigip device
The iControl REST username
The iControl REST password
the label of this transaction stored within the grain:
bigip_f5_trans:<label>
CLI Example:
salt '*' bigip.list_transaction bigip admin admin my_transaction
A function to connect to a bigip device and list all virtuals or a specific virtual.
The host/address of the bigip device
The iControl REST username
The iControl REST password
The name of the virtual to list. If no name is specified than all virtuals will be listed.
CLI Example:
salt '*' bigip.list_virtual bigip admin admin my-virtual
A function to connect to a bigip device and modify an existing monitor.
The host/address of the bigip device
The iControl REST username
The iControl REST password
The type of monitor to modify
The name of the monitor to modify
Consult F5 BIGIP user guide for specific options for each monitor type. Typically, tmsh arg names are used.
CLI Example:
salt '*' bigip.modify_monitor bigip admin admin http my-http-monitor timout=16 interval=6
A function to connect to a bigip device and modify an existing node.
The host/address of the bigip device
The iControl REST username
The iControl REST password
The name of the node to modify
[integer]
[string]
[integer]
[enabled | disabled]
[[name] | none | default]
[integer]
[integer]
[user-enabled | user-disabled]
[user-down | user-up ]
The label of the transaction stored within the grain:
bigip_f5_trans:<label>
CLI Example:
salt '*' bigip.modify_node bigip admin admin 10.1.1.2 ratio=2 logging=enabled
A function to connect to a bigip device and modify an existing pool.
The host/address of the bigip device
The iControl REST username
The iControl REST password
The name of the pool to modify.
[yes | no]
[yes | no]
[string]
[string]
[yes | no]
[pass-through | [integer]]
[pass-through | [integer]]
[pass-through | [integer]]
[pass-through | [integer]]
[dynamic-ratio-member | dynamic-ratio-node | fastest-app-response | fastest-node | least-connections-members | least-connections-node | least-sessions | observed-member | observed-node | predictive-member | predictive-node | ratio-least-connections-member | ratio-least-connections-node | ratio-member | ratio-node | ratio-session | round-robin | weighted-least-connections-member | weighted-least-connections-node]
[integer]
[integer]
[failover | reboot | restart-all]
[enabled | disabled]
[name]
[none | profile_name]
[enabled | disabled]
[integer]
[integer]
[integer]
[drop | none | reselect | reset]
[integer]
CLI Example:
salt '*' bigip.modify_pool bigip admin admin my-pool 10.1.1.1:80,10.1.1.2:80,10.1.1.3:80 min_active_members=1
A function to connect to a bigip device and modify an existing member of a pool.
The host/address of the bigip device
The iControl REST username
The iControl REST password
The name of the pool to modify
The name of the member to modify i.e. 10.1.1.2:80
[integer]
[string]
[integer]
[enabled | disabled]
[enabled | disabled]
[name]
[integer]
[none | profile_name]
[integer]
[integer]
[user-enabled | user-disabled]
[ user-up | user-down ]
CLI Example:
salt '*' bigip.modify_pool_member bigip admin admin my-pool 10.2.2.1:80 state=use-down session=user-disabled
A function to connect to a bigip device and create a profile.
A function to connect to a bigip device and create a profile.
The host/address of the bigip device
The iControl REST username
The iControl REST password
The type of profile to create
The name of the profile to create
[ arg=val ] ... [arg=key1:val1,key2:val2] ...
Consult F5 BIGIP user guide for specific options for each monitor type. Typically, tmsh arg names are used.
Creating Complex Args
Profiles can get pretty complicated in terms of the amount of possible config options. Use the following shorthand to create complex arguments such as lists, dictionaries, and lists of dictionaries. An option is also provided to pass raw json as well.
- lists
[i,i,i]
:
param='item1,item2,item3'
- Dictionary
[k:v,k:v,k,v]
:
param='key-1:val-1,key-2:val2,key-3:va-3'
- List of Dictionaries
[k:v,k:v|k:v,k:v|k:v,k:v]
:
param='key-1:val-1,key-2:val-2|key-1:val-1,key-2:val-2|key-1:val-1,key-2:val-2'
- JSON:
'j{ ... }j'
:
cert-key-chain='j{ "default": { "cert": "default.crt", "chain": "default.crt", "key": "default.key" } }j'
- Escaping Delimiters:
Use
\,
or\:
or\|
to escape characters which shouldn't be treated as delimiters i.e.ciphers='DEFAULT\:!SSLv3'
CLI Example:
salt '*' bigip.modify_profile bigip admin admin http my-http-profile defaultsFrom='/Common/http'
salt '*' bigip.modify_profile bigip admin admin http my-http-profile defaultsFrom='/Common/http' \
enforcement=maxHeaderCount:3200,maxRequests:10
salt '*' bigip.modify_profile bigip admin admin client-ssl my-client-ssl-1 retainCertificate=false \
ciphers='DEFAULT\:!SSLv3'
cert_key_chain='j{ "default": { "cert": "default.crt", "chain": "default.crt", "key": "default.key" } }j'
A function to connect to a bigip device and modify an existing virtual server.
The host/address of the bigip device
The iControl REST username
The iControl REST password
The name of the virtual to modify
[ [virtual_address_name:port] | [ipv4:port] | [ipv6.port] ]
[ [pool_name] | none]
[yes | no]
[default | enabled | disabled ]
[none] | string]
[yes | no]
[yes | no}
[integer]
[string]
[disabled | enabled]
[none | [profile name] ]
[none | [eviction policy name] ]
[integer]
[yes | no]
[any | protocol]
[yes | no]
(12-forward) [yes | no]
[ [pool_name] | none]
{ [ipv4] | [ipv6] }
{ [disabled | enabled | none] }
[enabled | disabled]
[none | profile1,profile2,profile3 ... ]
[none | default | profile1,profile2,profile3 ... ]
[none | default | policy1,policy2,policy3 ... ]
[name]
[integer]
[destination | object | object-destination | object-source | object-source-destination | source | source-destination]
[integer]
[integer]
[none | [rule_one,rule_two ...] ]
[none | [rule_one,rule_two ...] ]
[yes | no]
{ [ipv4[/prefixlen]] | [ipv6[/prefixlen]] }
[none | snat:pool_name | lsn | automap ]
[change | preserve | preserve-strict]
[enabled | disable]
[none | default | class_one,class_two ... ]
[enabled | disabled]
[enabled | disabled]
[none | default | [enabled|disabled]:vlan1,vlan2,vlan3 ... ]
CLI Example:
salt '*' bigip.modify_virtual bigip admin admin my-virtual source_address_translation=none
salt '*' bigip.modify_virtual bigip admin admin my-virtual rules=my-rule,my-other-rule
A function to connect to a bigip device and replace members of an existing pool with new members.
The host/address of the bigip device
The iControl REST username
The iControl REST password
The name of the pool to modify
List of comma delimited pool members to replace existing members with. i.e. 10.1.1.1:80,10.1.1.2:80,10.1.1.3:80
CLI Example:
salt '*' bigip.replace_pool_members bigip admin admin my-pool 10.2.2.1:80,10.2.2.2:80,10.2.2.3:80
A function to connect to a bigip device and start a new transaction.
The host/address of the bigip device
The iControl REST username
The iControl REST password
The name / alias for this transaction. The actual transaction
id will be stored within a grain called bigip_f5_trans:<label>
CLI Example:
salt '*' bigip.start_transaction bigip admin admin my_transaction