Skip to content

iter_list_nodes async

iter_list_nodes(
    network_id: ResourceIdString,
    *,
    config_overrides: Optional[AsyncManagedBlockchainClientConfig] = None,
    member_id: Optional[ResourceIdString] = None,
    status: Optional[NodeStatus] = None,
    max_results: Optional[NodeListMaxResults] = None,
    next_token: Optional[PaginationToken] = None,
) -> AsyncIterator[ListNodesOutput]
Source code in docs_src/capo_managedblockchain/_services/async_managed_blockchain.py
async def iter_list_nodes(
    self,
    network_id: "capo_managedblockchain.types.resource_id_string.ResourceIdString",
    *,
    config_overrides: Optional[AsyncManagedBlockchainClientConfig] = None,
    member_id: Optional[
        "capo_managedblockchain.types.resource_id_string.ResourceIdString"
    ] = None,
    status: Optional["capo_managedblockchain.types.node_status.NodeStatus"] = None,
    max_results: Optional[
        "capo_managedblockchain.types.node_list_max_results.NodeListMaxResults"
    ] = None,
    next_token: Optional[
        "capo_managedblockchain.types.pagination_token.PaginationToken"
    ] = None,
) -> (
    "AsyncIterator[capo_managedblockchain.types.list_nodes_output.ListNodesOutput]"
):
    _token = next_token
    while True:
        _response = await self.list_nodes(
            network_id,
            config_overrides=config_overrides,
            member_id=member_id,
            status=status,
            max_results=max_results,
            next_token=_token,
        )
        yield _response
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break