Network Diagrams

URL:
https://<root>/<serviceName>/NetworkDiagramServer/diagrams
Methods:
POST
Version Introduced:
10.6

Description

The diagrams resource provides access to all network diagrams under a published network diagram service. It is returned as an array of network diagram names. By default, only the diagrams in Default are returned.

Network Diagrams REST end point

Request parameters

ParameterDetails

gdbVersion

The name of the geodatabase version.

Syntax: gdbVersion=<version>

Example: gdbVersion=ABV1

sessionId

The token (guid) used to lock the version.

Syntax: sessionId=<guid>

Example: sessionId=44G259DE-87B0-407D-8F2E-DCB7665DD0F0

moment

The session moment.

Syntax: moment=<moment>

Example: moment=1490867969324

f

The response format. The default response format is html.

Values: <html | json>

Example usage

Access the list of the network diagrams in the Default version:

  • URL: https://myserver.esri.com/server/rest/services/Naperville/NetworkDiagramServer/diagrams
  • Parameters: f=pjson
  • Sent URL (GET): https://myserver.esri.com/server/rest/services/Naperville/NetworkDiagramServer/diagrams?f=pjson

Access the list of the network diagrams in a specific version called ABV1:

  • URL: https://myserver.esri.com/server/rest/services/Naperville/NetworkDiagramServer/diagrams

  • Parameters

    Use dark colors for code blocksCopy
    1
    2
    gdbversion=ABV1
    f=pjson
  • Sent URL (GET): https://myserver.esri.com/server/rest/services/Naperville/NetworkDiagramServer/diagrams?gdbversion=ABV1&f=pjson

JSON Response syntax

Use dark colors for code blocksCopy
1
2
3
{
 "diagramNames": ["< diagramName1 >", ..., "< diagramNameN >"]
}

JSON Response example

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
{
 "diagramNames": [
  "Test1",
  "Basic_RMT001",
  "Basic_RMT003",
  "Switching_SmarTree_RMT003",
  "Switching_SmarTree_RMT001",
  "Switching_ConnectedTest",
  "Test2",
  "007YTS15gh_smart",
  "ReducedDiagramAreaNorthWest"
 ]
}

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