Gets the details of a network function instance, including the instantiation state and metadata from the function package descriptor in the network function package.
A network function instance is a function in a function package .
Parameters:
Raises:
Examples:
Get a Sol Network Function Instance details
>>> await client.get_sol_function_instance(vnf_instance_id='fi-b9439c34c1ef86c54')
Source code in docs_src/capo_tnb/_services/async_tnb.py
| async def get_sol_function_instance(
self,
vnf_instance_id: "capo_tnb.types.vnf_instance_id.VnfInstanceId",
*,
config_overrides: Optional[AsynctnbClientConfig] = None,
) -> "capo_tnb.types.get_sol_function_instance_output.GetSolFunctionInstanceOutput":
"""<p>Gets the details of a network function instance, including the instantiation state and metadata from the function package descriptor in the network function package.</p> <p>A network function instance is a function in a function package .</p>
Args:
vnf_instance_id: <p>ID of the network function.</p>
Raises:
capo_tnb.errors.access_denied_exception.AccessDeniedException: <p>Insufficient permissions to make request.</p>
capo_tnb.errors.internal_server_exception.InternalServerException: <p>Unexpected error occurred. Problem on the server.</p>
capo_tnb.errors.resource_not_found_exception.ResourceNotFoundException: <p>Request references a resource that doesn't exist.</p>
capo_tnb.errors.throttling_exception.ThrottlingException: <p>Exception caused by throttling.</p>
capo_tnb.errors.validation_exception.ValidationException: <p>Unable to process the request because the client provided input failed to satisfy request constraints.</p>
capo_tnb.errors.UnknownServiceError: The service returned an error code this client does not model.
Examples:
Get a Sol Network Function Instance details
>>> await client.get_sol_function_instance(vnf_instance_id='fi-b9439c34c1ef86c54')
"""
async def _handler(
req: "AsyncOperationRequest[capo_tnb.types.get_sol_function_instance_input.GetSolFunctionInstanceInput]",
) -> AsyncOperationResponse[
"capo_tnb.types.get_sol_function_instance_output.GetSolFunctionInstanceOutput"
]:
import capo_tnb._operations.tnb.get_sol_function_instance
(
output,
http_response,
) = await capo_tnb._operations.tnb.get_sol_function_instance.async_get_sol_function_instance(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
def _redact_output(
output: "capo_tnb.types.get_sol_function_instance_output.GetSolFunctionInstanceOutput",
) -> dict[str, Any]:
import capo_tnb.types.get_sol_function_instance_output
return capo_tnb.types.get_sol_function_instance_output.redact_sensitive(
output
)
interceptors_, options_ = self.operation_options(
config_overrides,
OperationLogging("GetSolFunctionInstance", redact_output=_redact_output),
)
input_: capo_tnb.types.get_sol_function_instance_input.GetSolFunctionInstanceInput = {
"vnf_instance_id": vnf_instance_id
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|