robson_78577
Jun 14, 2017Nimbostratus
How to Get FailOver Status via iControl REST?
Hi Guys,
I´m playing with some REST calls, and I would like to get a specific information from a GET request. In the example:
GET , I got the following response:
{
"kind": "tm:cm:failover-status:failover-statusstats",
"selfLink": "[https://localhost/mgmt/tm/cm/failover-status?ver=12.1.2"](https://localhost/mgmt/tm/cm/failover-status?ver=12.1.2);,
"entries": {
"[https://localhost/mgmt/tm/cm/failover-status/0"](https://localhost/mgmt/tm/cm/failover-status/0);: {
"nestedStats": {
"entries": {
"color": {
"description": "green"
},
"[https://localhost/mgmt/tm/cm/failoverStatus/0/details"](https://localhost/mgmt/tm/cm/failoverStatus/0/details);: {
"nestedStats": {
"entries": {
"[https://localhost/mgmt/tm/cm/failoverStatus/0/details/0"](https://localhost/mgmt/tm/cm/failoverStatus/0/details/0);: {
"nestedStats": {
"entries": {
"details": {
"description": "active for /Common/traffic-group-1"
}
}
}
}
}
}
},
"status": {
"description": "ACTIVE"
},
"summary": {
"description": "1/1 active"
}
}
}
}
}
}
Is it possible to use query parameters to get a specific response? In the example above, I would only like to receive the appliance status (description": "ACTIVE"). I was trying to work with $filter and $select parameter but no success.
Plus, if someone could give me one example of each parameter, it would be great.