:doc:`TelcoNetworkBuilder <../../tnb>` / Client / get_sol_function_package_content

********************************
get_sol_function_package_content
********************************



.. py:method:: TelcoNetworkBuilder.Client.get_sol_function_package_content(**kwargs)

  

  Gets 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.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/tnb-2008-10-21/GetSolFunctionPackageContent>`_  


  **Request Syntax**
  ::

    response = client.get_sol_function_package_content(
        accept='application/zip',
        vnfPkgId='string'
    )
    
  :type accept: string
  :param accept: **[REQUIRED]** 

    The format of the package that you want to download from the function packages.

    

  
  :type vnfPkgId: string
  :param vnfPkgId: **[REQUIRED]** 

    ID of the function package.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'contentType': 'application/zip',
          'packageContent': StreamingBody()
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **contentType** *(string) --* 

        Indicates the media type of the resource.

        
      

      - **packageContent** (:class:`.StreamingBody`) -- 

        Contents of the function package.

        
  
  **Exceptions**
  
  *   :py:class:`TelcoNetworkBuilder.Client.exceptions.InternalServerException`

  
  *   :py:class:`TelcoNetworkBuilder.Client.exceptions.ThrottlingException`

  
  *   :py:class:`TelcoNetworkBuilder.Client.exceptions.ValidationException`

  
  *   :py:class:`TelcoNetworkBuilder.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`TelcoNetworkBuilder.Client.exceptions.AccessDeniedException`

  