Forum Discussion
Satoshi_Toyosa1
Sep 27, 2017Employee
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.