Select to view content in your preferred language

Portal Admin Machines REST

2284
14
Jump to solution
12-03-2020 07:00 PM
DeanHowell1
Occasional Contributor III

We need to be able to query the REST end point for the portal machines to determine the primary and standby machines but not sure what the syntax needs to be for accessing it outside the portal administrator.

The REST end point is https://admin.portal...../arcgis/portaladmin/machines?f=pjson  which works when I am in the portal admin but how do we add this to an external application with credentials / token? 

 

Tags (2)
0 Kudos
14 Replies
DavidPike
MVP Frequent Contributor

did it work for you?

The token will last until it expires (in my example 60 minutes) and can be used for any query and doesn't need to be regenerated for a new query (if not expired of course).

You can also encode the token in a json request, but I get to the stage with this stuff that I'm happy if anything just works.

0 Kudos
DeanHowell1
Occasional Contributor III

Thanks @DavidPike that is working, almost as it looks like we have some firewall issues 🙂

0 Kudos
DeanHowell1
Occasional Contributor III

Hello @DavidPike I have been told that there is a proxy in place and that could be causing the issue of not being able to get the results I need. Do you know how to use the proxy https://cls-bx-proxy with what you have suggested above?

0 Kudos
DavidPike
MVP Frequent Contributor

can you elaborate on the issue?

0 Kudos
DeanHowell1
Occasional Contributor III

I am getting a token returned using the script but I then get a 'Forbidden 403' message. So it has been suggested to use the proxy server but not sure how to configure that into the script.

DeanHowell1_0-1607391496930.png

 

0 Kudos