URL:
https://<root>/<serviceName>/NetworkDiagramServer/templates
Methods:
POST
Child Resources:
Template
Version Introduced:
10.6

Description

The templates resource represents all diagram templates under a Network Diagram service. It returns an array of template names. The returned templates can be filtered based on the type of input data they support.

Conceptual representation of Diagram Templates resource

Request parameters

ParameterDetails

diagramTemplateInput (Optional)

Added in ArcGIS Enterprise 12.2.

The type of input data supported by the templates to be queried:

  • esriFromSelectionInNetwork—To retrieve all templates configured to generate diagrams from a network selection,
  • esriFromTraceLocation—To retrieve all templates configured to generate diagrams from trace locations,
  • esriFromSelectedCircuitName—To retrieve all templates configured to generate diagrams from a selected circuit.

Syntax:

Use dark colors for code blocksCopy
1
allLayers=<esriFromSelectionInNetwork | esriFromTraceLocation | esriFromSelectedCircuitName>

Example:

Use dark colors for code blocksCopy
1
diagramTemplateInput=esriFromTraceLocation

f

The response format. The default response format is html.

Values: <html | json>

Example usage

https://myserver.esri.com/server/rest/services/Naperville/NetworkDiagramServer/?diagramTemplateInput=esriFromSelectedCircuitName&f=pjson

JSON Response syntax

Use dark colors for code blocksCopy
1
2
3
{
 "templates": ["< templateName1 >", ..., "< templateNameN >"]
}

JSON Response example

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
{
 "templates": [
  "CircuitDiagramPort",
  "CircuitDiagramNoPort",
  "UpstreamCircuitDiagram",
  "DownstreamCircuitDiagram"
 ]
}

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