- URL:
- https://<root>/<serviceName>/NetworkDiagramServer/findDiagramInfos
- Methods:
- POST
- Version Introduced:
- 10.6
Description
The find operation returns the diagram info object for each of the diagram names specified in input. It is performed on a Network Diagram Service resource. The result of this operation is an array of Diagram Information JSON objects.
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) | An array of strings, each one corresponding to a diagram name, for which you want to get diagram information. Syntax:  Example:  | 
| 
 | The response format. The default response format is html. Values:  | 
Example usage
Retrieving the diagram information objects for two diagrams called "DiagramTest1" and "DiagramTest2" in a version called ABV1, that is:
- 
URL: https://myserver.esri.com/server/rest/services/ Naperville/ Network Diagram Server/find Diagram Infos 
- 
Parameters: Use dark colors for code blocks Copy gdbVersion=ABV1 sessionId= moment= diagramNames=["DiagramTest2","DiagramTest1"] f=pjson
- 
Sent URL (GET): https://myserver.esri.com/server/rest/services/ Naperville/ Network Diagram Server/find Diagram Infos?gdb Version= AB V1&session Id=&moment=&diagram Names=%5 B%22 Diagram Test1%22%2 C%22 Diagram Test2%22%5 D&f=pjson 
JSON Response syntax
{
 "diagramInfos": [
  < diagramInfo1 >,
  …,
  < diagramInfoN >
 ]
}See Diagram JSON Information object to get the syntax for each <diagramInfo> object in the output array.
JSON Response example
{
 "diagramInfos": [
  {
   "tag": "",
   "isStored": true,
   "canStore": false,
   "canExtend": true,
   "isSystem": false,
   "creator": "acb7352",
   "creationDate": 1505219137000,
   "lastUpdateBy": "acb7352",
   "lastUpdateDate": 1505219137000,
   "containerMargin": 0.5,
   "junctionCount": 11,
   "edgeCount": 10,
   "containerCount": 1,
   "aggregationCount": 0,
   "isHistorical": false,
   "access": "esriDiagramPublicAccess",
   "diagramExtent": {
    "xmin": 6807591.7656002343,
    "ymin": 1847967.7367558032,
    "xmax": 6808661.8976463079,
    "ymax": 1848650.1848659664,
    "spatialReference": {
     "wkid": 3498,
     "latestWkid": 3498
    }
   },
   "networkExtent": {
    "xmin": 6807591.7656002343,
    "ymin": 1847967.7367558032,
    "xmax": 6808661.8976463079,
    "ymax": 1848650.1848659664,
    "spatialReference": {
     "wkid": 3498,
     "latestWkid": 3498
    }
   },
   "name": "DiagramTest1",
   "id": "{033B675B-0DFF-4E82-85BC-85DD1235D42C}",
   "template": "Basic",
   "consistencyState": "esriDiagramHasDirtyFeatures"
  },
  {
   "tag": "",
   "isStored": true,
   "canStore": false,
   "canExtend": false,
   "isSystem": false,
   "creator": "acb7352",
   "creationDate": 1505146520000,
   "lastUpdateBy": "acb7352",
   "lastUpdateDate": 1505146520000,
   "containerMargin": 0.5,
   "junctionCount": 10,
   "edgeCount": 9,
   "containerCount": 0,
   "aggregationCount": 3,
   "isHistorical": false,
   "access": "esriDiagramPublicAccess",
   "diagramExtent": {
    "xmin": 6807591.7656002343,
    "ymin": 1847967.7367558032,
    "xmax": 6808661.8976463079,
    "ymax": 1848650.1848659664,
    "spatialReference": {
     "wkid": 3498,
     "latestWkid": 3498
    }
   },
   "networkExtent": {
    "xmin": 6807591.7656002343,
    "ymin": 1847967.7367558032,
    "xmax": 6808661.8976463079,
    "ymax": 1848650.1848659664,
    "spatialReference": {
     "wkid": 3498,
     "latestWkid": 3498
    }
   },
   "name": "DiagramTest2",
   "id": "{A611F65A-F6C9-445B-A6C2-35C9EF1CF107}",
   "template": "CollapseContainers",
   "consistencyState": "esriDiagramIsConsistent"
  }
 ]
}