inconsistent object structure in Panorama REST API responses

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

inconsistent object structure in Panorama REST API responses

L0 Member

Hello,
I would like to understand if some responses that we receive are valid (via Panorama REST APIs).
The problem is that some object fields may receive different formats for seemingly identical value types.
For example:

FQDN:
Expected: 
{
"@name": "FQDN_Test_Name",
                "@location": "shared",
                "fqdn": "test.madeup-fqdn.io"
},
Unexpected:
{
                "@name": "FQDN_Test_Name",
                "@loc": "shared",
                "@location": "shared",
                "fqdn": {
                                "@loc": "shared",
                                "text": "test.madeup-fqdn.io"
                }
},

IP-netmask:
Expected:
{
                "@name": "H_10.111.111.111",
                "@location": "shared",
                "ip-netmask": "10.111.111.111/32"
}

Unexpected:
{
                "@name": "H_10.111.111.111",
                "@loc": "shared",
                "@location": "shared",
                "ip-netmask": {
                                "@loc": "shared",
                                "text": "10.111.111.111/32"
                },
                "description": {
                                "@loc": "shared",
                                "text": "IN-CCU"
                }
},


These discrepancies are repeated over and over again on a variety of different fields and objects basically in the same way:
we usually expect a string value but receive an object.

What I would like to know is first of all is it valid from Panorama's stand point? is it considered as some sort of a corrupted data?
Can it potentially cause unexpected issues in Panorama?
Can you tell what exactly is causing these discrepancies ?

How common is to see these mismatches?


Thanks

0 REPLIES 0
  • 589 Views
  • 0 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!