Forum Discussion
Restful Parsing for virtualServer status
Hi, i have some question about a json response, get from this endpoint '/mgmt/tm/ltm/virtual/stats'.
I tried to parse the output of the following endpoint(json) '/mgmt/tm/ltm/virtual/stats' in a test environment with successfull result: the output is easy to understand
{
"entries": {
"clientside.bitsIn": {
"value": 0
}
...
}
}
In production, i got a different json.
To keep it easy, in the following example,i replaced in the real link, partition/name with a generic string (~vippartition~vipname):
{
"entries": {
"https://localhost/mgmt/tm/ltm/virtual/~vippartition~vipname/~vippartition~vipname/stats": {
"nestedStats": {
"entries": {
"clientside.bitsIn": {
"value": 0
}
...
}
}
The questions are: What's it? Why this difference in the structure of the json response?
Thank's at all
3 Replies
- Are you running the same version in test and prod?
- What's the exact query (without username and password)?
- Are you using curl, powershell, python?
/Patrik
- frapes_247370
Nimbostratus
The lab version is 11.6 and prod is 12.0 The query is this -> curl -s -k -u ..:.. '' I get the json and then do something with custom python script. Now, i know that there are some difference between the two version about the endpoint... but i don't found out something really specific about this sub-entries:
"entries": { "https://localhost/mgmt/tm/ltm/virtual/~vippartition~vipname/~vippartition~vipname/stats": {I would get what's meaning and structure, to implement the right development decision Thanks
Strange. I wasn't able to reproduce this in 11.5.4 or 12.1.2.
I wish I could tell you why they chose to do it that way, but the way I see it it's just matter of structure format. Hopefully mr Rahm will swing by with the answer soon.
/Patrik
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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