{"type":"api","title":"Upload and deploys 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":"Upload and deploys cat-function-packs","description":"Uploads and deploys a cat function pack. The uploaded packages are copied to the packages area and the 2 phase commit is run to deploy it.","operationId":"uploadPackages","parameters":[{"name":"packages","in":"query","description":"Function Package to uploaded and deployed","required":true,"schema":{"type":"array","items":{"type":"string","format":"binary"}}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string"},"example":"{\"deployment_result\":\"CNC Function Packs DEPLOYED At time: 2023-06-14_09-41-13\",\"status\":\"Upload of packages succeeded\"}"}}},"400":{"description":"Bad request"},"500":{"description":"Internal server error"},"503":{"description":"Service Unavailable"}},"__originalOperationId":"uploadPackages","security":[{"bearerAuth":[]}],"method":"patch","path":"/twophasecommitrunner/uploadPackages"}}