04-12-2018 04:24 PM
Hey Guys,
I followed the API Documentation and i am trying to export the details of one device using postman but getting error "Access is denied to "+"Prime Infrastructure";, i can Get other resources just fine with the same username & PWD and the IP address am using is in Prime... so i am not sure where is the issue ! ... Any help would be appreciated
Here is the URL exactly from the Documentation:
https://USER:PWD@PRIME_IP/webacs/api/v3/op/devices/exportDevices.json?ipAddress=IP_ADDRESS
And here is the response from Prime API:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="https://community.cisco.com/webacs/styles/wcs.css" type="text/css">
<script type="text/javascript">
function windowTitle()
{
var productName = 'Prime Infrastructure';
if(productName=="Prime Infrastructure"){
parent.document.title ="Access is denied to "+"Prime Infrastructure";
}else if(productName=="Evolved Programmable Network Manager"){
parent.document.title ="Access is denied to"+"EPN Manager";
}
}
</script>
</head>
<body onload="windowTitle();" class="popup" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" height="62" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="62" width="180"> </td>
<td valign="bottom" style="background-color:#ffffff;>
<div class="mainMenu">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="43" valign="bottom">
</td>
</tr>
<tr>
<td bgcolor="FFFFFF" height="19"> </td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td valign="top">
<div class="navBar"> </div>
</td>
<td valign="top">
<div class="content">
<table>
<tr>
<td class="pageTitleProp">
Access is denied to
Prime Infrastructure.
<br>Please contact the network administrator</br>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
<div class="alarms"> </div>
</body>
</html>
Solved! Go to Solution.
04-12-2018 04:39 PM
Figured out that the username was not assigned to NBI Credential user group as mentioned by the API doco
04-12-2018 04:39 PM
Figured out that the username was not assigned to NBI Credential user group as mentioned by the API doco
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide