list_proposals
async
¶
list_proposals(
network_id: ResourceIdString,
*,
config_overrides: Optional[AsyncManagedBlockchainClientConfig] = None,
max_results: Optional[ProposalListMaxResults] = None,
next_token: Optional[PaginationToken] = None,
) -> ListProposalsOutput
Returns a list of proposals for the network.
Applies only to Hyperledger Fabric.
Parameters:
-
network_id(ResourceIdString) –The unique identifier of the network.
-
max_results(Optional[ProposalListMaxResults], default:None) –The maximum number of proposals to return.
-
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.
-
ResourceNotFoundException–A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
-
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/async_managed_blockchain.py
1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 | |