sol_function_package_contents
Creates, updates, deletes, gets or lists a sol_function_package_contents resource.
Overview
| Name | sol_function_package_contents |
| Type | Resource |
| Id | aws.tnb.sol_function_package_contents |
Fields
The following fields are returned by SELECT queries:
- get_sol_function_package_content
| Name | Datatype | Description |
|---|---|---|
content_type | string | Indicates the media type of the resource. (application/zip) |
package_content | string (byte) | Contents of the function package. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_sol_function_package_content | select | Accept, vnf_pkg_id, region | 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. | |
put_sol_function_package_content | replace | vnf_pkg_id, region, file | Content-Type | 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
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.
| Name | Datatype | Description |
|---|---|---|
Accept | string | The format of the package that you want to download from the function packages. |
region | string | AWS region (default: us-east-1) |
vnf_pkg_id | string | Function package ID. |
Content-Type | string | Function package content type. |
SELECT examples
- get_sol_function_package_content
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
- put_sol_function_package_content
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;