URL:
https://<root>/<serviceName>/UtilityNetworkServer/enableSubnetworkController
Methods:
POST
Required Capability:
Requires the ArcGIS Advanced Editing user type extension license
Version Introduced:
10.6

Description

Subnetwork controllers correspond to devices that have the Subnetwork Controller network capability set. The enableSubnetworkController operation adds the subnetwork controller capability to the terminal of a device or junction object. A subnetwork controller specifies the origin (or destination) of a subnetwork and defines how resources flow through a network. Examples of subnetwork controllers include circuit breakers in electric networks or town border stations in gas networks.

Request parameters

ParameterDetails

f

Specifies the output format of the response. The default response format is html .

Values: html | json | pjson

gdbVersion

(Optional)

Specifies the name of the geodatabase version. The default is sde.DEFAULT.

Syntax:

Use dark colors for code blocksCopy
1
2

gdbVersion=<version>

Example:

Use dark colors for code blocksCopy
1
2

gdbVersion=sde.DEFAULT

sessionID

(Optional)

Specifies the token guid used to lock the version. If the calling client is editing a named version, the session ID must be provided; if the client is editing DEFAULT, the version may not be locked and the session ID should not be specified.

Syntax:

Use dark colors for code blocksCopy
1
2

sessionId=<guid>

Example:

Use dark colors for code blocksCopy
1
2

sessionId={29CC8FF6-D6C6-4157-A9A8-A9A9BCFE07D1}

networkSourceId

(Required)

The network source ID of the class that the subnetwork controller participates in.

Syntax:

Use dark colors for code blocksCopy
1
2

networkSourceId=<networkSourceId>

featureGlobalId

(Required)

The global ID of the device being enabled as a subnetwork controller.

Syntax:

Use dark colors for code blocksCopy
1
2

featureGlobalId=<guid>

terminalID

(Required)

The terminal ID of the device being enabled as a subnetwork controller.

Syntax:

Use dark colors for code blocksCopy
1
2

terminalID=<terminalID>

subnetworkControllerName

(Required)

The name of the subnetwork controller.

Syntax:

Use dark colors for code blocksCopy
1
2

subnetworkControllerName=<name>

subnetworkName

(Optional)

Specifies the name of the subnetwork. When a value is not provided, a unique guid is generated to represent the subnetwork name.

Syntax:

Use dark colors for code blocksCopy
1
2

subnetworkName=<name>

tierName

(Required)

The name of the tier to which the subnetwork belongs.

Syntax:

Use dark colors for code blocksCopy
1
2

tierName=<name>

description

(Optional)

Specifies the description of the subnetwork controller. The default is null.

Syntax:

Use dark colors for code blocksCopy
1
2

description=<string>

notes

(Optional)

Specifies any notes associated with the subnetwork controller.

Syntax:

Use dark colors for code blocksCopy
1
2

notes=<string>

outSR

(Optional)

Introduced at ArcGIS Enterprise 11.1. Specifies the output spatial reference using a well-known ID (wkid) or well-known text (wktor wkt2). If outSR is not specified, the spatial reference of the feature service is used.

Syntax:

Use dark colors for code blocksCopy
1
2
3
4
"outSR": {
  "wkid": <spatial reference well-known identifier>,
  "latestWkid": <the current wkid value associated with the wkid>  // Optional
}

Example:

Use dark colors for code blocksCopy
1
2

outSR={"wkid":3498,"latestWkid":3498}

Example:

Use dark colors for code blocksCopy
1
2

outSR={"wkt": "PROJCS[\"WGS_1984_Web_Mercator_Auxiliary_Sphere\",GEOGCS[\"GCS_WGS_1984\",DATUM[\"D_WGS_1984\",SPHEROID[\"WGS_1984\",6378137.0,298.257223563]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]],PROJECTION[\"Mercator_Auxiliary_Sphere\"],PARAMETER[\"False_Easting\",0.0],PARAMETER[\"False_Northing\",0.0],PARAMETER[\"Central_Meridian\",0.0],PARAMETER[\"Standard_Parallel_1\",0.0],PARAMETER[\"Auxiliary_Sphere_Type\",0.0],UNIT[\"Meter\",1.0]]"}

JSON Response syntax

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
{
  "exceededTransferLimit" : <true | false>,
  "serviceEdits" : [
    {
      "id" : <layerId>,
      "editedFeatures" :
        {
          "spatialReference" : {<spatial reference>},
          "adds" : [<currentFeature1>, <currentFeature2>],
          "updates" : [
            [<originalFeature3>, <currentFeature3>],
            [<originalFeature4>, <currentFeature4>]
          ],
          "deletes" : [<originalFeature5>, <originalFeature6>]
        }
    }
  ],
  "moment" : <epoch time in milliseconds>,
  "spatialReference" : {<spatial reference>},
  "success" : <true | false>,
  "error" : {                   // only if success is false
    "extendedCode" : <HRESULT>,
    "message" : <error message>,
    "details" : [ <detail> ]
}
}

