- URL:
- https://<root>/<serviceName>/UtilityNetworkServer/queryNetworkMoments
- Methods:
GET
POST
- Version Introduced:
- 10.6
Description
The query
operation returns the moments related to the network topology and operations against the network topology. This includes information about when the topology was initially enabled, when it was last validated, when the topology was last disabled (and later enabled), when the definition of the utility network was last modified, and when the update
operation was last run.
Request parameters
Parameter | Details |
---|---|
| 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 sessionId guid used to lock the version. If the calling client has previously started a service session (editing) and holds an exclusive lock on the specified version, 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 is the version current moment). This should only be specified by the client when they do not want to use the current moment. Syntax: Example: |
| Description: Optional parameter representing the collection of validate moments to return (default is all). This is provided as an array of strings. Values:
Example: |
JSON Response syntax
{
"networkMoments" : [
{
"moment" : <momentType>,
"time" : <datetime>,
"duration" : <double> // in milliseconds
}
],
"validNetworkTopology" : <true | false>,
"success" : <true | false>,
"error" : { // only if success is false
"extendedCode" : <HRESULT>,
"message" : <error message>,
"details" : [ <detail> ]
}
}
Example usage
For the current state of a utility network, return the moment the network topology was initially enabled and the last time it was enabled using the query
operation.
Request URL and parameters:
https:
f=json
momentsToReturn=["enableTopology","initialEnableTopology"]
JSON response:
{
"networkMoments": [
{
"moment": "enableTopology",
"time": 1559840642,
"duration": 1663
},
{
"moment": "initialEnableTopology",
"time": 1559035822,
"duration": 1259
}
],
"validNetworkTopology": true,
"success": true
}