- URL:
- https://<root>/<serviceName>/UtilityNetworkServer/circuits/create
- Methods:
GET
POST
- Version Introduced:
- 11.5
The create
operation on the circuits resource allows you to create a circuit in a telecom domain network.
Request parameters
Parameter | Details |
---|---|
| Specifies the output format of the response. The default response format is
|
(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: |
(Required) | Specifies the name of the telecom domain network in which the circuit will be created. Syntax: Example: |
(Required) | The circuit and circuit information to be created. Syntax:
|
JSON Response syntax
{
"success" : <boolean>,
"error" : { // only if success is false
"extendedCode" : <HRESULT>,
"message" : <string>,
"details" : [ <string> ]
}
}
Example usage
Request URL and parameters:
https://myserver.esri.com/server/rest/services/Telco/UtilityNetworkServer/circuits/create
Use the create
operation to create a circuit named A32/T3U/79232211/82256420 composed of two sections with a subcircuit in a telecom domain network named Telco.
f=json
gdbVersion=sde.Default
domainNetworkName=Telco
circuit={
"name": "A32/T3U/79232211/82256420",
"isSectioned": true,
"sectionOrder":"",
"circuitType": "Physical",
"sections": [
{
"sectionId": 1,
"role": "Start and end",
"sectionType": "Physical",
"startPoint": {
"sourceId": 20,
"globalId": "{8A1B5A33-3EBA-42CC-9085-31B22DAFE5DC}",
"terminalId": 1,
"firstUnit": 1,
"numUnits": 1
},
"stopPoint": {
"sourceId": 20,
"globalId": "{F081B917-499E-43FC-AEC9-7C1B313BF128}",
"terminalId": 1,
"firstUnit": 1,
"numUnits": 1
}
},
{
"sectionId": 2,
"role": "Start and end",
"sectionType": "Physical",
"startPoint": {
"sourceId": 20,
"globalId": "{C18AF55D-BCDC-4F97-B59A-F694838E7828}",
"terminalId": 1,
"firstUnit": 1,
"numUnits": 1
},
"stopPoint": {
"sourceId": 20,
"globalId": "{080CCCAE-9D17-423C-9212-F28AE02F81AD}",
"terminalId": 1,
"firstUnit": 1,
"numUnits": 1
}
}
],
"subcircuits": [
{
"name": "S1A32/T3U/79232211/82256420A",
"isReserved": "true"
}
]
}
JSON response:
{
"success": true
}
Use the create
operation to create a circuit named A33/T3U/79233987/64456498 composed of three sections with a subcircuit serving the role of the midspan section in a telecom domain network named Telco.
f=json
gdbVersion=sde.Default
domainNetworkName=Telco
circuit={
"name": "A33/T3U/79233987/64456498",
"isSectioned": true,
"sections": [
{
"sectionId": 1,
"role": "Start",
"sectionType": "Physical",
"startPoint": {
"sourceId": 20,
"globalId": "{8A1B5A33-3EBA-42CC-9085-31B22DAFE5DC}",
"terminalId": 1,
"firstUnit": 1,
"numUnits": 1
},
"stopPoint": {
"sourceId": 20,
"globalId": "{F081B917-499E-43FC-AEC9-7C1B313BF128}",
"terminalId": 1,
"firstUnit": 1,
"numUnits": 1
}
},
{
"sectionId": 2,
"role": "Midspan",
"subcircuit": {
"name": "Subcircuit_64456498",
"globalId": "{4BCB013E-AD5A-4598-AA51-256D9C84C145}"
}
},
{
"sectionId": 3,
"role": "End",
"sectionType": "Physical",
"startPoint": {
"sourceId": 20,
"globalId": "{5C179F2F-6F70-4B82-AE02-25FEFB457860}",
"terminalId": 1,
"firstUnit": 1,
"numUnits": 1
},
"stopPoint": {
"sourceId": 20,
"globalId": "{6EF3FE96-61C2-498A-B336-BA3E85F0D39E}",
"terminalId": 1,
"firstUnit": 1,
"numUnits": 1
}
}
],
"subcircuits": []
}
JSON response:
{
"success": true
}