list_networks
async
¶
list_networks(
*,
config_overrides: Optional[AsyncManagedBlockchainClientConfig] = None,
name: Optional[String] = None,
framework: Optional[Framework] = None,
status: Optional[NetworkStatus] = None,
max_results: Optional[NetworkListMaxResults] = None,
next_token: Optional[PaginationToken] = None,
) -> ListNetworksOutput
Returns information about the networks in which the current Amazon Web Services account participates.
Applies to Hyperledger Fabric and Ethereum.
Parameters:
-
name(Optional[String], default:None) –The name of the network.
-
framework(Optional[Framework], default:None) –An optional framework specifier. If provided, only networks of this framework type are listed.
-
status(Optional[NetworkStatus], default:None) –An optional status specifier. If provided, only networks currently in this status are listed.
Applies only to Hyperledger Fabric.
-
max_results(Optional[NetworkListMaxResults], default:None) –The maximum number of networks 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/async_managed_blockchain.py
1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 | |