Server Directories

URL:
https://<root>/system/directories
Methods:
GET
Required Capability:
Access allowed with any authorized privilege
Version Introduced:
10.1

Description

The directories resource returns all the server directories. You can add a new directory using the Register Directory operation. You can then configure GIS services to use one or more of these directories. If you no longer need the server directory, you must remove the directory by using the Unregister Directory operation.

Request parameters

ParameterDetails

f

The response format. The default response format is html.

Values: html | json | pjson

Example usage

The following is a sample request URL used to access the directories resource:

Use dark colors for code blocksCopy
1
https://machine.domain.com/webadaptor/admin/system/directories?f=pjson

JSON Response syntax

Use dark colors for code blocksCopy
1
2
3
{
  "directories": [<dir1>, <dir2>]
}

JSON Response example

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
  "directories": [
    {
      "name": "mycache",
      "physicalPath": "\\\\server\\arcgisserver\\mycache",
      "directoryType": "CACHE",
      "cleanupMode": "NONE",
      "maxFileAge": 0,
      "description": "Used by service configurations to read/write cached tiles.",
      "virtualPath": "/rest/directories/mycache"
    },
    {
      "name": "myjobs",
      "physicalPath": "\\\\server\\arcgisserver\\myjobs",
      "directoryType": "JOBS",
      "cleanupMode": "NONE",
      "maxFileAge": 0,
      "description": "Used to store GP jobs.",
      "virtualPath": "/rest/directories/myjobs"
    }
  ]
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.