validate_sol_function_package_content
async
¶
validate_sol_function_package_content(
vnf_pkg_id: VnfPkgId,
file: SensitiveBlob,
*,
config_overrides: Optional[AsynctnbClientConfig] = None,
content_type: Optional[PackageContentType] = None,
) -> ValidateSolFunctionPackageContentOutput
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.
Parameters:
-
vnf_pkg_id(VnfPkgId) –Function package ID.
-
content_type(Optional[PackageContentType], default:None) –Function package content type.
-
file(SensitiveBlob) –Function package file.
Raises:
-
AccessDeniedException–Insufficient permissions to make request.
-
InternalServerException–Unexpected error occurred. Problem on the server.
-
ResourceNotFoundException–Request references a resource that doesn't exist.
-
ThrottlingException–Exception caused by throttling.
-
ValidationException–Unable to process the request because the client provided input failed to satisfy request constraints.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Validate a Function Package content
>>> await client.validate_sol_function_package_content(vnf_pkg_id='fp-07aa863e53460a2a6', content_type='application/zip', file='UEsDBBQAAAAAAPqLiVMAAAAAAAAAAAAAAAAMACAAZnJlZTVnYy1hbWYvVVQNAAcIrrJhBK')
Source code in docs_src/capo_tnb/_services/async_tnb.py
2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 | |