{"type":"api","title":"Undeploy cat-function-packs","meta":{"id":"/apps/pubhub/media/crosswork-network-controller-7-1/f445c17e25a1120e8fbde4bd413083d0fd88b2b3/7dc17182-c0a2-3a06-aef0-fb5fc1dcca2f","info":{"title":"cat-fp-deployment-manager service APIs","description":"APIs exposed by cat-fp-deployment-manager service","termsOfService":"http://www.cisco.com/web/siteassets/legal/terms_condition.html","contact":{"name":"Cisco Systems","url":"https://www.cisco.com","email":"support@cisco.com"},"license":{"name":"Cisco Software License Agreement","url":"http://www.cisco.com/public/sw-license-agreement.html"},"version":"7.1.0"},"security":[{"bearerAuth":[]}],"x-parser-conf":{"overview":{"markdownPath":"reference/CNC/cat-fp-deployment-manager-api-overview.md"}},"openapi":"3.0.1","servers":[{"url":"https://{cnc-host}:{cnc-port}/crosswork/cat/cat-fp-deployment-manager-service/v1","variables":{"cnc-host":{"default":"127.0.0.1","description":"host name or ip address of the target CNC Cluster"},"cnc-port":{"default":"30603","description":"port number of the target CNC Cluster"}}}],"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"spec":{"tags":["cat-fp-deployer"],"summary":"Undeploy cat-function-packs","description":"Undeploys the specified package by removing it and running the 2 phase commit. The undeployed package is backed up in the optional archive area for possible future redeployment.","operationId":"undeployPackages","requestBody":{"content":{"application/json":{"schema":{"type":"object","description":"JSON file with custom file names to undeploy","properties":{"array":{"type":"boolean"},"bigDecimal":{"type":"boolean"},"bigInteger":{"type":"boolean"},"binary":{"type":"boolean"},"boolean":{"type":"boolean"},"containerNode":{"type":"boolean"},"double":{"type":"boolean"},"float":{"type":"boolean"},"floatingPointNumber":{"type":"boolean"},"int":{"type":"boolean"},"integralNumber":{"type":"boolean"},"long":{"type":"boolean"},"missingNode":{"type":"boolean"},"nodeType":{"type":"string","enum":["ARRAY","BINARY","BOOLEAN","MISSING","NULL","NUMBER","OBJECT","POJO","STRING"]},"null":{"type":"boolean"},"number":{"type":"boolean"},"object":{"type":"boolean"},"pojo":{"type":"boolean"},"short":{"type":"boolean"},"textual":{"type":"boolean"},"valueNode":{"type":"boolean"}},"$$ref":"#/components/schemas/JsonNode"},"example":"{\"packages\":[\"ietf-l2vpn-nm-tsdn-fp-package-5.0.15-bin.tar.gz\",\"ietf-l3vpn-nm-tsdn-fp-package-5.0.15-bin.tar.gz\"]}"}},"description":"packages names","required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string"},"example":"{\"deployment_result\":\"CNC Function Packs DEPLOYED At time: 2023-06-14_09-52-39\",\"status\":\"Following archives were moved to optional_packages: [ietf-te-fp-package-7.0.10-SNAPSHOT-bin.tar.gz]\"}"}}},"400":{"description":"Bad request"},"500":{"description":"Internal server error"},"503":{"description":"Service Unavailable"}},"__originalOperationId":"undeployPackages","security":[{"bearerAuth":[]}],"method":"post","path":"/twophasecommitrunner/undeployPackages"}}