{"type":"api","title":"Get software packages","meta":{"id":"/apps/pubhub/media/crosswork-network-controller-7-1/f445c17e25a1120e8fbde4bd413083d0fd88b2b3/1c070d4e-8870-3df3-a541-e46a890a47cb","info":{"title":"Crosswork Workflow Manager Solutions - Inventory","description":"Inventory component addresses the need where we require device details like device name, IP, hostname, Software Type, installed packages.\nFor collecting the required device details, Inventory performs the minimal device data collection using the inventory package in NSO.","contact":{"name":"Crosswork Team, Cisco","email":"support@cisco.com"},"license":{"name":"Cisco Software License Agreement","url":"https://www.cisco.com/public/sw-license-agreement.html"},"version":"7.1.0"},"x-parser-conf":{"overview":{"markdownPath":"reference/CWM-SOLUTIONS/inventory-api.overview.md"}},"openapi":"3.0.1","servers":[{"url":"https://crosswork-ip:30603/crosswork/cwms/inventory/v1"}],"securitySchemes":{"Bearer":{"type":"apiKey","description":"Type \"Bearer\" followed by a space and JWT token.","name":"Authorization","in":"header"}}},"spec":{"tags":["Inventory"],"summary":"Get software packages","description":"Retrieves Software Packages data of device by its uuid and state. List of state: PKG_ACTIVE, PKG_COMMITTED. NOTE: if no state provide then it will fetch all.","operationId":"fetchSwpkgInfo","parameters":[{"name":"uuid","in":"query","description":"Device uuid","required":true,"schema":{"type":"string"}},{"name":"state","in":"query","description":"Software Package state","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"integer"}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"HTTP status code"},"message":{"type":"string","description":"Message of response"},"status":{"type":"string","description":"Response status"},"uuid":{"type":"string","description":"Device UUID"}},"description":"Device Data response","$$ref":"#/components/schemas/rakapi.RakDeviceDataResp"}}}},"401":{"description":"Unauthorized","content":{}},"403":{"description":"Forbidden","content":{}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"HTTP status code"},"message":{"type":"string","description":"Message of response"},"status":{"type":"string","description":"Response status"},"uuid":{"type":"string","description":"Device UUID"}},"description":"Device Data response","$$ref":"#/components/schemas/rakapi.RakDeviceDataResp"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"HTTP status code"},"message":{"type":"string","description":"Message of response"},"status":{"type":"string","description":"Response status"},"uuid":{"type":"string","description":"Device UUID"}},"description":"Device Data response","$$ref":"#/components/schemas/rakapi.RakDeviceDataResp"}}}}},"__originalOperationId":"fetchSwpkgInfo","method":"get","path":"/info/swpkg"}}