Forum Discussion
Satoshi_Toyosa1
Dec 13, 2018Employee
For those who wants to see straight curl command examples:
tmsh list cm device-group HA
equivalent is (where HA
is the device-group name):
curl -sku : https:///mgmt/tm/cm/device-group/HA?expandSubcollections=true
tmsh show cm device-group HA
is:
curl -sku : https:///mgmt/tm/cm/device-group/HA/stats
tmsh list cm device-group HA devices
is:
curl -sku : https:///mgmt/tm/cm/device-group/HA?\$select=devicesReference
To remove the device-group
HA
, you need to first remove the devices from the group:
tmsh modify cm device-group HA devices none
is:
curl -sku : https:///mgmt/tm/cm/device-group/HA \
-X PATCH -H "Content-type: application/json" \
-d '{"devicesReference": {"items": []}}'
tmsh delete cm device-group HA
is:
curl -sku : https:///mgmt/tm/cm/device-group/HA -X DELETE
tmsh delete cm trust-domain all
is
curl -sku : https:///mgmt/tm/cm/trust-domain -X DELETE