13-Jan-2023 06:19 - edited 13-Jan-2023 06:20
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 you guys know how to get the status of the trunk? Thanks a lot!
Solved! Go to Solution.
13-Jan-2023 09:32
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
13-Jan-2023 09:32
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
13-Jan-2023 10:16
Thanks, it works like a charm!