iControl REST 101: Modifying Objects
Published Mar 13, 2014
Version 1.0Was this article helpful?
just to address some of the comments above. "all-properties" will show all (including default) properties available, including "allowService" (which in the GUI is under SelfIPs->cw_test2->PortLockdown. Below command lists all properties:
(tmos) list net self cw_test2 all-properties
net self cw_test2 {
address 10.1.10.123/24
address-source from-user
allow-service none
app-service none
description none
floating disabled
fw-enforced-policy none
fw-staged-policy none
inherited-traffic-group false
partition Common
service-policy none
traffic-group traffic-group-local-only
unit 0
vlan external
`
Below worked for me to modify the allowService property:
curl -sku admin:admin https://192.168.168.65/mgmt/tm/net/self/cw_test2 -H "Content-Type: application/json" -X PATCH -d "{\"allowService\":\"all\"}" | jq
or:
curl -sku admin:admin https://192.168.168.65/mgmt/tm/net/self/cw_test2 -H "Content-Type: application/json" -X PATCH -d '{"allowService":"all"}' | jq
which was run on:
`(tmos) show /sys version
Sys::Version
Main Package
Product BIG-IP
Version 13.1.1.3
Build 0.0.1
Edition Point Release 3
Date Wed Nov 28 18:50:45 PST 2018
thanks