Skip To Content

Network Diagrams

Description

The Network Diagrams resource represents all the network diagrams under a 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
Licencia:
The active portal account must be assigned a license with the ArcGIS Advanced Editing user type extension to use this resource.

Request parameters

ParameterDetails
gdbVersion

Description: The name of the geodatabase version.

Syntax: gdbVersion=<version>

Example: gdbVersion=ABV1

sessionId

Description: The token (guid) used to lock the version.

Syntax: sessionId=<guid>

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

moment

Description: The session moment.

Syntax: moment=<moment>

Example: moment=1490867969324

f

Description: 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
    gdbversion=ABV1
    f=pjson
  • Sent URL (GET): https://myserver.esri.com/server/rest/services/Naperville/NetworkDiagramServer/diagrams?gdbversion=ABV1&f=pjson

JSON Response syntax

{
 "diagramNames": ["< diagramName1 >", ..., "< diagramNameN >"]
}

JSON Response example

{
 "diagramNames": [
  "Test1",
  "Basic_RMT001",
  "Basic_RMT003",
  "Switching_SmarTree_RMT003",
  "Switching_SmarTree_RMT001",
  "Switching_ConnectedTest",
  "Test2",
  "007YTS15gh_smart",
  "ReducedDiagramAreaNorthWest"
 ]
}