- URL:
- https://[root]/portals/[portalID]/resources
- Methods:
GET
Example usage
The following is a sample ArcGIS Online request URL used to access the resources
endpoint:
https://org.arcgis.com/sharing/rest/portals/0123456789ABCDEF/resources?f=pjson
The following 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
Parameter | Details |
---|---|
| 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
|
| 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. |
| The response format. The default format is Values: |
Response properties
Property | Details |
---|---|
| The total number of results found. |
| The number of the first entry in the result set response. The index number is 1-based. |
| The number of results included in this result set response. |
| The next entry index if the current result set doesn't contain all results. |
| 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
}
]
}