All pages
Powered by GitBook
1 of 1

Loading...

Get a saved query

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"
get
Authorizations
Path parameters
idstringRequired
Responses
200
A successful response.
application/json
401
Authorization information is missing or invalid.
403
Returned when the user does not have permission to access the resource.
application/json
404
Returned when the resource does not exist.
500
Server error
502
Returned when the service is temporarily unavailable.
503
Returned when the resource is temporarily unavailable.
get
GET /api/v1/assessments/queries/{id} HTTP/1.1
Host: 
Bearer: YOUR_API_KEY
Accept: */*
{
  "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",
              "value": null,
              "not": true,
              "value_property_name": "text",
              "value_property_from_other_node": true
            }
          ],
          "condition_expression": {
            "specs": [
              {
                "fn": "EQ",
                "property": "text",
                "value": null,
                "not": true,
                "value_property_name": "text",
                "value_property_from_other_node": true
              }
            ],
            "child_expressions": "[Circular Reference]",
            "operator": "AND",
            "not": true
          },
          "node_id": "text",
          "excluded_tags": [
            {
              "key": "text",
              "value": "text"
            }
          ],
          "count_conditions": [
            {
              "fn": "EQ",
              "value": "text",
              "value_as": "COUNT"
            }
          ],
          "direct_relationship_only": true,
          "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",
              "value": null,
              "not": true,
              "value_property_name": "text",
              "value_property_from_other_node": true
            }
          ],
          "condition_expression": {
            "specs": [
              {
                "fn": "EQ",
                "property": "text",
                "value": null,
                "not": true,
                "value_property_name": "text",
                "value_property_from_other_node": true
              }
            ],
            "child_expressions": "[Circular Reference]",
            "operator": "AND",
            "not": true
          },
          "node_id": "text",
          "excluded_tags": [
            {
              "key": "text",
              "value": "text"
            }
          ],
          "count_conditions": [
            {
              "fn": "EQ",
              "value": "text",
              "value_as": "COUNT"
            }
          ],
          "direct_relationship_only": true,
          "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",
              "value": null,
              "not": true,
              "value_property_name": "text",
              "value_property_from_other_node": true
            }
          ],
          "condition_expression": {
            "specs": [
              {
                "fn": "EQ",
                "property": "text",
                "value": null,
                "not": true,
                "value_property_name": "text",
                "value_property_from_other_node": true
              }
            ],
            "child_expressions": "[Circular Reference]",
            "operator": "AND",
            "not": true
          },
          "node_id": "text",
          "excluded_tags": [
            {
              "key": "text",
              "value": "text"
            }
          ],
          "count_conditions": [
            {
              "fn": "EQ",
              "value": "text",
              "value_as": "COUNT"
            }
          ],
          "direct_relationship_only": true,
          "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",
              "value": null,
              "not": true,
              "value_property_name": "text",
              "value_property_from_other_node": true
            }
          ],
          "condition_expression": {
            "specs": [
              {
                "fn": "EQ",
                "property": "text",
                "value": null,
                "not": true,
                "value_property_name": "text",
                "value_property_from_other_node": true
              }
            ],
            "child_expressions": "[Circular Reference]",
            "operator": "AND",
            "not": true
          },
          "node_id": "text",
          "excluded_tags": [
            {
              "key": "text",
              "value": "text"
            }
          ],
          "count_conditions": [
            {
              "fn": "EQ",
              "value": "text",
              "value_as": "COUNT"
            }
          ],
          "direct_relationship_only": true,
          "node_type_grouping_constraint": {
            "node_types": [
              "text"
            ],
            "constraint_type": "EXCLUDE"
          },
          "properties_to_get": [
            "text"
          ]
        }
      ],
      "nodes_operator": "AND"
    },
    "no_relation": true,
    "created_by": "text",
    "visibility": "PUBLIC",
    "owners": [
      "text"
    ],
    "node_relationship_type": "EFFECTIVE_ACCESS",
    "integration_types": [
      "text"
    ],
    "labels": [
      "text"
    ],
    "created_at": "2025-05-09T12:29:43.505Z",
    "updated_at": "2025-05-09T12:29:43.505Z",
    "source_type": "text",
    "destination_types": [
      "text"
    ],
    "relates_to_exp": {
      "specs": [
        {
          "node_types": {
            "nodes": "[Circular Reference]",
            "nodes_operator": "AND"
          },
          "required_intermediate_node_types": {
            "nodes": "[Circular Reference]",
            "nodes_operator": "AND"
          },
          "avoided_intermediate_node_types": {
            "nodes": "[Circular Reference]",
            "nodes_operator": "AND"
          },
          "raw_permissions": {
            "values": [
              "text"
            ],
            "operator": "AND"
          },
          "effective_permissions": {
            "values": [
              "METADATA_WRITE"
            ],
            "operator": "AND"
          },
          "no_relation": true,
          "direction": "ANY_DIRECTION"
        }
      ],
      "child_expressions": [
        {
          "specs": [
            {
              "node_types": {
                "nodes": "[Circular Reference]",
                "nodes_operator": "AND"
              },
              "required_intermediate_node_types": {
                "nodes": "[Circular Reference]",
                "nodes_operator": "AND"
              },
              "avoided_intermediate_node_types": {
                "nodes": "[Circular Reference]",
                "nodes_operator": "AND"
              },
              "raw_permissions": {
                "values": [
                  "text"
                ],
                "operator": "AND"
              },
              "effective_permissions": {
                "values": [
                  "METADATA_WRITE"
                ],
                "operator": "AND"
              },
              "no_relation": true,
              "direction": "ANY_DIRECTION"
            }
          ],
          "child_expressions": [
            "[Circular Reference]"
          ],
          "operator": "AND",
          "not": true,
          "and_op_type": "INFERRED"
        }
      ],
      "operator": "AND",
      "not": true,
      "and_op_type": "INFERRED"
    },
    "all_entity_condition": {
      "specs": [
        {
          "fn": "EQ",
          "property": "text",
          "value": null,
          "not": true,
          "value_property_name": "text",
          "value_property_from_other_node": true
        }
      ],
      "child_expressions": [
        {
          "specs": [
            {
              "fn": "EQ",
              "property": "text",
              "value": null,
              "not": true,
              "value_property_name": "text",
              "value_property_from_other_node": true
            }
          ],
          "child_expressions": [
            "[Circular Reference]"
          ],
          "operator": "AND",
          "not": true
        }
      ],
      "operator": "AND",
      "not": true
    },
    "path_summary_node_types": {
      "nodes": [
        {
          "node_type": "text",
          "tags": [
            {
              "key": "text",
              "value": "text"
            }
          ],
          "conditions": [
            {
              "fn": "EQ",
              "property": "text",
              "value": null,
              "not": true,
              "value_property_name": "text",
              "value_property_from_other_node": true
            }
          ],
          "condition_expression": {
            "specs": [
              {
                "fn": "EQ",
                "property": "text",
                "value": null,
                "not": true,
                "value_property_name": "text",
                "value_property_from_other_node": true
              }
            ],
            "child_expressions": "[Circular Reference]",
            "operator": "AND",
            "not": true
          },
          "node_id": "text",
          "excluded_tags": [
            {
              "key": "text",
              "value": "text"
            }
          ],
          "count_conditions": [
            {
              "fn": "EQ",
              "value": "text",
              "value_as": "COUNT"
            }
          ],
          "direct_relationship_only": true,
          "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",
              "value": null,
              "not": true,
              "value_property_name": "text",
              "value_property_from_other_node": true
            }
          ],
          "condition_expression": {
            "specs": [
              {
                "fn": "EQ",
                "property": "text",
                "value": null,
                "not": true,
                "value_property_name": "text",
                "value_property_from_other_node": true
              }
            ],
            "child_expressions": "[Circular Reference]",
            "operator": "AND",
            "not": true
          },
          "node_id": "text",
          "excluded_tags": [
            {
              "key": "text",
              "value": "text"
            }
          ],
          "count_conditions": [
            {
              "fn": "EQ",
              "value": "text",
              "value_as": "COUNT"
            }
          ],
          "direct_relationship_only": true,
          "node_type_grouping_constraint": {
            "node_types": [
              "text"
            ],
            "constraint_type": "EXCLUDE"
          },
          "properties_to_get": [
            "text"
          ]
        }
      ]
    },
    "analysis_type": "UNSET",
    "result": 1,
    "result_evaluated_at": "2025-05-09T12:29:43.505Z",
    "result_evaluated": true
  }
}