Edit Directory

Description

The server directory's edit operation allows you to change the path and clean up properties of the directory. This operation updates the GIS service configurations (and points them to the new path) that are using this directory, causing them to restart. It is therefore recommended that any edit to the server directories be performed when the server is not under load.

This operation is mostly used when growing a single-machine-site to a multiple-machine-site configuration, which requires that the server directories and configuration store be put on a network-accessible file share.

NoteNote:

  • You cannot edit the properties of UPLOADS, KML, INDEX, JOBREGISTRY, and INPUT directory types. These types are maintained internally by the server under the umbrella of the SYSTEM directory type.
  • GIS services that reference server directories in their configuration are updated automatically and restarted.

Request Parameters

Parameter

Details

physicalPath

Description: The absolute physical path of the server directory.

cleanupMode

Description: Defines whether files in the server directory need to be cleaned up.

The allowed values are NONE and TIME_ELAPSED_SINCE_LAST_MODIFIED.

maxFileAge

Description: Defines how long a file in the directory needs to be kept (in days) before it is deleted.

description

Description: An optional description for the server directory.

f

Description: The response format. The default response format is html.

Values: html | json

Example Usage

http://server:port/arcgis/admin/system/directories/arcgisjobs/edit
	physicalPath=\\server\arcgisserver\arcgisoutput
	description=A shared output directory for multi-node server.
	cleanupMode=TIME_ELAPSED_SINCE_LAST_MODIFIED
	maxFileAge=360

9/13/2017