Resources

Description

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

Request Parameters

Parameter

Details

[Common Parameters]

For a complete listing, see Common parameters.

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 (return result #11 as the first entry in the response)

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.

NoteNote:

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.

Response Properties

Property

Details

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.

Example Usage

http://www.arcgis.com/sharing/rest/portals/fa019fbbfbb845d08cc9f0acde6dd8af/resources?f=pjson

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
      }
    ]
    }

7/5/2017