Skip to content

list_sol_network_operations

list_sol_network_operations(
    *,
    config_overrides: Optional[tnbClientConfig] = None,
    ns_instance_id: Optional[NsInstanceId] = None,
    max_results: Optional[int] = None,
    next_token: Optional[PaginationToken] = None,
) -> ListSolNetworkOperationsOutput

Lists details for a network operation, including when the operation started and the status of the operation.

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

Parameters:

  • ns_instance_id (Optional[NsInstanceId], default: None ) –

    Network instance id filter, to retrieve network operations associated to a network instance.

  • max_results (Optional[int], default: None ) –

    The maximum number of results to include in the response.

  • next_token (Optional[PaginationToken], default: None ) –

    The token for the next page of results.

Raises:

Examples:

List Sol Network Instantiate operations

>>> client.list_sol_network_operations()
List Sol Network Instantiate operations with nextToken and maxResults
>>> client.list_sol_network_operations(max_results=25, next_token='')
List Sol Network Update operations
>>> client.list_sol_network_operations(ns_instance_id='ni-0d5b823eb5c2a9241')
List Sol Network Update operations
>>> client.list_sol_network_operations(ns_instance_id='ni-0d5b823eb5c2a9241')
Source code in docs_src/capo_tnb/_services/tnb.py
def list_sol_network_operations(
    self,
    *,
    config_overrides: Optional[tnbClientConfig] = None,
    ns_instance_id: Optional["capo_tnb.types.ns_instance_id.NsInstanceId"] = None,
    max_results: Optional[int] = None,
    next_token: Optional["capo_tnb.types.pagination_token.PaginationToken"] = None,
) -> "capo_tnb.types.list_sol_network_operations_output.ListSolNetworkOperationsOutput":
    """<p>Lists details for a network operation, including when the operation started and the status of the operation.</p> <p>A network operation is any operation that is done to your network, such as network instance instantiation or termination.</p>

    Args:
        ns_instance_id: <p>Network instance id filter, to retrieve network operations associated to a network instance.</p>
        max_results: <p>The maximum number of results to include in the response.</p>
        next_token: <p>The token for the next page of results.</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.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:
        List Sol Network Instantiate operations

        >>> client.list_sol_network_operations()
        List Sol Network Instantiate operations with nextToken and maxResults

        >>> client.list_sol_network_operations(max_results=25, next_token='')
        List Sol Network Update operations

        >>> client.list_sol_network_operations(ns_instance_id='ni-0d5b823eb5c2a9241')
        List Sol Network Update operations

        >>> client.list_sol_network_operations(ns_instance_id='ni-0d5b823eb5c2a9241')
    """

    def _handler(
        req: "OperationRequest[capo_tnb.types.list_sol_network_operations_input.ListSolNetworkOperationsInput]",
    ) -> OperationResponse[
        "capo_tnb.types.list_sol_network_operations_output.ListSolNetworkOperationsOutput"
    ]:
        import capo_tnb._operations.tnb.list_sol_network_operations

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListSolNetworkOperations")
    )
    input_: capo_tnb.types.list_sol_network_operations_input.ListSolNetworkOperationsInput = {}
    if ns_instance_id is not None:
        input_["ns_instance_id"] = ns_instance_id
    if max_results is not None:
        input_["max_results"] = max_results
    if next_token is not None:
        input_["next_token"] = next_token

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