Forum Discussion
Rudra_Mahapatra
Nimbostratus
Sep 25, 2017How to change persist value (in F5 LB) to "None" using rest api
Using rest api I am able to change default persistence profile from None to dest_addr / source_addr. But I am not able to change it back to "None" (using rest API) from dest_addr / source_addr.
...
Satoshi_Toyosa1
Sep 27, 2017Ret. Employee
Use
null
(without quotation) or {}
(means empty object). Also, use PATCH
for modification. For example (using curl),
Check the current persistence configuration of the virtual
VS-HTTP
(with dest_addr
).
curl -sku user:pass https:///mgmt/tm/ltm/virtual/VS-HTTP?\$select=persist
Output as below:
{ persist:
[ { name: 'dest_addr',
partition: 'Common',
tmDefault: 'yes',
nameReference: { link: 'https://localhost/mgmt/tm/ltm/persistence/dest-addr/~Common~dest_addr?ver=12.1.2' } } ] }
Change it to "none".
curl -sku user:pass https:///mgmt/tm/ltm/virtual/VS-HTTP \
-H "Content-Type: application/json" \
-X PATCH -d '{"persist":{}}'
Now check it again using the GET request. The output should show:
{}
See also "About null values and properties" section of iControl® REST API User Guide, Version 12.1.0, p. 18.
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