Get a saved query
Last updated
Was this helpful?
Last updated
Was this helpful?
GetAssessmentQuery retrieves a single saved query object based on the query ID.
Sample request:
curl -X 'GET' \
"$BASE_URL/api/v1/assessments/queries/0827c158-9973-444c-9ca4-b941b73528c9" \
-H "authorization: Bearer $VEZA_TOKEN"
/api/v1/assessments/queries/{id}
curl -L \
--url '/api/v1/assessments/queries/{id}' \
--header 'Bearer: YOUR_API_KEY'
{
"value": {
"id": "text",
"name": "text",
"description": "text",
"result_type": "NUMBER",
"query_type": "SYSTEM_CREATED",
"raw_permissions": {
"operator": "AND",
"values": [
"text"
]
},
"effective_permissions": {
"operator": "AND",
"values": [
"METADATA_WRITE"
]
},
"source_node_types": {
"nodes_operator": "AND",
"nodes": [
{
"node_type": "text",
"condition_expression": {
"operator": "AND",
"not": true,
"specs": [
{
"value": null,
"fn": "EQ",
"property": "text",
"not": true,
"value_property_name": "text",
"value_property_from_other_node": true
}
],
"child_expressions": "[Circular Reference]"
},
"node_id": "text",
"direct_relationship_only": true,
"node_type_grouping_constraint": {
"constraint_type": "EXCLUDE",
"node_types": [
"text"
]
},
"tags": [
{
"key": "text",
"value": "text"
}
],
"conditions": [
{
"value": null,
"fn": "EQ",
"property": "text",
"not": true,
"value_property_name": "text",
"value_property_from_other_node": true
}
],
"excluded_tags": [
{
"key": "text",
"value": "text"
}
],
"count_conditions": [
{
"fn": "EQ",
"value": "text",
"value_as": "COUNT"
}
],
"properties_to_get": [
"text"
]
}
]
},
"required_intermediate_node_types": {
"nodes_operator": "AND",
"nodes": [
{
"node_type": "text",
"condition_expression": {
"operator": "AND",
"not": true,
"specs": [
{
"value": null,
"fn": "EQ",
"property": "text",
"not": true,
"value_property_name": "text",
"value_property_from_other_node": true
}
],
"child_expressions": "[Circular Reference]"
},
"node_id": "text",
"direct_relationship_only": true,
"node_type_grouping_constraint": {
"constraint_type": "EXCLUDE",
"node_types": [
"text"
]
},
"tags": [
{
"key": "text",
"value": "text"
}
],
"conditions": [
{
"value": null,
"fn": "EQ",
"property": "text",
"not": true,
"value_property_name": "text",
"value_property_from_other_node": true
}
],
"excluded_tags": [
{
"key": "text",
"value": "text"
}
],
"count_conditions": [
{
"fn": "EQ",
"value": "text",
"value_as": "COUNT"
}
],
"properties_to_get": [
"text"
]
}
]
},
"avoided_intermediate_node_types": {
"nodes_operator": "AND",
"nodes": [
{
"node_type": "text",
"condition_expression": {
"operator": "AND",
"not": true,
"specs": [
{
"value": null,
"fn": "EQ",
"property": "text",
"not": true,
"value_property_name": "text",
"value_property_from_other_node": true
}
],
"child_expressions": "[Circular Reference]"
},
"node_id": "text",
"direct_relationship_only": true,
"node_type_grouping_constraint": {
"constraint_type": "EXCLUDE",
"node_types": [
"text"
]
},
"tags": [
{
"key": "text",
"value": "text"
}
],
"conditions": [
{
"value": null,
"fn": "EQ",
"property": "text",
"not": true,
"value_property_name": "text",
"value_property_from_other_node": true
}
],
"excluded_tags": [
{
"key": "text",
"value": "text"
}
],
"count_conditions": [
{
"fn": "EQ",
"value": "text",
"value_as": "COUNT"
}
],
"properties_to_get": [
"text"
]
}
]
},
"destination_node_types": {
"nodes_operator": "AND",
"nodes": [
{
"node_type": "text",
"condition_expression": {
"operator": "AND",
"not": true,
"specs": [
{
"value": null,
"fn": "EQ",
"property": "text",
"not": true,
"value_property_name": "text",
"value_property_from_other_node": true
}
],
"child_expressions": "[Circular Reference]"
},
"node_id": "text",
"direct_relationship_only": true,
"node_type_grouping_constraint": {
"constraint_type": "EXCLUDE",
"node_types": [
"text"
]
},
"tags": [
{
"key": "text",
"value": "text"
}
],
"conditions": [
{
"value": null,
"fn": "EQ",
"property": "text",
"not": true,
"value_property_name": "text",
"value_property_from_other_node": true
}
],
"excluded_tags": [
{
"key": "text",
"value": "text"
}
],
"count_conditions": [
{
"fn": "EQ",
"value": "text",
"value_as": "COUNT"
}
],
"properties_to_get": [
"text"
]
}
]
},
"no_relation": true,
"created_by": "text",
"visibility": "PUBLIC",
"node_relationship_type": "EFFECTIVE_ACCESS",
"created_at": "2025-02-20T18:59:43.629Z",
"updated_at": "2025-02-20T18:59:43.629Z",
"source_type": "text",
"relates_to_exp": {
"operator": "AND",
"not": true,
"and_op_type": "INFERRED",
"specs": [
{
"node_types": {
"nodes_operator": "AND",
"nodes": "[Circular Reference]"
},
"required_intermediate_node_types": {
"nodes_operator": "AND",
"nodes": "[Circular Reference]"
},
"avoided_intermediate_node_types": {
"nodes_operator": "AND",
"nodes": "[Circular Reference]"
},
"raw_permissions": {
"operator": "AND",
"values": [
"text"
]
},
"effective_permissions": {
"operator": "AND",
"values": [
"METADATA_WRITE"
]
},
"no_relation": true,
"direction": "ANY_DIRECTION"
}
],
"child_expressions": [
{
"operator": "AND",
"not": true,
"and_op_type": "INFERRED",
"specs": [
{
"node_types": {
"nodes_operator": "AND",
"nodes": "[Circular Reference]"
},
"required_intermediate_node_types": {
"nodes_operator": "AND",
"nodes": "[Circular Reference]"
},
"avoided_intermediate_node_types": {
"nodes_operator": "AND",
"nodes": "[Circular Reference]"
},
"raw_permissions": {
"operator": "AND",
"values": [
"text"
]
},
"effective_permissions": {
"operator": "AND",
"values": [
"METADATA_WRITE"
]
},
"no_relation": true,
"direction": "ANY_DIRECTION"
}
],
"child_expressions": [
"[Circular Reference]"
]
}
]
},
"all_entity_condition": {
"operator": "AND",
"not": true,
"specs": [
{
"value": null,
"fn": "EQ",
"property": "text",
"not": true,
"value_property_name": "text",
"value_property_from_other_node": true
}
],
"child_expressions": [
{
"operator": "AND",
"not": true,
"specs": [
{
"value": null,
"fn": "EQ",
"property": "text",
"not": true,
"value_property_name": "text",
"value_property_from_other_node": true
}
],
"child_expressions": [
"[Circular Reference]"
]
}
]
},
"path_summary_node_types": {
"nodes_operator": "AND",
"nodes": [
{
"node_type": "text",
"condition_expression": {
"operator": "AND",
"not": true,
"specs": [
{
"value": null,
"fn": "EQ",
"property": "text",
"not": true,
"value_property_name": "text",
"value_property_from_other_node": true
}
],
"child_expressions": "[Circular Reference]"
},
"node_id": "text",
"direct_relationship_only": true,
"node_type_grouping_constraint": {
"constraint_type": "EXCLUDE",
"node_types": [
"text"
]
},
"tags": [
{
"key": "text",
"value": "text"
}
],
"conditions": [
{
"value": null,
"fn": "EQ",
"property": "text",
"not": true,
"value_property_name": "text",
"value_property_from_other_node": true
}
],
"excluded_tags": [
{
"key": "text",
"value": "text"
}
],
"count_conditions": [
{
"fn": "EQ",
"value": "text",
"value_as": "COUNT"
}
],
"properties_to_get": [
"text"
]
}
]
},
"path_summary_count_conditions": {
"conditions": [
{
"fn": "EQ",
"value": "text",
"value_as": "COUNT"
}
]
},
"risk_level": "NONE",
"risk_suppressed_constraints": {
"nodes": [
{
"node_type": "text",
"condition_expression": {
"operator": "AND",
"not": true,
"specs": [
{
"value": null,
"fn": "EQ",
"property": "text",
"not": true,
"value_property_name": "text",
"value_property_from_other_node": true
}
],
"child_expressions": "[Circular Reference]"
},
"node_id": "text",
"direct_relationship_only": true,
"node_type_grouping_constraint": {
"constraint_type": "EXCLUDE",
"node_types": [
"text"
]
},
"tags": [
{
"key": "text",
"value": "text"
}
],
"conditions": [
{
"value": null,
"fn": "EQ",
"property": "text",
"not": true,
"value_property_name": "text",
"value_property_from_other_node": true
}
],
"excluded_tags": [
{
"key": "text",
"value": "text"
}
],
"count_conditions": [
{
"fn": "EQ",
"value": "text",
"value_as": "COUNT"
}
],
"properties_to_get": [
"text"
]
}
]
},
"analysis_type": "UNSET",
"result": 1,
"result_evaluated_at": "2025-02-20T18:59:43.629Z",
"result_evaluated": true,
"variables": [
"text"
],
"owners": [
"text"
],
"integration_types": [
"text"
],
"labels": [
"text"
],
"destination_types": [
"text"
]
}
}
A successful response.