Get Instances
Get all the instances for the given class
Request object to get instances for the given class
Show optional properties
{
"className": "NetworkFunction"
}
{
"className": "NetworkFunction",
"targetType": "Switch",
"traversal": false,
"instanceName": "NetworkFunction-ebf940d1-9166-4e3b-bb17-c6b8d200bdc2$NetworkFunction$INCHARGE-SA-PRES",
"relationshipName": "ConnectedSystems",
"columnFilters": [
"name"
],
"from": 0,
"groupby": [
"elementUUID"
],
"size": 0,
"sortby": [
{
"order": "desc",
"fieldName": "Severity"
}
],
"vsafilter": {
"condition": "AND",
"filterlist": [
"Filter Object"
]
}
}
Device type or Class type to which instances are required
If traversal is true then we should provide the targetType of the relationship for which instance is required
Value can be true/false. If the instance is required on the traversed class then this attribute will be true
Uniquely identifies the object across domains.
If traversal is true then we should provide the relationship name to get the targetType.
The name of column name which has to be filter.
The from parameter defines the offset from the first result you want to fetch.
The field name using which result will be groupby
The size parameter allows you to configure the maximum amount of records to be returned.
The Sort object defines on how and which field sorting has to be applied.
The VSAFilter object defines how the filters has to be applied on queries.
OK
{
"data": [
{
"deviceType": "NetworkFunction",
"_rev": "_et3ArLa--_",
"source": "INCHARGE-SA-PRES",
"_key": "NetworkFunction-ebf940d1-9166-4e3b-bb17-c6b8d200bdc2$NetworkFunction$INCHARGE-SA-PRES",
"creationDate": "2022-09-02T12:52:40Z",
"type": "NetworkFunction",
"elementUUID_PM": "NetworkFunction-ebf940d1-9166-4e3b-bb17-c6b8d200bdc2$NetworkFunction$",
"discoveryID": "INCHARGE-SA-PRES",
"jobId": "1662122789071",
"lastUpdationDate": "2022-09-02T12:52:40Z",
"name": "NetworkFunction-ebf940d1-9166-4e3b-bb17-c6b8d200bdc2",
"_id": "Nodes_INCHARGE_SA_PRES/NetworkFunction-ebf940d1-9166-4e3b-bb17-c6b8d200bdc2$NetworkFunction$INCHARGE-SA-PRES",
"elementUUID": "NetworkFunction-ebf940d1-9166-4e3b-bb17-c6b8d200bdc2$NetworkFunction$INCHARGE-SA-PRES",
"properties": {
"IsEdgeHavingProblem": false,
"Description": "",
"ServiceName": "",
"IsServiceDysFunctional": false,
"CreationClassName": "NetworkFunction",
"DisplayName": "kube-multus-ds-amd64-gv429",
"IsManaged": true,
"ServiceKey": "",
"SystemName": "",
"DisplayClassName": "NetworkFunction",
"IsVMHostUnResponsive": false,
"Name": "NetworkFunction-ebf940d1-9166-4e3b-bb17-c6b8d200bdc2"
}
}
],
"count": 1
}
The number of available instances.
Contains an array of objects.
Invalid Request sent by the user
User authentication failed
Access to the requested resource/operation is forbidden
Cannot find requested resource
Internal server error
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"className:"string"}' https://{api_host}/tcsa/api/topology/v1/instances