Services Directory

URL:
https://<root>/system/handlers/rest/servicesdirectory
Methods:
GET
Operations:
Edit
Required Capability:
Access allowed with either the "Update", "Delete", "Security and Infrastructure", or "Servers" privileges
Version Introduced:
10.1

Description

The servicesdirectory resource lists properties of the ArcGIS Services Directory REST API. You can edit these properties if you want to disable the Services Directory or point its previews at a locally-hosted JavaScript API or to Map Viewer Classic.

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 for the servicesdirectory resource:

1
https://machine.domain.com/webadaptor/admin/system/handlers/rest/servicesdirectory?f=pjson

JSON Response syntax

1
2
3
4
5
6
7
8
9
10
11
12
{
  "jsapi.arcgis.css": <URL of CSS file>,
  "jsapi.arcgis.css2": <URL of second CSS file>,
  "arcgis.com.map.text": <Text for  preview link>,
  "allowedOrigins": <Comma separated list of allowed URLs>,
  "arcgis.com.map": <URL to >,
  "jsapi.arcgis": <URL to JavaScript API>,
  "callbackFunctionsEnabled": <true|false>, //Added at 11.0.
  "consoleLogging": <true|false>,
  "jsapi.arcgis.sdk": <URL of JavaScript API help>,
  "enabled": <true|false>
}

JSON Response example

1
2
3
4
5
6
7
8
9
10
11
12
{
  "jsapi.arcgis.css": "https://js.arcgis.com/4.23/esri/css/main.css",
  "arcgis.com.map.text": "ArcGIS Online Map Viewer",
  "logLevel": "SEVERE",
  "allowedOrigins": "*",
  "arcgis.com.map": "https://www.arcgis.com/home/webmap/viewer.html",
  "jsapi.arcgis": "https://js.arcgis.com/4.23/",
  "callbackFunctionsEnabled": "true",
  "consoleLogging": "false",
  "jsapi.arcgis.sdk": "https://developers.arcgis.com/javascript/",
  "enabled": "true"
}

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

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close