update_sol_network_package
¶
update_sol_network_package(
nsd_info_id: NsdInfoId,
nsd_operational_state: NsdOperationalState,
*,
config_overrides: Optional[tnbClientConfig] = None,
) -> UpdateSolNetworkPackageOutput
Updates the operational state 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.
A network service descriptor is a .yaml file in a network package that uses the TOSCA standard to describe the network functions you want to deploy and the Amazon Web Services infrastructure you want to deploy the network functions on.
Parameters:
-
nsd_info_id(NsdInfoId) –ID of the network service descriptor in the network package.
-
nsd_operational_state(NsdOperationalState) –Operational state of the network service descriptor in the network package.
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:
Enable a network package's Operational State
>>> client.update_sol_network_package(nsd_info_id='np-0d5b823eb5c2a9241', nsd_operational_state='ENABLED')
Disable a network package's Operational State
>>> client.update_sol_network_package(nsd_info_id='np-0d5b823eb5c2a9241', nsd_operational_state='DISABLED')
Source code in docs_src/capo_tnb/_services/tnb.py
2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 | |