Proxies

Description

All ArcGIS Online hosted proxy services set on a registered app item with the Registered App type keyword. This resource is only available to the item owner and the organization administrator.

Request Parameters

Parameter

Details

[Common Parameters]

For a complete listing, see Common parameters.

Response Properties

Property

Details

appProxies

A JSON array consisting of the hosted service URLs to proxy, proxy URLs, proxy IDs and rate limiting for each service.

Example:

[{
  "sourceUrl": "https://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",
  "proxyUrl": "http://utility.arcgis.com/sharing/appservices/23NxxdEqioSHtmDl/rest/services/World/Route/NAServer/Route_World",
  "proxyId": "23NxxdEqioSHtmDl"
  }, {
  "sourceUrl": "https://hydro.arcgis.com/arcgis/rest/services/Tools/Hydrology/GPServer",
  "proxyUrl": "http://utility.arcgis.com/sharing/appservices/j0e7E3hSGw1wQPWi/rest/services/Tools/Hydrology/GPServer",
  "hitsPerInterval": 100,
  "intervalSeconds": 60,
  "proxyId": "j0e7E3hSGw1wQPWi"
}]

Example Usage

URL for Proxies

http://www.arcgis.com/sharing/rest/content/users/jsmith/items/266800bbb6814b13be966c1c88a59c4c/proxies

JSON Response Syntax

{"appProxies": [
    {
      "sourceUrl": "<hosted service URL to proxy1>",
      "proxyUrl": "<proxy URL1>",
      "proxyId": "proxy ID1"
    },
    {
      "sourceUrl": "<hosted service URL to proxy2>",
      "proxyUrl": "<proxy URL2>",
      "hitsPerInterval": number of requests allowed per time interval,
      "intervalSeconds": time interval in seconds,
      "proxyId": "proxy ID2"
    }
  ]}

JSON Response Example

{"appProxies": [
    {
      "sourceUrl": "https://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",
      "proxyUrl": "http://utility.arcgis.com/sharing/appservices/23NxxdEqioSHtmDl/rest/services/World/Route/NAServer/Route_World",
      "proxyId": "23NxxdEqioSHtmDl"
    },
    {
      "sourceUrl": "https://hydro.arcgis.com/arcgis/rest/services/Tools/Hydrology/GPServer",
      "proxyUrl": "http://utility.arcgis.com/sharing/appservices/j0e7E3hSGw1wQPWi/rest/services/Tools/Hydrology/GPServer",
      "hitsPerInterval": 100,
      "intervalSeconds": 60,
      "proxyId": "j0e7E3hSGw1wQPWi"
    }
  ]}

10/6/2017