Show the structure of the search
POST/graph/:graph_id/search/structure
Structure of the search as json object.
Request​
Path Parameters
graph_id stringrequired
The identifier of the graph
Example: fix
Query Parameters
section string
Possible values: [reported
, desired
, metadata
]
The name of the section used for all property paths. If not defined root is assumed.
at date-time
The timestamp to use for the search. If not defined the latest version of the graph is used.
- text/plain
Body
The search to perform
string
Responses​
- 200
The execution plan of the database
- application/json
- Schema
- Example
Schema
any
{
"aggregate": {
"group_by": [
{
"as": "resource_kind",
"name": "kind"
}
],
"group_func": [
{
"as": "count",
"function": "sum",
"name": 1,
"ops": []
}
]
},
"parts": [
{
"limit": null,
"navigation": {
"direction": "out",
"edge_types": [
"default"
],
"start": 1,
"until": 1
},
"sort": [
{
"name": "reported.kind",
"order": "asc"
},
{
"name": "reported.name",
"order": "asc"
},
{
"name": "reported.id",
"order": "asc"
}
],
"tag": null,
"term": {
"kind": "combined",
"left": {
"kind": "is",
"kinds": [
"graph_root"
]
},
"op": "and",
"right": {
"args": {},
"kind": "predicate",
"name": "reported.name",
"op": "==",
"value": "root"
}
},
"with": null
},
{
"limit": null,
"navigation": null,
"sort": [
{
"name": "reported.kind",
"order": "asc"
},
{
"name": "reported.name",
"order": "asc"
},
{
"name": "reported.id",
"order": "asc"
}
],
"tag": null,
"term": {
"kind": "all"
},
"with": null
}
],
"preamble": {}
}
Loading...