- URL:
- https://<root>/<serviceName>/NetworkDiagramServer/diagrams/<diagramName>/getAggregations
- Methods:
POST
- Version Introduced:
- 10.6
Description
The get
operation returns all diagram aggregations in the diagram. It is performed on a Diagram resource. The result of this operation is an array of Diagram Aggregation JSON objects.
Request parameters
Parameter | Details |
---|---|
|
The name of the geodatabase version. Syntax: Example: |
|
The token (guid) used to lock the version. Syntax: Example: |
| Added in 10.7.1 The session moment. Syntax: Example: |
|
The response format. The default response format is html. Values: |
Example usage
Retrieve all the aggregations in diagram SwitchingDiagram1 in version ABV1; that is:
-
URL:
https:
//myserver.esri.com/server/rest/services/Naperville/Network Diagram Server/diagrams/Switching Diagram1/get Aggregations -
Parameters:
Use dark colors for code blocks Copy gdbVersion=ABV1 sessionId= f=pjson
-
Sent URL (GET):
https:
//myserver.esri.com/server/rest/services/Naperville/Network Diagram Server/diagrams/Switching Diagram1/get Aggregations?gdb Version=ABV1&session Id=&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"
}
]
}