sol_network_package_contents
Creates, updates, deletes, gets or lists a sol_network_package_contents resource.
Overview
| Name | sol_network_package_contents |
| Type | Resource |
| Id | aws.tnb.sol_network_package_contents |
Fields
The following fields are returned by SELECT queries:
- get_sol_network_package_content
| Name | Datatype | Description |
|---|---|---|
content_type | string | Indicates the media type of the resource. (application/zip) |
nsd_content | string (byte) | Content of the network service descriptor in the network package. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_sol_network_package_content | select | Accept, nsd_info_id, region | 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. | |
put_sol_network_package_content | replace | nsd_info_id, region, file | Content-Type | 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. |
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 you want to download from the network package. |
nsd_info_id | string | Network service descriptor info ID. |
region | string | AWS region (default: us-east-1) |
Content-Type | string | Network package content type. |
SELECT examples
- get_sol_network_package_content
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
- put_sol_network_package_content
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;