Fetch VNF package content

Use this API to obtain package content for a specific VNF package. The GET method fetches the content of a VNF package identified by the VNF package identifier.

The following elements of the request, example, and responses are described:

Request

Table 1. Request
Aspect Value
Endpoint URL /api/etsi/vnfpkgm/v2/vnf_packages/<package-id>/package_content
HTTP Method GET

Request headers

Table 2. Request headers
Header Value
Content-Type application/zip
Version 2.1.0
Range Optional. Can be used to continue an aborted transmission.

Example value to commence from 1000 bytes: bytes=1000-

Request data

None

Request data example

None

Response codes

Table 3. Response codes
HTTP status code Description
200 OK. The VNF package content has been successfully retrieved.
206 If Range header is provided, then the response indicates Partial content.
400 The response body contains details about the error.
404 When No Package for supplied ID is found.
409 Typically, this is due to the fact that the onboarding state of the VNF package has a value different from ONBOARDED.
500 Internal Server Error
4xx/5xx In addition to the response codes defined in this table, any common error response codes.

Response headers

Table 4. Request headers
Header Value
Content-Type application/zip
Content-Range (only set in case of 206 HTTP response code) bytes 1000-/*

Response data

A successful response payload body contains a ZIP file which is the content of the VNF package.