validate_sol_function_package_content

validate_sol_function_package_content(**kwargs)

Validates function package content. This can be used as a dry run before uploading function package content with PutSolFunctionPackageContent.

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.

See also: AWS API Documentation

Request Syntax

response = client.validate_sol_function_package_content(
    contentType='application/zip',
    file=b'bytes'|file,
    vnfPkgId='string'
)
Parameters
  • contentType (string) -- Function package content type.
  • file (bytes or seekable file-like object) --

    [REQUIRED]

    Function package file.

  • vnfPkgId (string) --

    [REQUIRED]

    Function package ID.

Return type

dict

Returns

Response Syntax

{
    'id': 'string',
    'metadata': {
        'vnfd': {
            'overrides': [
                {
                    'defaultValue': 'string',
                    'name': 'string'
                },
            ]
        }
    },
    'vnfProductName': 'string',
    'vnfProvider': 'string',
    'vnfdId': 'string',
    'vnfdVersion': 'string'
}

Response Structure

  • (dict) --

    • id (string) --

      Function package ID.

    • metadata (dict) --

      Function package metadata.

      • vnfd (dict) --

        Metadata for function package artifacts.

        Artifacts are the contents of the package descriptor file and the state of the package.

        • overrides (list) --

          Lists of function package overrides.

          • (dict) --

            Overrides of the TOSCA node.

            • defaultValue (string) --

              Default value for the override.

            • name (string) --

              Name of the TOSCA override.

    • vnfProductName (string) --

      Network function product name.

    • vnfProvider (string) --

      Network function provider.

    • vnfdId (string) --

      Function package descriptor ID.

    • vnfdVersion (string) --

      Function package descriptor version.

Exceptions

  • TelcoNetworkBuilder.Client.exceptions.InternalServerException
  • TelcoNetworkBuilder.Client.exceptions.ThrottlingException
  • TelcoNetworkBuilder.Client.exceptions.ValidationException
  • TelcoNetworkBuilder.Client.exceptions.ResourceNotFoundException
  • TelcoNetworkBuilder.Client.exceptions.AccessDeniedException