- URL:
- https://<root>/<serviceName>/UtilityNetworkServer/circuits/query
- Methods:
GETPOST- Version Introduced:
- 12.1
The query operation on the circuits resource returns circuits from a telecom domain network that satisfy a specified query. You can provide an array of circuit names or global Ids as the input or provide information for a trace location from which the circuits either start or stop to return circuit information.
The query operates in two different modes, depending on whether you provide the circuit name or global Id, or information for the circuit's stop or stop location.
-
When a circuit name is provided for the
circuitsparameter, thecircuitparameter is ignored.Ids -
When a circuit name or globalId is provided for either the
circuitsorcircuitparameters, theIds locationsparameter is ignored. -
When returning the circuits that start or stop at a specified trace location using the
locationsparameter, ifcircuitis empty, only the immediate circuits that are pass through the specified feature are returned.Hierarchy
Request parameters
| Parameter | Details |
|---|---|
| Specifies the output format of the response. The default response format is Values: |
(Optional) | Specifies the name of the geodatabase version. The default is 'sde.DEFAULT'. Syntax: |
(Optional) | Specifies the token (guid) used to lock the version. If a client has previously started an edit session and holds an exclusive lock on the version specified, the request will fail if the sessionId is not provided. If the specified version is currently locked by any other session, the request will fail if the sessionId is not provided or does not match the sessionId that holds the exclusive lock. Syntax: |
(Optional) | Specifies the session moment. The default value is the version's current moment. This should only be specified by the client when they do not want to use the current moment. Syntax: Example: |
(Required) | Specifies the name of the telecom domain network containing the circuits to be queried. Syntax: Example: |
(Optional) | The names of the circuit or circuits to be returned. Syntax: Example: |
(Optional) | The global Id of the circuit or circuits to be returned. Syntax: Example: |
(Optional) | Specifies the location information for the feature associated with a circuit's starting or stopping point. The results can be filtered further when used with the Syntax: Example: |
(Optional) | The type of trace location in the circuit to query (start location, stop location, or both). The default is Values: Syntax: Example: |
(Optional) | Specifies whether to return the associated consumer and provider circuits with the queried circuit. The default is Values: Syntax: Example: |
(Optional) | Specifies whether to filter the result of the query to return only circuits of a certain status. This filter also applies to any circuits returned using the Values: Syntax: Example: |
(Optional) | The type of information to return about the circuit. Use Values: Syntax: Example: |
JSON Response syntax
JSON response when circuit is specified for result:
{
"circuits":[
{
"name" : <string>,
"globalId" : <guid>,
"status" : <string>,
"isSectioned" : <boolean>,
"sectionOrder" : <string>, //when isSectioned is true
"circuitType" : "Physical" | "Virtual",
"startLocation" : //when isSectioned is false
{
"sourceId" : <short>,
"globalId" : <guid>,
"firstUnit" : <short>,
"lastUnit" : <short>
},
"stopLocation" : //when isSectioned is false
{
"sourceId" : <short>,
"globalId" : <guid>,
"firstUnit" : <short>,
"lastUnit" : <short>
},
"sections" : //when isSectioned is true
{
"sectionId" : <long>,
"globalId" : <guid>,
"role" : "Start and end" | "Start" | "End" | "Midspan",
"sectionType" : "Physical" | "Virtual",
"startLocation" :
{
"sourceId" : <short>,
"globalId" : <guid>,
"firstUnit" : <short>,
"lastUnit" : <short>
},
"stopLocation" :
{
"sourceId" : <short>,
"globalId" : <guid>,
"firstUnit" : <short>,
"lastUnit" : <short>
}
},
"attributes":{}
},
"subcircuits" : [
{
"name" : <string>,
"globalId": <guid>,
"providerId" : <guid>,
"consumerId" : <guid>,
"state": "Consumed" | "Reserved" | "Available", // Default is Available
"attributes": {}
}
],
"attributes": {}
}
],
"success": <boolean>,
"error" : { // only if success is false
"extendedCode" : <HRESULT>,
"message" : <string>,
"details" : [ <string> ]
}JSON response when name is specified for result:
{
"circuitNames": [<string>],
"success": <boolean>
}
"error" : { // only if success is false
"extendedCode" : <HRESULT>,
"message" : <error message>,
"details" : [ <detail> ]
}
}Example usage
Request URL and parameters:
https://myserver.esri.com/server/rest/services/Telco/UtilityNetworkServer/circuits/queryProviding a circuit name for the circuits parameter in a telecom domain network called "Telco" to return circuit information for the nonsectioned circuit with a subcircuit.
f=json
gdbVersion=sde.Default
domainNetworkName=Telco
circuits=["79/EDU/322454/000/E3"]
resultTypes=[circuit]JSON response:
{
"circuits": [
{
"name": "79/EDU/322454/000/E3",
"globalId": "{117F6890-A8B4-4DFF-97EB-D9D6A4C5C8B8}",
"status": "Clean",
"isSectioned": false,
"lastExportedTime": 1767630218000,
"lastVerifiedTime": 1768589489000,
"circuitType": "Physical",
"startLocation": {
"sourceId": 20,
"globalId": "{B03E4786-2A0A-43E9-B800-C63A837E3525}",
"firstUnit": 1,
"lastUnit": 4
},
"stopLocation": {
"sourceId": 20,
"globalId": "{8A6CE597-EE12-4957-B05F-551692A41596}",
"firstUnit": 3,
"lastUnit": 7
},
"subcircuits": [
{
"name": "S_322454_E3",
"globalId": "{4BCB013E-AD5A-4598-AA51-256D9C84C145}",
"providerId": "{117F6890-A8B4-4DFF-97EB-D9D6A4C5C8B8}",
"consumerId": "{4C7153F9-AF75-4838-B489-6B34946F7B1F}",
"state": "Consumed",
"attributes": {}
}
],
"attributes": {
"Bandwidth": null
}
}
],
"success": true
}Providing a circuit name for the circuits parameter in a telecom domain network called "Telco" to return circuit information for a sectioned circuit composed of three sections with a subcircuit serving the role of the midspan section.
f=json
gdbVersion=sde.Default
domainNetworkName=Telco
circuitIds=["{4C7153F9-AF75-4838-B489-6B34946F7B1F}"]
resultTypes=[circuit]JSON response:
{
"circuits": [
{
"name": "A33/T3U/79233987/64456498",
"globalId": "{4C7153F9-AF75-4838-B489-6B34946F7B1F}",
"status": "Clean",
"isSectioned": true,
"lastExportedTime": 1769376298000,
"lastVerifiedTime": 1769376252000,
"sectionOrder": {
"1": [2],
"2": [3],
"3": []
},
"circuitType": "Physical",
"sections": [
{
"sectionId": 1,
"globalId": "{B444C8D8-11C3-42B9-8A0A-07EC6B5AE23F}",
"role": "Start",
"sectionType": "Physical",
"startLocation": {
"sourceId": 20,
"globalId": "{8A1B5A33-3EBA-42CC-9085-31B22DAFE5DC}",
"firstUnit": 1,
"lastUnit": 1
},
"stopLocation": {
"sourceId": 20,
"globalId": "{F081B917-499E-43FC-AEC9-7C1B313BF128}",
"firstUnit": 1,
"lastUnit": 1
},
"attributes": {}
},
{
"sectionId": 2,
"globalId": "{9ED4B0E2-CADA-4385-80D3-D4A999197FA8}",
"role": "Midspan",
"sectionType": "Physical",
"subcircuit": {
"name": "S2",
"globalId": "{4BCB013E-AD5A-4598-AA51-256D9C84C145}",
"providerId": "{968FD9D8-7200-4311-84E6-76A13CB1AEC8}",
"consumerId": "{4C7153F9-AF75-4838-B489-6B34946F7B1F}",
"state": "Consumed"
},
"attributes": {}
},
{
"sectionId": 3,
"globalId": "{F88413EB-7E88-4D9F-A005-C7E13422B82A}",
"role": "End",
"sectionType": "Physical",
"startLocation": {
"sourceId": 20,
"globalId": "{5C179F2F-6F70-4B82-AE02-25FEFB457860}",
"firstUnit": 1,
"lastUnit": 1
},
"stopLocation": {
"sourceId": 20,
"globalId": "{6EF3FE96-61C2-498A-B336-BA3E85F0D39E}",
"firstUnit": 1,
"lastUnit": 1
},
"attributes": {}
}
],
"subcircuits": [],
"attributes": {}
}
],
"success": true
}Providing trace location information to return the names of the circuit or circuits associated with the stopping point specified:
f=json
gdbVersion=sde.Default
domainNetworkName=Telco
locations=
[
{
"sourceId": 20,
"globalId": "{F081B917-499E-43FC-AEC9-7C1B313BF128}",
"firstUnit": 1,
"lastUnit": 1
}
]
locationType=stop
resultTypes=[name]JSON response:
{
"circuitNames": [
"79/EDU/322454/000/E3"
],
"success": true
}