cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1734
Views
2
Helpful
2
Replies

APIC-EM GA /network-device API Call

bdoinea
Cisco Employee
Cisco Employee

Dears,

I am trying from Postman to make a request to the /network-device service but cannot get the list of devices as a response. Although I get a HTTP 200, the body response I get is: "

{

  "response": [],

  "version": "1.0"

}

"

I am using the Headers application/json and X-Auth-Token with a valid token. I can confirm it's valid since the call to /user works just fine.

I am suspecting the reason is a "Scope" parameter I have encountered in the Swagger API, but cannot figure out what that is and what value I should offer.

Help is appreciated.

Thanks,

Bogdan

1 Accepted Solution

Accepted Solutions

Found it - rather obvious really, network discovery wasn't yet done.

Thanks!

B.

View solution in original post

2 Replies 2

yawming
Cisco Employee
Cisco Employee

Which lab you were using ?

Do you get empty response always ?  You may get empty response from GET /host but for the network-device you should get something back.

For the scope in Swagger just enter "all".

Can you share you Postman collection ?

Found it - rather obvious really, network discovery wasn't yet done.

Thanks!

B.