Example usage

Enable a subnetwork controller named Sample Controller for the SubnetworkA subnetwork in the Medium Voltage tier using the enableSubnetworkController operation.

Request URL and parameters:

Use dark colors for code blocksCopy
1
2

https://myserver.esri.com/server/rest/services/LandUse/UtilityNetworkServer/enableSubnetworkController
Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
f=json
gdbVersion=SDE.DEFAULT
sessionId=
networkSourceId=6
featureGlobalId={891252A4-31C5-4740-93A6-0CFE1023FAD7}
terminalId=3
subnetworkControllerName= Sample Controller
subnetworkName=SubnetworkA
tierName=Medium Voltage

JSON response:

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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
{
  "exceededTransferLimit": false,
  "serviceEdits": [
    {
      "id": 0,
      "editedFeatures": {
        "spatialReference": {
          "wkid": 3498,
          "latestWkid": 3498,
          "xyTolerance": 0.00328083333333333,
          "zTolerance": 0.001,
          "mTolerance": 0.001,
          "falseX": -117608900,
          "falseY": -91881400,
          "xyUnits": 3048.00609601219,
          "falseZ": -100000,
          "zUnits": 10000,
          "falseM": -100000,
          "mUnits": 10000
        },
        "updates": [
          [
            {
              "attributes": {
                "OBJECTID": 148,
                "ASSETGROUP": 1,
                "ASSETTYPE": 1,
                "ASSOCIATIONSTATUS": 0,
                "ISSUBNETWORKCONTROLLER": 0,
                "ISCONNECTED": 2,
                "SUBNETWORKCONTROLLERNAME": "Unknown",
                "TIERNAME": 0,
                "TIERRANK": 0,
                "TERMINALCONFIGURATION": "Default",
                "CREATIONDATE": 1604086447000,
                "CREATOR": "ELEC",
                "LASTUPDATE": 1786388288000,
                "UPDATEDBY": "unadmin",
                "GLOBALID": "{891252A4-31C5-4740-93A6-0CFE1023FAD7}",
                "SUBNETWORKNAME": "Unknown",
                "SUPPORTEDSUBNETWORKNAME": "Unknown",
                "SUPPORTINGSUBNETWORKNAME": "Unknown",
                "labeltext": null,
                "devicestatus": 2,
                "phasesbuilt": 7,
                "phasesnormal": 7,
                "phasescurrent": 7,
                "phasesub": null,
                "phasesenergized": 7,
                "hassolar": 0
              },
              "geometry": {
                "x": 6813624.991722748,
                "y": 1846076.2247908116,
                "z": 0,
                "m": null
              }
            },
            {
              "attributes": {
                "OBJECTID": 148,
                "ASSETGROUP": 1,
                "ASSETTYPE": 1,
                "ASSOCIATIONSTATUS": 0,
                "ISSUBNETWORKCONTROLLER": 1,
                "ISCONNECTED": 1,
                "SUBNETWORKCONTROLLERNAME": "Load/Sample Controller",
                "TIERNAME": 1,
                "TIERRANK": 1,
                "TERMINALCONFIGURATION": "Default",
                "CREATIONDATE": 1604086447000,
                "CREATOR": "ELEC",
                "LASTUPDATE": 1786389056000,
                "UPDATEDBY": "unadmin",
                "GLOBALID": "{891252A4-31C5-4740-93A6-0CFE1023FAD7}",
                "SUBNETWORKNAME": "SubnetworkA",
                "SUPPORTEDSUBNETWORKNAME": "Unknown",
                "SUPPORTINGSUBNETWORKNAME": "Unknown",
                "labeltext": null,
                "devicestatus": 2,
                "phasesbuilt": 7,
                "phasesnormal": 7,
                "phasescurrent": 7,
                "phasesub": null,
                "phasesenergized": 7,
                "hassolar": 0
              },
              "geometry": {
                "x": 6813624.991722748,
                "y": 1846076.2247908116,
                "z": 0,
                "m": null
              }
            }
          ]
        ]
      }
    },
    {
      "id": 9,
      "editedFeatures": {
        "spatialReference": {
          "wkid": 3498,
          "latestWkid": 3498,
          "xyTolerance": 0.00328083333333333,
          "zTolerance": 0.001,
          "mTolerance": 0.001,
          "falseX": -117608900,
          "falseY": -91881400,
          "xyUnits": 3048.00609601219,
          "falseZ": -100000,
          "zUnits": 10000,
          "falseM": -100000,
          "mUnits": 10000
        },
        "updates": [
          [
            {
              "attributes": {
                "OBJECTID": 30407,
                "ISRETIRED": 1,
                "STATUS": 1,
                "SOURCEID": 9,
                "GUID": "{891252A4-31C5-4740-93A6-0CFE1023FAD7}",
                "ERRORMESSAGE": "",
                "CREATIONDATE": 1786388288000,
                "CREATOR": "unadmin",
                "LASTUPDATE": 1786388288000,
                "UPDATEDBY": "unadmin",
                "GLOBALID": "{BA74FF74-6EAD-41E0-B00D-2B6496983D1A}",
                "ERRORCODE": 0,
                "Shape__Area": 1.1355346178151127,
                "Shape__Length": 4.262458666666669
              },
              "geometry": {
                "hasZ": true,
                "hasM": true,
                "rings": [
                  [
                    [
                      6813624.458915412,
                      1846075.6919834763,
                      0,
                      null
                    ],
                    [
                      6813624.458915412,
                      1846076.7575981469,
                      0,
                      null
                    ],
                    [
                      6813625.524530083,
                      1846076.7575981469,
                      0,
                      null
                    ],
                    [
                      6813625.524530083,
                      1846075.6919834763,
                      0,
                      null
                    ],
                    [
                      6813624.458915412,
                      1846075.6919834763,
                      0,
                      null
                    ]
                  ]
                ]
              }
            },
            {
              "attributes": {
                "OBJECTID": 30407,
                "ISRETIRED": 1,
                "STATUS": 1,
                "SOURCEID": 9,
                "GUID": "{891252A4-31C5-4740-93A6-0CFE1023FAD7}",
                "ERRORMESSAGE": "",
                "CREATIONDATE": 1786388288000,
                "CREATOR": "unadmin",
                "LASTUPDATE": 1786389056000,
                "UPDATEDBY": "unadmin",
                "GLOBALID": "{BA74FF74-6EAD-41E0-B00D-2B6496983D1A}",
                "ERRORCODE": 0,
                "Shape__Area": 1.1355346260169209,
                "Shape__Length": 4.262458682060242
              },
              "geometry": {
                "hasZ": true,
                "hasM": true,
                "rings": [
                  [
                    [
                      6813625.524530083,
                      1846075.6919834763,
                      0,
                      null
                    ],
                    [
                      6813624.458915412,
                      1846075.6919834763,
                      0,
                      null
                    ],
                    [
                      6813624.458915412,
                      1846076.7575981469,
                      0,
                      null
                    ],
                    [
                      6813625.524530083,
                      1846076.7575981469,
                      0,
                      null
                    ],
                    [
                      6813625.524530083,
                      1846075.6919834763,
                      0,
                      null
                    ]
                  ]
                ]
              }
            }
          ]
        ]
      }
    },
    {
      "id": 500002,
      "editedFeatures": {
        "adds": [
          {
            "attributes": {
              "OBJECTID": 4401,
              "SUBNETWORKCONTROLLERNAME": "Sample Controller",
              "TIERRANK": 1,
              "TIERNAME": "Medium Voltage",
              "TIERTOPOLOGYTYPE": 1,
              "FEATUREGLOBALID": "{891252A4-31C5-4740-93A6-0CFE1023FAD7}",
              "FEATUREASSETGROUP": "Circuit Breaker",
              "FEATUREASSETTYPE": "Air powered",
              "FEATURESOURCEID": 9,
              "LASTUPDATESUBNETWORK": null,
              "LASTACKEXPORTSUBNETWORK": null,
              "DOMAINNETWORKNAME": "ElectricDistribution",
              "ISDIRTY": 1,
              "ISDELETED": 0,
              "SUBNETLINEGLOBALID": null,
              "DESCRIPTION": "",
              "NOTES": "",
              "SUBNETWORKNAME": "SubnetworkA",
              "FEATURETERMINALID": 3,
              "CREATIONDATE": 1786389056000,
              "CREATOR": "unadmin",
              "LASTUPDATE": 1786389056000,
              "UPDATEDBY": "unadmin",
              "GLOBALID": "{CBF3186F-C1F9-4A6C-A06B-68649437F6CC}"
            }
          }
        ]
      }
    }
  ],
  "moment": 1786389056233,
  "objectId": 4401,
  "spatialReference": {
    "wkid": 3498,
    "latestWkid": 3498
  },
  "success": true
}

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