{"type":"api","title":"Retrieve CS policy paths on nodes","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":"getCsPolicyPathsOnNodes","tags":["cisco-crosswork-optimization-engine-csm-policy-operations"],"summary":"Retrieve CS policy paths on nodes","description":"Fetches the paths of CS policies associated with specific nodes.","parameters":[{"in":"body","name":"csm.policy.operations.cspolicypathsonnodes.Input.body-param","description":"Input parameters for retrieving CS policy paths on nodes.","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"},"nodes":{"type":"array","items":{"type":"object","properties":{"node":{"type":"string","description":"The hostname of the node"}},"$$ref":"#/definitions/common.nodekeylist.Nodes"}}},"$$ref":"#/definitions/csm.policy.operations.cspolicypathsonnodes.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"},"node-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"},"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"}},"message":{"type":"string"},"node":{"type":"string","description":"The hostname of the node"}},"$$ref":"#/definitions/csm.policy.common.nodecspolicypaths.NodeCsPolicies"}}},"$$ref":"#/definitions/csm.policy.operations.cspolicypathsonnodes.Output"}}}},"204":{"description":"No response"},"400":{"description":"Internal error"}},"__originalOperationId":"getCsPolicyPathsOnNodes","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-nodes"}}