iControl REST 101: Modifying Objects
So far in this series we’ve shown you how to connect to iControl REST via cURL, how to list objects on the device (which is probably the most used command for most APIs, including ours), and how to a...
Published Mar 13, 2014
Version 1.0Colin_Walker_12
Historic F5 Account
Joined May 12, 2005
Colin_Walker_12
Historic F5 Account
Joined May 12, 2005
Andrei_379458
Mar 25, 2019Historic F5 Account
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