- URL:
- https://<root>/<serviceName>/NetworkDiagramServer/diagrams/<diagramName>/dynamicLayers
- Methods:
POST
- Version Introduced:
- 10.6
Description
The dynamic
resource describes the sublayers under a diagram layer. It returns an array of JSON object layers with their SQL query. Each JSON object layer item in the array provides the following information:
-
id
—The ID of the layer -
source
—The layer source internal information:type
—"workspaceLayer"workspace
—"Diagram"I D layer
—The internal layer IDI D
-
definition
—The filtering expression based on the diagram GUIDExpression
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.8.1 The mode to use to cache the dynamic layers for the diagram. When Syntax: Example: |
|
The response format. The default response format is html. Values: |
Example usage
https:
JSON Response syntax
{
"dynamicLayers": [
{
"id": < layerID1 >,
"source": {
"type": "workspaceLayer",
"workspaceId": "Diagram",
"layerId": "< internalLayerID1 >"
}
"definitionExpression": < DiagramGUIDFilteringExpression >"
},
...,
{
"id": < layerIDN >,
"source": {
"type": "workspaceLayer",
"workspaceId": "Diagram",
"layerId": "< internalLayerIDN >"
}
"definitionExpression": < DiagramGUIDFilteringExpression >"
}
]
}
JSON Response example
{
"dynamicLayers": [
{
"id": 101,
"source": {
"type": "workspaceLayer",
"workspaceId": "Diagram",
"layerId": "0_ElectricDistributionAssembly"
},
"definitionExpression": "MAP.UN_6_Junctions.DIAGRAMGUID = '{FDA323D6-4868-4375-9773-06AFF80B2F02}'"
},
{
"id": 102,
"source": {
"type": "workspaceLayer",
"workspaceId": "Diagram",
"layerId": "0_ElectricDistributionDevice"
},
"definitionExpression": "MAP.UN_6_Junctions.DIAGRAMGUID = '{FDA323D6-4868-4375-9773-06AFF80B2F02}'"
},
{
"id": 103,
"source": {
"type": "workspaceLayer",
"workspaceId": "Diagram",
"layerId": "0_ElectricDistributionJunction"
},
"definitionExpression": "MAP.UN_6_Junctions.DIAGRAMGUID = '{FDA323D6-4868-4375-9773-06AFF80B2F02}'"
},
{
"id": 104,
"source": {
"type": "workspaceLayer",
"workspaceId": "Diagram",
"layerId": "0_StructureJunction"
},
"definitionExpression": "MAP.UN_6_Junctions.DIAGRAMGUID = '{FDA323D6-4868-4375-9773-06AFF80B2F02}'"
},
{
"id": 105,
"source": {
"type": "workspaceLayer",
"workspaceId": "Diagram",
"layerId": "0_System Junctions"
},
"definitionExpression": "MAP.UN_6_Junctions.DIAGRAMGUID = '{FDA323D6-4868-4375-9773-06AFF80B2F02}'"
},
{
"id": 106,
"source": {
"type": "workspaceLayer",
"workspaceId": "Diagram",
"layerId": "0_Structure Boundary"
},
"definitionExpression": "MAP.UN_6_Junctions.DIAGRAMGUID = '{FDA323D6-4868-4375-9773-06AFF80B2F02}'"
},
{
"id": 107,
"source": {
"type": "workspaceLayer",
"workspaceId": "Diagram",
"layerId": "0_Structure Line"
},
"definitionExpression": "MAP.UN_6_Junctions.DIAGRAMGUID = '{FDA323D6-4868-4375-9773-06AFF80B2F02}'"
},
{
"id": 108,
"source": {
"type": "workspaceLayer",
"workspaceId": "Diagram",
"layerId": "0_Electric Distribution Line"
},
"definitionExpression": "MAP.UN_6_Junctions.DIAGRAMGUID = '{FDA323D6-4868-4375-9773-06AFF80B2F02}'"
},
{
"id": 109,
"source": {
"type": "workspaceLayer",
"workspaceId": "Diagram",
"layerId": "0_ElectricDistributionLine"
},
"definitionExpression": "MAP.UN_6_Edges.DIAGRAMGUID = '{FDA323D6-4868-4375-9773-06AFF80B2F02}'"
},
{
"id": 110,
"source": {
"type": "workspaceLayer",
"workspaceId": "Diagram",
"layerId": "0_StructureLine"
},
"definitionExpression": "MAP.UN_6_Edges.DIAGRAMGUID = '{FDA323D6-4868-4375-9773-06AFF80B2F02}'"
},
{
"id": 111,
"source": {
"type": "workspaceLayer",
"workspaceId": "Diagram",
"layerId": "0_Connectivity Associations"
},
"definitionExpression": "MAP.UN_6_Edges.DIAGRAMGUID = '{FDA323D6-4868-4375-9773-06AFF80B2F02}'"
},
{
"id": 112,
"source": {
"type": "workspaceLayer",
"workspaceId": "Diagram",
"layerId": "0_Structural Attachments"
},
"definitionExpression": "MAP.UN_6_Edges.DIAGRAMGUID = '{FDA323D6-4868-4375-9773-06AFF80B2F02}'"
},
{
"id": 113,
"source": {
"type": "workspaceLayer",
"workspaceId": "Diagram",
"layerId": "0_Reduction Edges"
},
"definitionExpression": "DIAGRAMGUID = '{FDA323D6-4868-4375-9773-06AFF80B2F02}'"
},
{
"id": 114,
"source": {
"type": "workspaceLayer",
"workspaceId": "Diagram",
"layerId": "0_Structure Junction"
},
"definitionExpression": "MAP.UN_6_Containers.DIAGRAMGUID = '{FDA323D6-4868-4375-9773-06AFF80B2F02}'"
},
{
"id": 115,
"source": {
"type": "workspaceLayer",
"workspaceId": "Diagram",
"layerId": "0_Electric Distribution Assembly"
},
"definitionExpression": "MAP.UN_6_Containers.DIAGRAMGUID = '{FDA323D6-4868-4375-9773-06AFF80B2F02}'"
},
{
"id": 116,
"source": {
"type": "workspaceLayer",
"workspaceId": "Diagram",
"layerId": "0_StructureBoundary"
},
"definitionExpression": "MAP.UN_6_Containers.DIAGRAMGUID = '{FDA323D6-4868-4375-9773-06AFF80B2F02}'"
}
]
}