Forum Discussion
Vish_378264
Nimbostratus
Dec 03, 2018REST API examples related to devices, devicegroups and trust domain
Looking for links that shows REST API usage for the below with example POST bodies and correct usage
Check for a device group (https://{{ server_ip }}:{{ device_port }}/mgmt/tm/cm/device-group/...
Satoshi_Toyosa1
Dec 13, 2018Ret. Employee
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
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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