{"type":"model","meta":{"id":"/apps/pubhub/media/crosswork-network-controller-7-1/f445c17e25a1120e8fbde4bd413083d0fd88b2b3/26ac3d17-3e68-3a52-bd26-162688e83359","info":{"title":"Crosswork System Package Manager API","description":"System Package Manager provides API methods for patching system packages on Crosswork. This includes OS packages, K8S, CRI etc.","version":"1.0.0","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"}},"security":[{"bearerAuth":[]}],"x-parser-conf":{"overview":{"markdownPath":"reference/INFRA/SYSTEM_PACKAGE/system-package-overview.md"}},"openapi":"3.0.0","servers":[{"url":"/crosswork/platform/v1"}],"securitySchemes":{"bearerAuth":{"type":"apiKey","name":"Authorization","in":"header","description":"Bearer token for API authentication."}}},"spec":{"type":"object","properties":{"file_location":{"type":"object","properties":{"scp_location":{"type":"object","properties":{"remote_file":{"type":"string","title":"file to download"},"ssh_config":{"type":"object","properties":{"remote_host":{"type":"string","title":"Remote host"},"username":{"type":"string","title":"Remote host user"},"password":{"type":"string","title":"Remote host password"},"port":{"type":"integer","format":"int64","title":"Remote host ssh port"}},"title":"SSHConfig for remote host","example":{"remote_host":"192.168.1.1","username":"user","password":"pass","port":22},"$$ref":"#/components/schemas/common_platformSshConfig"}},"title":"SCP location to download the file from","example":{"remote_file":"/path/to/remote/file.tar.gz","ssh_config":{"remote_host":"192.168.1.1","username":"user","password":"pass","port":22}},"$$ref":"#/components/schemas/common_platformScpLocation"},"uri_location":{"type":"object","properties":{"uri":{"type":"string","title":"http or https or file url to download the file , supports ex https://www.foo.com/bar.tar.gz ,\nhttp://192.65.10.20/bar.tar.gz , file:///tmp/bar.tar.gz\nSupports http,https or file scheme"},"basic_auth":{"type":"object","properties":{"username":{"type":"string","title":"Username"},"password":{"type":"string","title":"Password"}},"title":"Basic Authentication","example":{"username":"admin","password":"password123"},"$$ref":"#/components/schemas/common_platformBasicAuthentication"},"skip_tls_verify":{"type":"boolean","title":"Skip TLS verification if https"}},"title":"URI location for the file","example":{"uri":"https://example.com/file.tar.gz","basic_auth":{"username":"user","password":"pass"},"skip_tls_verify":false},"$$ref":"#/components/schemas/common_platformURILocation"}},"title":"File location to download the file from","example":{"uri_location":{"uri":"https://example.com/file.tar.gz","basic_auth":{"username":"user","password":"pass"}}},"$$ref":"#/components/schemas/common_platformFileLocation"}},"title":"system_packageAddToRepositoryRequest","example":{"file_location":{"uri_location":{"uri":"https://example.com/package.tar.gz"}}},"$$ref":"#/components/schemas/system_packageAddToRepositoryRequest"}}