Find Diagram Infos

URL:
https://<root>/<serviceName>/NetworkDiagramServer/findDiagramInfos
Methods:
POST
Version Introduced:
10.6

Description

The findDiagramInfos 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

ParameterDetails

gdbVersion

The name of the geodatabase version.

Syntax: gdbVersion=<version>

Example: gdbVersion=ABV1

sessionId

The token (guid) used to lock the version.

Syntax: sessionId=<guid>

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

moment

The session moment.

Syntax: moment=<moment>

Example: moment=1490867969324

diagramNames


(Required)

An array of strings, each one corresponding to a diagram name, for which you want to get diagram information.

Syntax: diagramNames = ["<diagramName1>",…,"<diagramNameN>"]

Example: diagramNames = ["Basic_RMT001","DiagramTest1"]

f

The response format. The default response format is html.

Values: <html | json>

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/NetworkDiagramServer/findDiagramInfos

  • Parameters:

    Use dark colors for code blocksCopy
    1
    2
    3
    4
    5
    gdbVersion=ABV1
    sessionId=
    moment=
    diagramNames=["DiagramTest2","DiagramTest1"]
    f=pjson
  • Sent URL (GET): https://myserver.esri.com/server/rest/services/Naperville/NetworkDiagramServer/findDiagramInfos?gdbVersion=ABV1&sessionId=&moment=&diagramNames=%5B%22DiagramTest1%22%2C%22DiagramTest2%22%5D&f=pjson

JSON Response syntax

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
{
 "diagramInfos": [
  < diagramInfo1 >,
  …,
  < diagramInfoN >
 ]
}

See Diagram JSON Information object to get the syntax for each <diagramInfo> object in the output array.

JSON Response example

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
{
 "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"
  }
 ]
}

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