Get Aggregations (Network Diagrams)

Description

The getAggregations operation is performed on a Diagram resource. The result of this operation is an array of Diagram Aggregation JSON objects.

It returns all the diagram aggregations in the diagram resource.

License:
The ArcGIS Utility Network Management extension is required to use this operation.

Request Parameters

ParameterDetails
gdbVersion

Description: The name of the geodatabase version.

Syntax: gdbVersion=<version>

Example: gdbVersion=ABV1

sessionId

Description: The token (guid) used to lock the version.

Syntax: sessionId=<guid>

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

f

Description: The response format. The default response format is html.

Values: <html | json>

Example Usage

Retrieving all the aggregations in diagram SwitchingDiagram1 in version ABV1: http://batz.esri.com/server/rest/services/Naperville/NetworkDiagramServer/diagrams/SwitchingDiagram1/getAggregations?gdbVersion=ABV1&sessionId=&f=pjson

JSON Response Syntax

An array of <diagramAggregation> JSON objects

{
  "diagramAggregations": [<diagramAggregation1>, ..., <diagramAggregationN>]
}

With the following <diagramAggregation> JSON object syntax:

{
 "id": <aggregationID>, // long
 "assocSourceID": <assUNSourceID>, // long
 "assocGlobalID": "<assUNfeatureGUID>", // string
 "aggregationType": <"esriDiagramJunctionAggregation" | "esriDiagramEdgeAggregation" | "esriDiagramContainerAggregation"> 
}

JSON Response Example

{
 "diagramAggregations": [
  {
   "id": 76,
   "assocSourceID": 6,
   "assocGlobalID": "{6F3DBE77-5CC7-4464-9B9E-C07780B83404}",
   "aggregationType": "esriDiagramEdgeAggregation"
  },
  {
   "id": 76,
   "assocSourceID": 6,
   "assocGlobalID": "{733D4FED-A588-47C3-AB67-EC1685F172F3}",
   "aggregationType": "esriDiagramEdgeAggregation"
  },
  {
   ...
  },
  {
   "id": 54,
   "assocSourceID": 7,
   "assocGlobalID": "{E9B1920E-2208-4C4F-A4ED-EBC0B6C4097E}",
   "aggregationType": "esriDiagramJunctionAggregation"
  },
  {
   "id": 108,
   "assocSourceID": 7,
   "assocGlobalID": "{BDCD6D28-D03B-4099-8F2E-DCB7665DD0F0}",
   "aggregationType": "esriDiagramEdgeAggregation"
  }
 ]
}