Skip to main content

sol_network_package_contents

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

Overview

Namesol_network_package_contents
TypeResource
Idaws.tnb.sol_network_package_contents

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
content_typestringIndicates the media type of the resource. (application/zip)
nsd_contentstring (byte)Content of the network service descriptor in the network package.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_sol_network_package_contentselectAccept, nsd_info_id, regionGets the contents of a network package. A network package is a .zip file in CSAR (Cloud Service Archive) format defines the function packages you want to deploy and the Amazon Web Services infrastructure you want to deploy them on.
put_sol_network_package_contentreplacensd_info_id, region, fileContent-TypeUploads the contents of a network package. A network package is a .zip file in CSAR (Cloud Service Archive) format defines the function packages you want to deploy and the Amazon Web Services infrastructure you want to deploy them on.

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 you want to download from the network package.
nsd_info_idstringNetwork service descriptor info ID.
regionstringAWS region (default: us-east-1)
Content-TypestringNetwork package content type.

SELECT examples

Gets the contents of a network package. A network package is a .zip file in CSAR (Cloud Service Archive) format defines the function packages you want to deploy and the Amazon Web Services infrastructure you want to deploy them on.

SELECT
content_type,
nsd_content
FROM aws.tnb.sol_network_package_contents
WHERE Accept = '{{ Accept }}' -- required
AND nsd_info_id = '{{ nsd_info_id }}' -- required
AND region = '{{ region }}' -- required
;

REPLACE examples

Uploads the contents of a network package. A network package is a .zip file in CSAR (Cloud Service Archive) format defines the function packages you want to deploy and the Amazon Web Services infrastructure you want to deploy them on.

REPLACE aws.tnb.sol_network_package_contents
SET
file = '{{ file }}'
WHERE
nsd_info_id = '{{ nsd_info_id }}' --required
AND region = '{{ region }}' --required
AND file = '{{ file }}' --required
AND `Content-Type` = '{{ Content-Type}}'
RETURNING
id,
arn,
metadata,
nsd_id,
nsd_name,
nsd_version,
vnf_pkg_ids;