Get a saved query
GetAssessmentQuery retrieves a single saved query object based on the query ID.
Sample request:
Last updated
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"
Last updated
A successful response.
const response = await fetch('/api/v1/assessments/queries/{id}', {
method: 'GET',
headers: {},
});
const data = await response.json();
{
"value": {
"id": "text",
"name": "text",
"description": "text",
"result_type": "NUMBER",
"query_type": "SYSTEM_CREATED",
"raw_permissions": {
"values": [
"text"
],
"operator": "AND"
},
"effective_permissions": {
"values": [
"METADATA_WRITE"
],
"operator": "AND"
},
"variables": [
"text"
],
"source_node_types": {
"nodes": [
{
"node_type": "text",
"tags": [
{
"key": "text",
"value": "text"
}
],
"conditions": [
{
"fn": "EQ",
"property": "text",
"not": false,
"value_property_name": "text",
"value_property_from_other_node": false
}
],
"condition_expression": {
"specs": [
{
"fn": "EQ",
"property": "text",
"not": false,
"value_property_name": "text",
"value_property_from_other_node": false
}
],
"child_expressions": [],
"operator": "AND",
"not": false
},
"node_id": "text",
"excluded_tags": [
{
"key": "text",
"value": "text"
}
],
"count_conditions": [
{
"fn": "EQ",
"value": "text",
"value_as": "COUNT"
}
],
"direct_relationship_only": false,
"node_type_grouping_constraint": {
"node_types": [
"text"
],
"constraint_type": "EXCLUDE"
},
"properties_to_get": [
"text"
]
}
],
"nodes_operator": "AND"
},
"required_intermediate_node_types": {
"nodes": [
{
"node_type": "text",
"tags": [
{
"key": "text",
"value": "text"
}
],
"conditions": [
{
"fn": "EQ",
"property": "text",
"not": false,
"value_property_name": "text",
"value_property_from_other_node": false
}
],
"condition_expression": {
"specs": [
{
"fn": "EQ",
"property": "text",
"not": false,
"value_property_name": "text",
"value_property_from_other_node": false
}
],
"child_expressions": [],
"operator": "AND",
"not": false
},
"node_id": "text",
"excluded_tags": [
{
"key": "text",
"value": "text"
}
],
"count_conditions": [
{
"fn": "EQ",
"value": "text",
"value_as": "COUNT"
}
],
"direct_relationship_only": false,
"node_type_grouping_constraint": {
"node_types": [
"text"
],
"constraint_type": "EXCLUDE"
},
"properties_to_get": [
"text"
]
}
],
"nodes_operator": "AND"
},
"avoided_intermediate_node_types": {
"nodes": [
{
"node_type": "text",
"tags": [
{
"key": "text",
"value": "text"
}
],
"conditions": [
{
"fn": "EQ",
"property": "text",
"not": false,
"value_property_name": "text",
"value_property_from_other_node": false
}
],
"condition_expression": {
"specs": [
{
"fn": "EQ",
"property": "text",
"not": false,
"value_property_name": "text",
"value_property_from_other_node": false
}
],
"child_expressions": [],
"operator": "AND",
"not": false
},
"node_id": "text",
"excluded_tags": [
{
"key": "text",
"value": "text"
}
],
"count_conditions": [
{
"fn": "EQ",
"value": "text",
"value_as": "COUNT"
}
],
"direct_relationship_only": false,
"node_type_grouping_constraint": {
"node_types": [
"text"
],
"constraint_type": "EXCLUDE"
},
"properties_to_get": [
"text"
]
}
],
"nodes_operator": "AND"
},
"destination_node_types": {
"nodes": [
{
"node_type": "text",
"tags": [
{
"key": "text",
"value": "text"
}
],
"conditions": [
{
"fn": "EQ",
"property": "text",
"not": false,
"value_property_name": "text",
"value_property_from_other_node": false
}
],
"condition_expression": {
"specs": [
{
"fn": "EQ",
"property": "text",
"not": false,
"value_property_name": "text",
"value_property_from_other_node": false
}
],
"child_expressions": [],
"operator": "AND",
"not": false
},
"node_id": "text",
"excluded_tags": [
{
"key": "text",
"value": "text"
}
],
"count_conditions": [
{
"fn": "EQ",
"value": "text",
"value_as": "COUNT"
}
],
"direct_relationship_only": false,
"node_type_grouping_constraint": {
"node_types": [
"text"
],
"constraint_type": "EXCLUDE"
},
"properties_to_get": [
"text"
]
}
],
"nodes_operator": "AND"
},
"no_relation": false,
"created_by": "text",
"visibility": "PUBLIC",
"owners": [
"text"
],
"node_relationship_type": "EFFECTIVE_ACCESS",
"integration_types": [
"text"
],
"labels": [
"text"
],
"created_at": "2024-12-19T07:03:34.306Z",
"updated_at": "2024-12-19T07:03:34.306Z",
"source_type": "text",
"destination_types": [
"text"
],
"relates_to_exp": {
"specs": [
{
"node_types": {
"nodes": [
{
"node_type": "text",
"tags": [
{
"key": "text",
"value": "text"
}
],
"conditions": [
{
"fn": "EQ",
"property": "text",
"not": false,
"value_property_name": "text",
"value_property_from_other_node": false
}
],
"condition_expression": {
"specs": [
{
"fn": "EQ",
"property": "text",
"not": false,
"value_property_name": "text",
"value_property_from_other_node": false
}
],
"child_expressions": [],
"operator": "AND",
"not": false
},
"node_id": "text",
"excluded_tags": [
{
"key": "text",
"value": "text"
}
],
"count_conditions": [
{
"fn": "EQ",
"value": "text",
"value_as": "COUNT"
}
],
"direct_relationship_only": false,
"node_type_grouping_constraint": {
"node_types": [
"text"
],
"constraint_type": "EXCLUDE"
},
"properties_to_get": [
"text"
]
}
],
"nodes_operator": "AND"
},
"required_intermediate_node_types": {
"nodes": [
{
"node_type": "text",
"tags": [
{
"key": "text",
"value": "text"
}
],
"conditions": [
{
"fn": "EQ",
"property": "text",
"not": false,
"value_property_name": "text",
"value_property_from_other_node": false
}
],
"condition_expression": {
"specs": [
{
"fn": "EQ",
"property": "text",
"not": false,
"value_property_name": "text",
"value_property_from_other_node": false
}
],
"child_expressions": [],
"operator": "AND",
"not": false
},
"node_id": "text",
"excluded_tags": [
{
"key": "text",
"value": "text"
}
],
"count_conditions": [
{
"fn": "EQ",
"value": "text",
"value_as": "COUNT"
}
],
"direct_relationship_only": false,
"node_type_grouping_constraint": {
"node_types": [
"text"
],
"constraint_type": "EXCLUDE"
},
"properties_to_get": [
"text"
]
}
],
"nodes_operator": "AND"
},
"avoided_intermediate_node_types": {
"nodes": [
{
"node_type": "text",
"tags": [
{
"key": "text",
"value": "text"
}
],
"conditions": [
{
"fn": "EQ",
"property": "text",
"not": false,
"value_property_name": "text",
"value_property_from_other_node": false
}
],
"condition_expression": {
"specs": [
{
"fn": "EQ",
"property": "text",
"not": false,
"value_property_name": "text",
"value_property_from_other_node": false
}
],
"child_expressions": [],
"operator": "AND",
"not": false
},
"node_id": "text",
"excluded_tags": [
{
"key": "text",
"value": "text"
}
],
"count_conditions": [
{
"fn": "EQ",
"value": "text",
"value_as": "COUNT"
}
],
"direct_relationship_only": false,
"node_type_grouping_constraint": {
"node_types": [
"text"
],
"constraint_type": "EXCLUDE"
},
"properties_to_get": [
"text"
]
}
],
"nodes_operator": "AND"
},
"raw_permissions": {
"values": [
"text"
],
"operator": "AND"
},
"effective_permissions": {
"values": [
"METADATA_WRITE"
],
"operator": "AND"
},
"no_relation": false,
"direction": "ANY_DIRECTION"
}
],
"child_expressions": [],
"operator": "AND",
"not": false,
"and_op_type": "INFERRED"
},
"all_entity_condition": {
"specs": [
{
"fn": "EQ",
"property": "text",
"not": false,
"value_property_name": "text",
"value_property_from_other_node": false
}
],
"child_expressions": [],
"operator": "AND",
"not": false
},
"path_summary_node_types": {
"nodes": [
{
"node_type": "text",
"tags": [
{
"key": "text",
"value": "text"
}
],
"conditions": [
{
"fn": "EQ",
"property": "text",
"not": false,
"value_property_name": "text",
"value_property_from_other_node": false
}
],
"condition_expression": {
"specs": [
{
"fn": "EQ",
"property": "text",
"not": false,
"value_property_name": "text",
"value_property_from_other_node": false
}
],
"child_expressions": [],
"operator": "AND",
"not": false
},
"node_id": "text",
"excluded_tags": [
{
"key": "text",
"value": "text"
}
],
"count_conditions": [
{
"fn": "EQ",
"value": "text",
"value_as": "COUNT"
}
],
"direct_relationship_only": false,
"node_type_grouping_constraint": {
"node_types": [
"text"
],
"constraint_type": "EXCLUDE"
},
"properties_to_get": [
"text"
]
}
],
"nodes_operator": "AND"
},
"path_summary_count_conditions": {
"conditions": [
{
"fn": "EQ",
"value": "text",
"value_as": "COUNT"
}
]
},
"risk_level": "NONE",
"risk_suppressed_constraints": {
"nodes": [
{
"node_type": "text",
"tags": [
{
"key": "text",
"value": "text"
}
],
"conditions": [
{
"fn": "EQ",
"property": "text",
"not": false,
"value_property_name": "text",
"value_property_from_other_node": false
}
],
"condition_expression": {
"specs": [
{
"fn": "EQ",
"property": "text",
"not": false,
"value_property_name": "text",
"value_property_from_other_node": false
}
],
"child_expressions": [],
"operator": "AND",
"not": false
},
"node_id": "text",
"excluded_tags": [
{
"key": "text",
"value": "text"
}
],
"count_conditions": [
{
"fn": "EQ",
"value": "text",
"value_as": "COUNT"
}
],
"direct_relationship_only": false,
"node_type_grouping_constraint": {
"node_types": [
"text"
],
"constraint_type": "EXCLUDE"
},
"properties_to_get": [
"text"
]
}
]
},
"analysis_type": "UNSET",
"result": 0,
"result_evaluated_at": "2024-12-19T07:03:34.306Z",
"result_evaluated": false
}
}