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

Can't export device details using GET devices/exportDevices

michaelatef
Level 1
Level 1

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>

1 Accepted Solution

Accepted Solutions

michaelatef
Level 1
Level 1

Figured out that the username was not assigned to NBI Credential user group as mentioned by the API doco

View solution in original post

1 Reply 1

michaelatef
Level 1
Level 1

Figured out that the username was not assigned to NBI Credential user group as mentioned by the API doco