{"type":"api","title":"Retrieve LCM recommendation policies","meta":{"id":"/apps/pubhub/media/crosswork-network-controller-7-1/f445c17e25a1120e8fbde4bd413083d0fd88b2b3/2ff2a13a-2506-3157-a9a7-e957e4c21b1b","info":{"description":"This API provides operations and notifications for managing LCM recommendations, including committing, retrieving, and previewing recommendations.","version":"7.1.0","title":"Cisco Crosswork LCM Recommendation Operations API","contact":{"name":"API Support","url":"https://www.cisco.com/support","email":"support@cisco.com"},"license":{"name":"Cisco Software License Agreement","url":"http://www.cisco.com/public/sw-license-agreement.html"}},"swagger":"2.0","host":"localhost:30603","basePath":"/crosswork/nbi/optimization/v3/restconf","securityDefinitions":{"api_key":{"description":"Authentication: Bearer $JWT","type":"apiKey","name":"api_key","in":"header"}}},"spec":{"operationId":"getLcmRecommendationPolicies","tags":["cisco-crosswork-optimization-engine-lcm-recommendation-operations"],"summary":"Retrieve LCM recommendation policies","description":"Fetches policies associated with a specific LCM recommendation.","parameters":[{"in":"body","name":"lcm.recommendation.operations.getlcmrecommendationpolicies.Input.body-param","required":false,"description":"Request body containing the recommendation ID and LCM interface.","schema":{"type":"object","properties":{"input":{"type":"object","properties":{"domain-id":{"type":"string"},"lcm-int":{"type":"object","properties":{"interface":{"type":"string","description":"Name of interface"},"node":{"type":"string","description":"Name of node"}},"$$ref":"#/definitions/lcm.recommendation.common.LcmInterface"},"recommendation-id":{"type":"string"}},"$$ref":"#/definitions/lcm.recommendation.operations.getlcmrecommendationpolicies.Input"}}}}],"responses":{"200":{"description":"Correct response","schema":{"type":"object","properties":{"output":{"type":"object","properties":{"response-result":{"description":"Result of the request","type":"string","enum":["valid","invalid","error"],"$$ref":"#/definitions/lcm.recommendation.common.ResponseResultEnumeration"},"description":{"type":"string","description":"Optional free text field to provide additional detail to user about solution set.\nTo be displayed when previewed."},"tte-policy":{"type":"array","items":{"type":"object","properties":{"color":{"type":"integer","format":"int64"},"peer":{"type":"string","description":"Source IP"},"end-point":{"type":"string","description":"Endpoint node name"},"destination":{"type":"string","description":"Destination IP"},"headend":{"type":"string","description":"Source node name"},"policy-id":{"type":"string"}},"$$ref":"#/definitions/lcm.recommendation.common.SrPolicy"}},"lcm-int":{"type":"object","properties":{"interface":{"type":"string","description":"Name of interface"},"node":{"type":"string","description":"Name of node"}},"$$ref":"#/definitions/lcm.recommendation.common.LcmInterface"},"rec-id-check":{"type":"string","enum":["accepted","refresh","error"],"$$ref":"#/definitions/lcm.recommendation.common.RecommendationIdCheckResult"},"reason":{"type":"string"},"request-check-result-enum":{"type":"string","enum":["accepted","invalid","error"],"$$ref":"#/definitions/lcm.recommendation.common.RequestCheckResultEnumEnumeration"}},"$$ref":"#/definitions/lcm.recommendation.operations.getlcmrecommendationpolicies.Output"}}}},"204":{"description":"No response"},"400":{"description":"Internal error"}},"__originalOperationId":"getLcmRecommendationPolicies","consumes":["application/yang-data+json"],"produces":["application/yang-data+json"],"method":"post","path":"/operations/cisco-crosswork-optimization-engine-lcm-recommendation-operations:get-lcm-recommendation-policies"}}