ArcGIS REST API

Query Network Moments

  • URL:http://<utilitynetworkservice-url>/queryNetworkMoments
  • Version Introduced:10.6

Description

The queryNetworkMoments operation returns the moments related to the network topology and operations against the topology. This includes when the topology was initially enabled, when it was last validated, when the topology was last disabled (and later enabled), and when the definition of the utility network was last modified.

License:
The ArcGIS Utility Network Management extension is required to use these resources.

Request Parameters

ParameterDetails
f

Description: Optional parameter representing the output format of the response (default is JSON).

gdbVersion

Description: Optional parameter specifying the name of the geodatabase version (default is DEFAULT).

Syntax: gdbVersion=<version>

sessionId

Description: Optional parameter representing the token (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 which holds the exclusive lock.

Syntax: sessionId=<guid>

moment

Description: Optional parameter representing 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.

momentsToReturn

Description: Optional parameter representing the collection of validate moments to return (default is fullValidateTopology).

Values:

"initialEnableTopology" | "fullValidateTopology" |
"partialValidateTopology" | "enableTopology" | "disableTopology" |
 "definitionModification" | "all"

JSON Response Syntax

{
  "networkMoments" : [
    {
      "moment" : <momentType>,
      "time" : <datetime>,
      "duration" : <double>      // in seconds
    }
  ],  
  "validNetworkTopology" : <true | false>,
  "success" : <true | false>,
  "error" : {                   // only if success is false
    "extendedCode" : <HRESULT>,
    "message" : <error message>,
    "details" : [ <detail> ]
  }
}