Returns a list of the accessors and their properties. Accessor objects are containers that have the information required for token based access to your Ethereum nodes.
Parameters:
-
max_results
(Optional[AccessorListMaxResults], default:
None
)
–
The maximum number of accessors to list.
-
next_token
(Optional[PaginationToken], default:
None
)
–
The pagination token that indicates the next set of results to retrieve.
-
network_type
(Optional[AccessorNetworkType], default:
None
)
–
The blockchain network that the Accessor token is created for.
Use the value ETHEREUM_MAINNET_AND_GOERLI for all existing Accessors tokens that were created before the networkType property was introduced.
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
| def list_accessors(
self,
*,
config_overrides: Optional[ManagedBlockchainClientConfig] = None,
max_results: Optional[
"capo_managedblockchain.types.accessor_list_max_results.AccessorListMaxResults"
] = None,
next_token: Optional[
"capo_managedblockchain.types.pagination_token.PaginationToken"
] = None,
network_type: Optional[
"capo_managedblockchain.types.accessor_network_type.AccessorNetworkType"
] = None,
) -> "capo_managedblockchain.types.list_accessors_output.ListAccessorsOutput":
"""<p>Returns a list of the accessors and their properties. Accessor objects are containers that have the information required for token based access to your Ethereum nodes.</p>
Args:
max_results: <p> The maximum number of accessors to list.</p>
next_token: <p> The pagination token that indicates the next set of results to retrieve. </p>
network_type: <p>The blockchain network that the <code>Accessor</code> token is created for.</p> <note> <p>Use the value <code>ETHEREUM_MAINNET_AND_GOERLI</code> for all existing <code>Accessors</code> tokens that were created before the <code>networkType</code> property was introduced.</p> </note>
Raises:
capo_managedblockchain.errors.access_denied_exception.AccessDeniedException: <p>You don't have sufficient access to perform this action.</p>
capo_managedblockchain.errors.internal_service_error_exception.InternalServiceErrorException: <p>The request processing has failed because of an unknown error, exception or failure.</p>
capo_managedblockchain.errors.invalid_request_exception.InvalidRequestException: <p>The action or operation requested is invalid. Verify that the action is typed correctly.</p>
capo_managedblockchain.errors.throttling_exception.ThrottlingException: <p>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.</p>
capo_managedblockchain.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_managedblockchain.types.list_accessors_input.ListAccessorsInput]",
) -> OperationResponse[
"capo_managedblockchain.types.list_accessors_output.ListAccessorsOutput"
]:
import capo_managedblockchain._operations.taiga_web_service.list_accessors
output, http_response = (
capo_managedblockchain._operations.taiga_web_service.list_accessors.list_accessors(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ListAccessors")
)
input_: capo_managedblockchain.types.list_accessors_input.ListAccessorsInput = {}
if max_results is not None:
input_["max_results"] = max_results
if next_token is not None:
input_["next_token"] = next_token
if network_type is not None:
input_["network_type"] = network_type
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|