Making WAN interfaces for Prisma SD-WAN sites with API calls

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

Making WAN interfaces for Prisma SD-WAN sites with API calls

L1 Bithead

I keep getting an error attempting this.  I am using the Api from the pan.dev site the API call is :

 

https://api.hood.cloudgenix.com/v2.7/api/tenants/xxxxxxx/sites/xxxxxxxx/waninterfaces I enter the info I think I need to create the circuit ID on the site. I get this error  error":[{"code":"INVALID_JSON_INPUT","message":"\"Input JSON does not have all required attributes.\""}]}  Has anyone used this API call before with success?  
4 REPLIES 4

L1 Bithead

L1 Bithead

I was able to make this api call by opening a case with Palo Alto.  It was a payload problem with me.

L0 Member

@T.Colvin , if only you had taken 30 more seconds to paste the resolution that was given to you.. you could have helped more people faster. ;(

L0 Member

I had similar issues w/ the endpoint documented on https://pan.dev/sdwan/api/put-sdwan-v-2-1-api-elementusers-user-id/

I enabled the developer tools in my browser and captured the network traffic HAR while doing the activity that I wanted within the GUI (I was messing w/ device toolkit users in StrataCloudManager for SDWAN portal).. when I isolated the PUT command and analyzed it with AI's help, we noticed some differences.. We tried different combinations of things and ultimately settled on this where base is what is documented..

Base + _etag + _schema + lowercase role ← ONLY THIS WORKS
======================================================================
TEST 5: Base + _etag + _schema + lowercase role (GUI format)
======================================================================
Payload: {
"id": "163060247<truncated>",
"is_tenant_level": false,
"login_id": "cgnx",
"role": "super",
"username": "cgnx",
"_etag": 25,
"_schema": 1
}
Status: 200
✓✓✓ SUCCESS with lowercase role!
Updated is_tenant_level: False


Moral of the story: capture your action in browser developer tools in the UI and let an AI figure out what the documentation lacks! 😉

  • 2940 Views
  • 4 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!