Skip To Content
ArcGIS Developer
Dashboard

/resources: Resources

  • URL:https://[root]/portals/[portalID]/resources

Example usage

Below is a sample ArcGIS Online request URL used to access the resources endpoint:

https://org.arcgis.com/sharing/rest/portals/0123456789ABCDEF/resources?f=pjson

Below is a sample ArcGIS Enterprise request URL used to access the resources endpoint:

https://machine.domain.com/webadaptor/sharing/rest/portals/0123456789ABCDEF/resources?f=pjson

Description

The resources endpoint lists all file resources for the organization. The start and num paging parameters are supported.

Request parameters

ParameterDetails
start

The number of the first entry in the result set response. The index number is 1-based. The default value of start is 1 (that is, the first search result). The start parameter, along with the num parameter, can be used to paginate the search results.

Example

start=11
num

The maximum number of results to be included in the result set response. The default value is 10, and the maximum allowed value is 100. The start parameter, along with the num parameter, can be used to paginate the search results.

Note:

The actual number of returned results may be less than num. This happens when the number of results remaining after start is less than num.

f

The response format. The default format is html.

Values: html | json | pjson

Response properties

PropertyDetails
total

The total number of results found.

start

The number of the first entry in the result set response. The index number is 1-based.

num

The number of results included in this result set response.

nextStart

The next entry index if the current result set doesn't contain all results.

resources

A JSON array of resource objects that contain the key, size, and created date of the resource.

JSON Response syntax


{
  "total": <total number of results>,  
  "start": <results in first set>,  
  "num": <number of results per page>,  
  "nextStart": <result number of next page>,
  "resources": [
    {
      "key":  "<key name>",
      "size": <size of resource>,
      "created": date created shown in UNIX time
    },
    {
      "key":  "<key name>",
      "size": <size of resource>,
      "created": date created shown in UNIX time
    }
  ]
}

JSON Response example


{
  "total":  2,
  "start":  1,
  "num": 10,
  "nextStart": -1,
  "resources": [
    {
      "key":  "banner.jpg",
      "size": 4688,
      "created": 1313796950000
    },
    {
      "key":  "logo.png",
      "size": 4479,
      "created": 1313702941000
    }
  ]
}