Sample Topology Query

This call returns an example of the structure of an ad hoc TQL query. This structure can be used for future query related calls.

URL

/sampleToplogyQuery

Method

GET

Headers

None

Request type

None

Response type

JSON

URL Parameters

Required:None

Optional:None

Payload

None

Success response

Hardcoded response:

{
    "nodes": [
        {
            "linkConditions": [
                {
                    "linkIdentifier": "link",
                    "minCardinality": "2",
                    "maxCardinality": "*"
                }
            ],
            "type": "node",
            "queryIdentifier": "node1",
            "visible": true,
            "includeSubtypes": true,
            "layout": [
                "ucmdb_id",
                "name"
            ],
            "attributeConditions": [
                {
                    "attribute": "name",
                    "value": "node1"
                },
                {
                    "attribute": "memory",
                    "operator": "greaterThan",
                    "value": "2"
                },
                {
                    "attribute": "ala",
                    "operator": "isNull"
                }
            ],
            "ids": []
        },
        {
            "type": "node",
            "queryIdentifier": "node2",
            "visible": true,
            "includeSubtypes": true,
            "layout": [
                "ucmdb_id",
                "name"
            ],
            "attributeConditions": [
                {
                    "logicalOperator": "or",
                    "conditions": [
                        {
                            "attribute": "name",
                            "operator": "in",
                            "value": [
                                "node1",
                                "node2"
                            ]
                        },
                        {
                            "attribute": "memory",
                            "operator": "lessThan",
                            "value": "2"
                        },
                        {
                            "logicalOperator": "or",
                            "conditions": [
                                {
                                    "attribute": "name",
                                    "operator": "equals",
                                    "value": "node1"
                                },
                                {
                                    "attribute": "memory",
                                    "operator": "greaterThan",
                                    "value": "2"
                                }
                            ]
                        }
                    ]
                }
            ],
            "ids": []
        }
    ],
    "relations": [
        {
            "type": "composition",
            "queryIdentifier": "link",
            "visible": true,
            "includeSubtypes": false,
            "from": "node1",
            "to": "node2"
        }
    ]
}

Error response

None