list_nodes
¶
list_nodes(
network_id: ResourceIdString,
*,
config_overrides: Optional[ManagedBlockchainClientConfig] = None,
member_id: Optional[ResourceIdString] = None,
status: Optional[NodeStatus] = None,
max_results: Optional[NodeListMaxResults] = None,
next_token: Optional[PaginationToken] = None,
) -> ListNodesOutput
Returns information about the nodes within a network.
Applies to Hyperledger Fabric and Ethereum.
Parameters:
-
network_id(ResourceIdString) –The unique identifier of the network for which to list nodes.
-
member_id(Optional[ResourceIdString], default:None) –The unique identifier of the member who owns the nodes to list.
Applies only to Hyperledger Fabric and is required for Hyperledger Fabric.
-
status(Optional[NodeStatus], default:None) –An optional status specifier. If provided, only nodes currently in this status are listed.
-
max_results(Optional[NodeListMaxResults], default:None) –The maximum number of nodes to list.
-
next_token(Optional[PaginationToken], default:None) –The pagination token that indicates the next set of results to retrieve.
Raises:
-
AccessDeniedException–You don't have sufficient access to perform this action.
-
InternalServiceErrorException–The request processing has failed because of an unknown error, exception or failure.
-
InvalidRequestException–The action or operation requested is invalid. Verify that the action is typed correctly.
-
ThrottlingException–The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_managedblockchain/_services/managed_blockchain.py
1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 | |