Skip to main content

sol_function_package_contents

Creates, updates, deletes, gets or lists a sol_function_package_contents resource.

Overview

Namesol_function_package_contents
TypeResource
Idaws.tnb.sol_function_package_contents

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
content_typestringIndicates the media type of the resource. (application/zip)
package_contentstring (byte)Contents of the function package.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_sol_function_package_contentselectAccept, vnf_pkg_id, regionGets 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.
put_sol_function_package_contentreplacevnf_pkg_id, region, fileContent-TypeUploads 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

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
AcceptstringThe format of the package that you want to download from the function packages.
regionstringAWS region (default: us-east-1)
vnf_pkg_idstringFunction package ID.
Content-TypestringFunction package content type.

SELECT examples

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.

SELECT
content_type,
package_content
FROM aws.tnb.sol_function_package_contents
WHERE Accept = '{{ Accept }}' -- required
AND vnf_pkg_id = '{{ vnf_pkg_id }}' -- required
AND region = '{{ region }}' -- required
;

REPLACE examples

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.

REPLACE aws.tnb.sol_function_package_contents
SET
file = '{{ file }}'
WHERE
vnf_pkg_id = '{{ vnf_pkg_id }}' --required
AND region = '{{ region }}' --required
AND file = '{{ file }}' --required
AND `Content-Type` = '{{ Content-Type}}'
RETURNING
id,
metadata,
vnf_product_name,
vnf_provider,
vnfd_id,
vnfd_version;