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.
Request parameters
Parameter | Details |
---|---|
|
The name of the geodatabase version. Syntax: Example: |
|
The token (guid) used to lock the version. Syntax: Example: |
|
The session moment. Syntax: Example: |
|
The response format. The default response format is html. Values: |
Example usage
Access the list of the network diagrams in the Default version:
- URL:
https
://myserver.esri.com/server/rest/services/ Naperville/ Network Diagram Server/diagrams - Parameters:
f=pjson
- Sent URL (GET):
https
://myserver.esri.com/server/rest/services/ Naperville/ Network Diagram Server/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/ Network Diagram Server/diagrams -
Parameters
Use dark colors for code blocks Copy gdbversion=ABV1 f=pjson
-
Sent URL (GET):
https
://myserver.esri.com/server/rest/services/ Naperville/ Network Diagram Server/diagrams?gdbversion= AB V1&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"
]
}