Skip to content

get_sol_network_operation

get_sol_network_operation(
    ns_lcm_op_occ_id: NsLcmOpOccId,
    *,
    config_overrides: Optional[tnbClientConfig] = None,
) -> GetSolNetworkOperationOutput

Gets the details of a network operation, including the tasks involved in the network operation and the status of the tasks.

A network operation is any operation that is done to your network, such as network instance instantiation or termination.

Parameters:

  • ns_lcm_op_occ_id (NsLcmOpOccId) –

    The identifier of the network operation.

Raises:

Examples:

Get Sol Network Instantiate operation

>>> client.get_sol_network_operation(ns_lcm_op_occ_id='no-0d5b823eb5c2a9241')
Get Sol Network Update operation
>>> client.get_sol_network_operation(ns_lcm_op_occ_id='no-0d5b823eb5c2a9241')
Get Sol Network Update operation
>>> client.get_sol_network_operation(ns_lcm_op_occ_id='no-0d5b823eb5c2a9241')
Get Sol Network Instantiate operation which has a failure
>>> client.get_sol_network_operation(ns_lcm_op_occ_id='no-0d5b823eb5c2a9241')
Source code in docs_src/capo_tnb/_services/tnb.py
def get_sol_network_operation(
    self,
    ns_lcm_op_occ_id: "capo_tnb.types.ns_lcm_op_occ_id.NsLcmOpOccId",
    *,
    config_overrides: Optional[tnbClientConfig] = None,
) -> "capo_tnb.types.get_sol_network_operation_output.GetSolNetworkOperationOutput":
    """<p>Gets the details of a network operation, including the tasks involved in the network operation and the status of the tasks.</p> <p>A network operation is any operation that is done to your network, such as network instance instantiation or termination.</p>

    Args:
        ns_lcm_op_occ_id: <p>The identifier of the network operation.</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 Sol Network Instantiate operation

        >>> client.get_sol_network_operation(ns_lcm_op_occ_id='no-0d5b823eb5c2a9241')
        Get Sol Network Update operation

        >>> client.get_sol_network_operation(ns_lcm_op_occ_id='no-0d5b823eb5c2a9241')
        Get Sol Network Update operation

        >>> client.get_sol_network_operation(ns_lcm_op_occ_id='no-0d5b823eb5c2a9241')
        Get Sol Network Instantiate operation which has a failure

        >>> client.get_sol_network_operation(ns_lcm_op_occ_id='no-0d5b823eb5c2a9241')
    """

    def _handler(
        req: "OperationRequest[capo_tnb.types.get_sol_network_operation_input.GetSolNetworkOperationInput]",
    ) -> OperationResponse[
        "capo_tnb.types.get_sol_network_operation_output.GetSolNetworkOperationOutput"
    ]:
        import capo_tnb._operations.tnb.get_sol_network_operation

        output, http_response = (
            capo_tnb._operations.tnb.get_sol_network_operation.get_sol_network_operation(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    def _redact_output(
        output: "capo_tnb.types.get_sol_network_operation_output.GetSolNetworkOperationOutput",
    ) -> dict[str, Any]:
        import capo_tnb.types.get_sol_network_operation_output

        return capo_tnb.types.get_sol_network_operation_output.redact_sensitive(
            output
        )

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging("GetSolNetworkOperation", redact_output=_redact_output),
    )
    input_: capo_tnb.types.get_sol_network_operation_input.GetSolNetworkOperationInput = {
        "ns_lcm_op_occ_id": ns_lcm_op_occ_id
    }

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output