{"type":"api","title":"Delete an SR policy","meta":{"id":"/apps/pubhub/media/crosswork-network-controller-7-1/f445c17e25a1120e8fbde4bd413083d0fd88b2b3/3d89d4b5-ca39-3db6-845a-ca999a1058d3","info":{"description":"This API provides operations for managing Segment Routing (SR) policies, including creation, modification, deletion, and dry-run simulations.","version":"7.1.0","title":"Cisco Crosswork SR 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":"srPolicyDelete","tags":["cisco-crosswork-optimization-engine-sr-policy-operations"],"summary":"Delete an SR policy","description":"Deletes an existing Segment Routing (SR) policy based on the provided key details.","parameters":[{"in":"body","name":"sr.policy.common.SrPolicyKeyList.body-param","description":"Input parameters for deleting an SR policy.","required":false,"schema":{"type":"object","properties":{"input":{"type":"object","properties":{"sr-policies":{"type":"array","items":{"type":"object","properties":{"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"},"color":{"type":"integer","format":"int64","description":"The color for the SR policy"}},"$$ref":"#/definitions/sr.policy.common.SrPolicyKeyFields"}}},"$$ref":"#/definitions/sr.policy.common.SrPolicyKeyList"}}}}],"responses":{"200":{"description":"Correct response","schema":{"type":"object","properties":{"output":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"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"},"message":{"type":"string","description":"The details of state above, for failure and degraded"},"state":{"description":"The result for a policy create, update or delete operation","type":"string","enum":["success","failure","degraded"],"$$ref":"#/definitions/sr.policy.common.StateEnumeration"},"color":{"type":"integer","format":"int64","description":"The color for the SR policy"}},"$$ref":"#/definitions/sr.policy.common.srpolicyresultlist.Results"}}},"$$ref":"#/definitions/sr.policy.common.SrPolicyResultList"}}}},"204":{"description":"No response"},"400":{"description":"Internal error"}},"__originalOperationId":"srPolicyDelete","consumes":["application/yang-data+json"],"produces":["application/yang-data+json"],"method":"post","path":"/operations/cisco-crosswork-optimization-engine-sr-policy-operations:sr-policy-delete"}}