Forum Discussion
thuyngnhu
Jan 13, 2023Altostratus
Net Trunk API Status Field Missing
As the subject suggests, I made an api call to the path /mgmt/tm/net/trunk but there is no status field in the api response even though status field appears in both cli (show net trunk) and gui. Do y...
- Jan 13, 2023
trunk name such as "test-trunk", get its Status attribute you need to bring /stats in the end, example api url is:
curl -sku 'admin:xt32112300' https://192.168.5.109/mgmt/tm/net/trunk/test-trunk/stats | jq .
Of course, if the clear path of the url you not confirm, icontrol rest api gives an until.bash api, which can send the linux bash command to bigip, cmds like "tmsh show net trunk", it will return show net trunk result
thuyngnhu
Jan 13, 2023Altostratus
Thanks, it works like a charm!
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