{"type":"api","title":"Get Anomalies","meta":{"id":"/apps/pubhub/media/nexus-dashboard-api-v1/2d8067c28a54188664f609609cef1230805664b5/65a171d6-461c-341f-833b-8723fe3ac65c","info":{"contact":{"name":"API Support","url":"https://developer.cisco.com/docs/nexus-dashboard/latest/#developer-support/"},"description":"Nexus Dashboard Insights API Documentation","title":"Nexus Dashboard Insights API","version":"6.8.0"},"tags":[{"name":"Cloud"},{"name":"Anomaly Threshold settings"},{"name":"Cluster level settings"},{"name":"Config - NI"},{"name":"NI Systems Settings"},{"name":"Site - Alert Rules"},{"name":"Site - Collection"},{"name":"Site - Compliance Requirements"},{"name":"Site - Configuration Import Export"},{"name":"Site - Entity Settings, Offline / Epoch-Delta Jobs & Site Management"},{"name":"Site - Export Kafka Fast Settings"},{"name":"Site - Export Nas Settings"},{"name":"Site - Export Settings"},{"name":"Site - FileUpload"},{"name":"Site - Flow Rules"},{"name":"Site - Integrations"},{"name":"Site - Offline Data Collection"},{"name":"Site - PDU integration"},{"name":"Site - Pre-Change Analysis"},{"name":"Site - Purge Epoch & Anomaly DB"},{"name":"Site - Syslog Export Settings"},{"name":"Site Group"},{"name":"Site Groups"},{"name":"Traffic Analytics Rules settings"},{"name":"User Settings"}],"x-parser-conf":{"overview":{"markdownPath":"reference/overview-legacy-insights.md"},"labelConfig":{"endpoint":{"field":"operationId","format":"startCase"}}},"openapi":"3.0.3","servers":[{"url":"/"}]},"spec":{"description":"Given an anomaly, insightsGroup, fabric, list down the aggregate affected objects for this anomaly","operationId":"getAnomalies","parameters":[{"description":"Name of the Site Group - limit the records pertaining to the sites in this site group.","in":"path","name":"siteGroupName","required":true,"schema":{"example":"DC-WEST-IG","type":"string"}},{"description":"Name of the Site - limit the records pertaining to the site.","in":"query","name":"siteName","required":false,"schema":{"example":"DC-WEST","type":"string"}},{"description":"Pagination index into response.","in":"query","name":"offset","required":false,"schema":{"example":"0","type":"string"}},{"description":"End date, to collect the records generated till specified date","in":"query","name":"endDate","required":false,"schema":{"example":"2021-04-20T11%3A57%3A24-07%3A00","type":"string"}},{"description":"Num of nodes in response.","in":"query","name":"count","required":false,"schema":{"example":"10","type":"string"}},{"description":"Start date, to skip records generated earlier to this date","in":"query","name":"startDate","required":false,"schema":{"example":"2021-04-20T11%3A42%3A24-07%3A00","type":"string"}},{"description":"Shorthand title of anomaly","in":"query","name":"mnemonicTitle","required":false,"schema":{"example":"ENDPOINT_DUPLICATE_IP","type":"string"}},{"description":"Status of the site","example":"all","in":"query","name":"siteStatus","required":false,"schema":{"enum":["all","online","offline"],"type":"string"}},{"description":"If set to true affected objects is for pre-change analysis else defaults to false","in":"query","name":"preChangeAnalysis","required":false,"schema":{"default":false,"type":"boolean"}},{"description":"default for regular anomalies, integration for MSO or any other integrations","example":"integration","in":"query","name":"mode","required":false,"schema":{"default":"default","type":"string"}},{"description":"Type of the integration if mode is set to integration. Such as NDO, APPD, TE","example":"NDO","in":"query","name":"integrationType","required":false,"schema":{"type":"string"}},{"description":"Lucene format filter - Filter the response based on this filter field","example":"acknowledged:false","in":"query","name":"filter","required":false,"schema":{"type":"string"}},{"description":"Sort the reponse by which attribute and which order.","example":"-severity","in":"query","name":"sort","schema":{"type":"string"}},{"in":"query","name":"prefixKey","required":false,"schema":{"example":"21.2.1.0%2F24_uni%2Ftn-ab21%2Fctx-ab21_ctx01","type":"string"}},{"description":"Name of the fabric node, limit the anomaly score to given nodeName","in":"query","name":"nodeName","required":false,"schema":{"default":"None","example":"ifav-leaf1","type":"string"}}],"responses":{"200":{"content":{"application/json":{"examples":{"0":{"value":{"entries":[{"ackDate":null,"ackTs":null,"acknowledged":false,"alertType":"anomaly","anomalyId":"END186962812336","anomalyReason":"duplicate ip 14.1.1.1 is detected on macs: [dd:04:00:10:14:02 dd:04:00:10:14:01] in mgmt/inb/[bd]","anomalyScore":80,"anomalyStr":"Duplicate IP 14.1.1.1 is detected on macs: [DD:04:00:10:14:02 DD:04:00:10:14:01] in mgmt/inb/[BD]","anomalyType":"duplicate-ip","assignee":"","category":"endpoint","clearDate":null,"clearTs":null,"cleared":false,"comment":"","customData":{"endpoints":["nodenames:['leaf-A'],ep_key:DC-WEST/mgmt/BD/DD:04:00:10:14:02","nodenames:['leaf-A'],ep_key:DC-WEST/mgmt/BD/DD:04:00:10:14:01"]},"endDate":"2021-04-20T18:55:02.000Z","endTs":"2021-04-20T18:55:02.000Z","entityName":"DC-WEST/mgmt/inb/14.1.1.1","entityNameList":[{"objectType":"leaf","objectValue":["leaf-A"]}],"epochEndDate":1618433027,"epochEndTs":1618433027,"epochStartDate":1618433027,"epochStartTs":1618433027,"expired":false,"fabricName":"DC-WEST","impact":false,"mnemonicDescription":"Duplicate IP has been configured on 2 or more endpoints","mnemonicNum":100003,"mnemonicTitle":"ENDPOINT_DUPLICATE_IP","nodeNames":["leaf-A"],"primaryClearDate":"","reason":"Duplicate IP 14.1.1.1 is detected on macs: [DD:04:00:10:14:02 DD:04:00:10:14:01] in mgmt/inb/[BD]","recommendation":false,"resourceName":"ip","resourceType":"endpoint","score":80,"severity":4,"siteName":"DC-WEST","startDate":"2021-04-14T20:43:47.000Z","startTs":"2021-04-14T20:43:47.000Z","streamingAnomaly":false,"tags":[],"targetIndex":"\u003ccisco_nir-anomalydb-2021.04.20\u003e","title":"","vendor":"CISCO_ACI","verificationStatus":"NEW"}],"offset":0,"totalItemsCount":1,"totalResultsCount":1,"ts":""}}},"schema":{"properties":{"entries":{"items":{"properties":{"ackDate":{},"ackTs":{},"acknowledged":{"type":"boolean"},"alertType":{"type":"string"},"anomalyId":{"type":"string"},"anomalyReason":{"type":"string"},"anomalyScore":{"type":"integer"},"anomalyStr":{"type":"string"},"anomalyType":{"type":"string"},"appVersion":{"type":"string"},"assignee":{"type":"string"},"category":{"type":"string"},"clearDate":{},"clearTs":{},"cleared":{"type":"boolean"},"comment":{"type":"string"},"customData":{"properties":{"endpoints":{"items":{"type":"string"},"type":"array"}},"type":"object"},"endDate":{"type":"string"},"endTs":{"type":"string"},"entityName":{"type":"string"},"entityNameList":{"items":{"properties":{"objectType":{"type":"string"},"objectValue":{"items":{"type":"string"},"type":"array"}},"type":"object"},"type":"array"},"epochEndDate":{"type":"integer"},"epochEndTs":{"type":"integer"},"epochStartDate":{"type":"integer"},"epochStartTs":{"type":"integer"},"expired":{"type":"boolean"},"fabricName":{"type":"string"},"impact":{"type":"boolean"},"mnemonicDescription":{"type":"string"},"mnemonicNum":{"type":"integer"},"mnemonicTitle":{"type":"string"},"nodeNames":{"items":{"type":"string"},"type":"array"},"primaryClearDate":{"type":"string"},"reason":{"type":"string"},"recommendation":{"type":"boolean"},"resourceName":{"type":"string"},"resourceType":{"type":"string"},"score":{"type":"integer"},"severity":{"type":"integer"},"siteName":{"type":"string"},"startDate":{"type":"string"},"startTs":{"type":"string"},"streamingAnomaly":{"type":"boolean"},"tags":{"items":{"type":"string"},"type":"array"},"targetIndex":{"type":"string"},"title":{"type":"string"},"vendor":{"type":"string"},"verificationStatus":{"type":"string"}},"type":"object"},"type":"array"},"offset":{"type":"integer"},"totalItemsCount":{"type":"integer"},"totalResultsCount":{"type":"integer"},"ts":{"type":"string"}},"type":"object"}}},"description":"OK"},"401":{"description":"Key not authorized:token contains an invalid number of segments"},"500":{"description":"Server error, either the server is overloaded or there is an error in the application"}},"summary":"Get the aggregate affected objects for an anomaly","tags":["Anomalies"],"__originalOperationId":"getAnomalies","method":"get","path":"/sedgeapi/v1/cisco-nir/api/api/v1/siteGroups/{siteGroupName}/anomalies/aggregateAffectedObjects"}}