put_sol_function_package_content
¶
put_sol_function_package_content(
vnf_pkg_id: VnfPkgId,
file: SensitiveBlob,
*,
config_overrides: Optional[tnbClientConfig] = None,
content_type: Optional[PackageContentType] = None,
) -> PutSolFunctionPackageContentOutput
Uploads the contents of a function package.
A function package is a .zip file in CSAR (Cloud Service Archive) format that contains a network function (an ETSI standard telecommunication application) and function package descriptor that uses the TOSCA standard to describe how the network functions should run on your network.
Parameters:
-
vnf_pkg_id(VnfPkgId) –Function package ID.
-
content_type(Optional[PackageContentType], default:None) –Function package content type.
-
file(SensitiveBlob) –Function package file.
Raises:
-
AccessDeniedException–Insufficient permissions to make request.
-
InternalServerException–Unexpected error occurred. Problem on the server.
-
ResourceNotFoundException–Request references a resource that doesn't exist.
-
ThrottlingException–Exception caused by throttling.
-
ValidationException–Unable to process the request because the client provided input failed to satisfy request constraints.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Upload a function package content
>>> client.put_sol_function_package_content(vnf_pkg_id='fp-07aa863e53460a2a6', content_type='application/zip', file='UEsDBBQAAAAAAPqLiVMAAAAAAAAAAAAAAAAMACAAZnJlZTVnYy1hbWYvVVQNAAcIrrJhBK')
Source code in docs_src/capo_tnb/_services/tnb.py
1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 | |