- URL:
- https://<root>/<serviceName>/NetworkDiagramServer/diagrams/<diagramName>/getDiagramElementInfo
- Methods:
POST
- Version Introduced:
- 11.3
Description
The get
operation returns the Info field values for the diagram elements you want in the diagram. It is performed on a diagram resource diagram resource. The result of this operation is a JSON object composed of two arrays—one listing the queried diagram element IDs, and the second with the Info field values for each queried diagram element.
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: |
(Required) | The way the diagram elements for which you want to query the Info field will be filtered out. The filtering can be processed in two different ways:
Syntax:
Example:
|
|
The response format. The default response format is html. Values: |
Example usage
Get Info field values on diagram junctions which ObjectIDs are 7018 and 7019 in the diagram TestDiagram1:
-
URL:
https
://myserver.esri.com/server/rest/services/ Naperville Electric/ Naperville _Electric _SQL _50898/ Network Diagram Server/diagrams/ Diagram Test1/get Diagram Element Info -
Parameters:
Use dark colors for code blocks Copy gdbVersion= sessionId= moment= diagramElementFilter={"type": "filterBySelection", "junctionObjectIDs":[7018,7019], "edgeObjectIDs":[], "containerObjectIDs":[]}
-
Sent URL (GET):
https
://myserver.esri.com/server/rest/services/ Naperville Electric/ Naperville _Electric _SQL _50898/ Network Diagram Server/diagrams/ Diagram Test1/get Diagram Element Info?gdb Version=&session Id=&moment=&diagram Element Filter=%7 B%22type%22%3 A+%22filter By Selection%22%2 C+%22junction Object I Ds%22%3 A%5 B7018%2 C7019%5 D%2 C+%22edge Object I Ds%22%3 A%5 B%5 D%2 C+%22container Object I Ds%22%3 A%5 B%5 D%7 D&f=pjson
JSON Response syntax
A JSON object composed of two arrays of values:
- diagramElementIDs —An array of Diagram Element IDs.
- diagramElementInfo—An array of Info field values for each diagram element.
{
"diagramElementIDs": [
<DEID_1>,
...,
<DEID_N>
],
"diagramElementInfo": [
<Info_1>,
...,
<Info_N>
]
}
JSON Response example
{
"diagramElementIDs": [
3,
4
],
"diagramElementInfo": [
"Info for DEID#3",
"Info for DEID#4"
]
}