Select to view content in your preferred language

Swagger UI -- ArcGIS Velocity Admin API ??

271
8
Jump to solution
10-15-2025 07:16 PM
JeffSilberberg
Frequent Contributor

When using the Swagger UI to get a list of the;

    Feeds - Feed Manager Rest Adapter -  GET to fetch a list of all Feeds 
    RTAs   - Real Time Analytic Rest Adapter - GET to fetch all Real Time Analytic tasks. 

I get valid JSON response files.  But it's only for the items owned by the ID I logged in with, and I need a list of all the items in the Organization that my ID can see or access.   Does anyone know how to tell the query to get all the organization's items ?  Is there another parameter that is not documented?

curl -X 'GET' \ 'https://us4-iot.arcgis.com/advanced/{oAth}/iot/feed' \ -H 'accept: application/json' \ -H 'Authorization: token={token here}' \ -H 'Referer: https://us4-iot.arcgis.com/advanced/iqmxifcc2nngkvph/iot/api/swagger.html'

Process the resulting JSON file through jq and outputting a CSV lets me bring the list into my markup document.

TIA -- 

 

 

 

   

0 Kudos
1 Solution

Accepted Solutions
JeffSilberberg
Frequent Contributor

@PeterNasuti 

    That works mostly -- 

     /iot/feed?view=admin
     /iot/analytics/realtime?view=admin
     /iot/analytics/realtime/".id."/status

    Got me mostly where I want to be, but I still can't find the Owner of the object?  

    An I got a couple of Status Unknown,  name -> value pairs. 

    I think this information is very important to have and I will be snapshotting it every Sunday from my customers. 

 

    

    

 

View solution in original post

0 Kudos
8 Replies
JeffSilberberg
Frequent Contributor

@JeffEisman 

     Bump, hoping someone can tell me how to use Swagger to get a list of all the Organizations RTAs, not just the ones I own. 

 

 

0 Kudos
JeffEismanGIS
Esri Contributor

@JeffSilberberg   sorry I missed this question that user of mine tagged is a old community user I don't use.   

You are correct that swagger will only show the items that you own, at this time there is no out of the box way to generate a list of the status of all the items in a velocity org.  You can see them on the UI  if you are a admin though. 

The way to do that is login as a admin and go to the Utilization tab on the left hand side of the page and under compute you will see a list of all running items.  

JeffEismanGIS_0-1761914835917.png

From that page you could look at the network traffic and under Details and see a list as well 

JeffEismanGIS_1-1761915394846.png

We are looking into possible future enhancements to monitor velocity in more detail 

0 Kudos
JeffSilberberg
Frequent Contributor

 

Okay, I will try that -  Thank you. 

0 Kudos
JeffSilberberg
Frequent Contributor

Okay, 

   Not very user-friendly, but I do see that information. Interestingly, the Page includes the object's owner, but looking at the detail and status JSON buckets, I do not see the object owner included.

    Details has the Feed infomation, if I am looking at this correctly, and Status the RTAs/BDAs. But, what's the difference in the three status?view=admin sections? 

 

JeffSilberberg_0-1761939078052.png

 

    

0 Kudos
PeterNasuti
Esri Contributor

@JeffSilberberg Appending ?view=admin to the status requests AND providing an administrative authorization header token will bring back status of all items, not just items your user owns.

This request mechanism is how the "Organization content" pages are populated. I tested the below in postman and confirmed success.

  • /iot/feed/status
  • /iot/feed/status?view=admin
  • /iot/analytics/realtime/status
  • /iot/analytics/realtime/status?view=admin
0 Kudos
JeffSilberberg
Frequent Contributor

@PeterNasuti 

    That works mostly -- 

     /iot/feed?view=admin
     /iot/analytics/realtime?view=admin
     /iot/analytics/realtime/".id."/status

    Got me mostly where I want to be, but I still can't find the Owner of the object?  

    An I got a couple of Status Unknown,  name -> value pairs. 

    I think this information is very important to have and I will be snapshotting it every Sunday from my customers. 

 

    

    

 

0 Kudos
PeterNasuti
Esri Contributor

@JeffSilberberg The Velocity UI uses that call to collect feed/analytic item status of all items of that type in the Velocity org. Then it does an ArcGIS Online content search "/sharing/rest/search" with structure such as: 
https://arcgis.com/sharing/rest/search?f=json&q=(type: "Real Time Analytic") AND (orgid: <yourOrgID>)&num=100&start=0&sortField=title&sortOrder=descending&token=<yourToken> and joins the owner name from matching the item ID. 

0 Kudos
JeffSilberberg
Frequent Contributor

 

Okay, going to leave what I have for now.  It at least gives me a good snapshot of the state of world before the update later this week..  

 

 

0 Kudos