Query (Trace Configurations)

URL:
https://<root>/<serviceName>/TraceNetworkServer/traceConfigurations/query
Methods:
GET
Version Introduced:
10.9

Description

The query operation returns all properties from one or more named trace configurations in a trace network.

Request parameters

ParameterDetails

f

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

Use dark colors for code blocksCopy
1
f=html | json | pjson

globalIds

(Optional)

Specifies the global IDs of the named trace configurations to be queried; this is provided as an array of strings.

Syntax: globalIds=[<guid>]

Example: globalIds= ["{K66AC850-832E-42E3-LE5E-ACEE122F1G6B9}", "{CE4E1432-14C2-470D-9FB3-9E1526CB889E}"]

creators

(Optional)

Specifies the creators of the named trace configurations to be queried; this is provided as an array of strings.

Use dark colors for code blocksCopy
1
Syntax: `creators=[<string>]

tags

(Optional)

Specifies the user tags of the named trace configurations to be queried; this is provided as an array of strings.

Use dark colors for code blocksCopy
1
Syntax: tags=[<string>]

names

(Optional)

Specifies the names of the named trace configurations to be queried; this is provided as an array of strings.

Use dark colors for code blocksCopy
1
Syntax: `names=[<string>]

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
27
28
29
30
{
  “traceConfigurations” : [
    {
      “name” : <string>,
      “description” : <string>,
      “traceType” : “connected” |“upstream” | “downstream” | “shortestPath”,
      “traceConfiguration” : <traceConfiguration>,
      “resultTypes” :     [
      {
       “type” : ”elements” | “aggregatedGeometry”,
       “includeGeometry" : true | false,
       “includePropagatedValues”: true | false,
       “networkAttributeNames" :[“attribute1Name","attribute2Name”,...],
       “diagramTemplateName”: <value>,
       “resultTypeFields”:[{“networkSourceId”:<long>,”fieldname”:<value>},...]
      }
     ],
      “minNumStartingPoints” : “none” | “one” | “many”,
      “tags” : [ <string> ],
      “creator” : <string>,
      “globalId” : <guid>
    }
  ],
  “success” : <boolean>,
  “error” : {                   // only if success is false
    “extendedCode” : <HRESULT>,
    “message” : <error message>,
    “details” : [ <detail> ]
  }
}

Example usage

In this example, the query operation is used to return information for a named trace configuration by providing a global ID.

Request URL and parameters:

https://myserver.esri.com/server/rest/services/Landbase/TraceNetworkServer/traceConfigurations/query

Use dark colors for code blocksCopy
1
2
3
4
5
6
{
f=json
globalIds=["{K66AC850-832E-42E3-LE5E-ACEE122F1G6B9}"]
creators=
tags=
names=

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
{
 "traceConfigurations": [
  {
   "name": "Connected_Basic",
   "description": "Connected trace example",
   "traceType":"connected",
   "traceConfiguration":{
    "includeBarriers":true,
    "validateConsistency":true,
    "ignoreBarriersAtStartingPoints":false,
    "allowIndeterminateFlow":false,
    "shortestPathNetworkAttributeName":"",
    "traversabilityScope":"junctionsAndEdges",
    "conditionBarriers":[],
    "functionBarriers":[],
    "functions":[],
    "outputFilters":[],
    "outputConditions":[],
    "pathDirection":"noDirection"
  },
   "resultTypes:[
    {
    "type":"elements",
    "includeGeometry":false,
    "includePropagatedValues":false,
    "networkAttributeNames":[],
    "diagramTemplateName":"",
    "resultTypeFields":[]
    }
   ],
   "minNumStartingPoints": "one",
   "creationDate": 1605637404000,
   "tags":    "tags": ["tag1,"tag2"],
   "creator": "tnadmin",
   "globalId": "{K66AC850-832E-42E3-LE5E-ACEE122F1G6B9}"
  }
],
 "success": true
}

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