{"type":"api","title":"Retrieve CS policy paths on an interface","meta":{"id":"/apps/pubhub/media/crosswork-network-controller-7-1/f445c17e25a1120e8fbde4bd413083d0fd88b2b3/90b7af6e-3145-397d-a532-34227d4db4df","info":{"description":"API for managing and optimizing CSM policies, including retrieving policy paths and reoptimizing policies.","version":"7.1.0","title":"CSM Policy 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":"getCsPolicyPathsOnInterface","tags":["cisco-crosswork-optimization-engine-csm-policy-operations"],"summary":"Retrieve CS policy paths on an interface","description":"Fetches the paths of CS policies associated with a specific interface.","parameters":[{"in":"body","name":"csm.policy.operations.cspolicypathsoninterface.Input.body-param","description":"Input parameters for retrieving CS policy paths on an interface.","required":false,"schema":{"type":"object","properties":{"input":{"type":"object","properties":{"operational-state":{"description":"CS operational state","type":"string","enum":["active","up","down","unknown"],"$$ref":"#/definitions/csm.policy.common.OperationalStateEnumeration"},"interfaces":{"type":"array","items":{"type":"object","properties":{"interface":{"type":"string","description":"The name of the interface"},"node":{"type":"string","description":"The hostname of the source-node for the interface"}},"$$ref":"#/definitions/common.InterfaceKeyFields"}}},"$$ref":"#/definitions/csm.policy.operations.cspolicypathsoninterface.Input"}}}}],"responses":{"200":{"description":"Correct response","schema":{"type":"object","properties":{"output":{"type":"object","properties":{"message":{"type":"string","description":"The details of status above"},"status":{"description":"Enumeration of the request state","type":"string","enum":["error","accepted","rejected"],"$$ref":"#/definitions/common.RequestStatus"},"link-cs-policies":{"type":"array","items":{"type":"object","properties":{"operational-state":{"description":"CS operational state","type":"string","enum":["active","up","down","unknown"],"$$ref":"#/definitions/csm.policy.common.OperationalStateEnumeration"},"message":{"type":"string"},"interface":{"type":"string","description":"The name of the interface"},"node":{"type":"string","description":"The hostname of the source-node for the interface"},"cs-policy-paths":{"type":"array","items":{"type":"object","properties":{"operational-state":{"description":"CS operational state","type":"string","enum":["active","up","down","unknown"],"$$ref":"#/definitions/csm.policy.common.OperationalStateEnumeration"},"color":{"type":"integer","format":"int64","description":"The color for the SR policy"},"head-end":{"type":"string","description":"The IP address of the SR policy source"},"end-point":{"type":"string","description":"The IP address of the SR policy destination"},"preference":{"type":"integer","format":"int32","description":"Preference of CS policy"}},"$$ref":"#/definitions/csm.policy.common.CsPolicyPathKeyFields"}}},"$$ref":"#/definitions/csm.policy.common.linkcspolicypaths.LinkCsPolicies"}}},"$$ref":"#/definitions/csm.policy.operations.cspolicypathsoninterface.Output"}}}},"204":{"description":"No response"},"400":{"description":"Internal error"}},"__originalOperationId":"getCsPolicyPathsOnInterface","consumes":["application/yang-data+json"],"produces":["application/yang-data+json"],"method":"post","path":"/operations/cisco-crosswork-optimization-engine-csm-policy-operations:cs-policy-paths-on-interface"}}