Getting started with the python SDK part 4: working with request parameters
In the previous article in this series, we looked at how to work with statistics. In this article, we’ll mirror some of the naked query parameters covered in the Demystifying iControl REST part 3 art...
Updated Jun 06, 2023
Version 2.0JRahm
Admin
Joined January 20, 2005
Jun 15, 2018
Hi Jason,
thanks for this one as well (5*).
Along to
$select
and filter
I´m using the options
query parameter as well in other contexts.
- Removing configuration objects
remove all management routes by using a globbing wildcard:
method:DELETE
path: /mgmt/tm/sys/management-route
query:
options='*'
or options=all
remove a set of unused pools by using more specific globbing, i.e.:
method:
DELETE
path:
/mgmt/tm/ltm/pool
query:
options='pool_test_*'
- Select partitions to save
save i.e. "my_partition" (using encoded spaces and curly braces):
method:
POST
data:
{"command":"save"}
path:
/mgmt/tm/sys/config
query:
options=partitions%20%7B%20my_partition%20%7D
- Lookup detailled statistics
retrieve detailled statistics for a pool (i.e. my_pool) including node information:
method:
GET
path:
/mgmt/tm/ltm/pool/~Common~mypool/stats
query:
options=detail
Thanks to you and the other folks for putting up all this stuff.
It helps me a lot to get my job done!
Cheers, Stephan