{"type":"api","title":"Get recommendations from WANI","meta":{"id":"/apps/pubhub/media/cisco-catalyst-sd-wan-api-guide-20-18/1c4807bcb76af36988ebb37dc2e455b1787a155e/744a8207-9965-344e-aed3-d3ef846a4950","info":{"title":"Others","description":"Other APIs\n- Include APIs that do not belong to other categories\n","contact":{"email":"vmanage@cisco.com"},"version":"20.18 - 2025-08-15"},"openapi":"3.1.0","servers":[{"url":"/dataservice"}]},"spec":{"tags":["Wani Recommendations"],"summary":"Get recommendations from WANI","description":"API to get the recommendations obtained from WANI for a given tenant. This returns only valid recommendations based on expiry. It filters out recommendations that are inactive.","operationId":"getWaniRecommendations","parameters":[{"name":"siteId","in":"query","description":"The specific site id to get recommendations for, if empty get recommendations for all sites","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"required":["recommendations"],"type":"object","properties":{"recommendations":{"type":"array","example":[{"siteName":"SITE_400","siteId":"400","count":2},{"siteName":"SITE_500","siteId":"500","count":6}],"items":{"type":"object","properties":{"count":{"type":"integer","format":"int32","example":6},"siteId":{"type":"string","example":"500"},"siteName":{"type":"string","example":"SITE_500"}},"example":[{"siteName":"SITE_400","siteId":"400","count":2},{"siteName":"SITE_500","siteId":"500","count":6}],"$$ref":"#/components/schemas/RecommendationsResponseRecommendations"}},"totalRecommendationCount":{"type":"integer","format":"int32","example":8}},"$$ref":"#/components/schemas/RecommendationsResponse"}}}},"400":{"description":"bad input parameter"},"403":{"description":"Forbidden"},"500":{"description":"Internal Server Error"}},"method":"get","path":"/wani/recommendations"}}