list_core_devices
async
¶
list_core_devices(
*,
config_overrides: Optional[AsyncGreengrassV2ClientConfig] = None,
thing_group_arn: Optional[ThingGroupARN] = None,
status: Optional[CoreDeviceStatus] = None,
max_results: Optional[DefaultMaxResults] = None,
next_token: Optional[NextTokenString] = None,
runtime: Optional[CoreDeviceRuntimeString] = None,
) -> ListCoreDevicesResponse
Retrieves a paginated list of Greengrass core devices.
IoT Greengrass relies on individual devices to send status updates to the Amazon Web Services Cloud. If the IoT Greengrass Core software isn't running on the device, or if device isn't connected to the Amazon Web Services Cloud, then the reported status of that device might not reflect its current status. The status timestamp indicates when the device status was last updated.
Core devices send status updates at the following times:
-
When the IoT Greengrass Core software starts
-
When the core device receives a deployment from the Amazon Web Services Cloud
-
For Greengrass nucleus 2.12.2 and earlier, the core device sends status updates when the status of any component on the core device becomes
ERROREDorBROKEN. -
For Greengrass nucleus 2.12.3 and later, the core device sends status updates when the status of any component on the core device becomes
ERRORED,BROKEN,RUNNING, orFINISHED. -
At a regular interval that you can configure, which defaults to 24 hours
-
For IoT Greengrass Core v2.7.0, the core device sends status updates upon local deployment and cloud deployment
Parameters:
-
thing_group_arn(Optional[ThingGroupARN], default:None) –The ARN of the IoT thing group by which to filter. If you specify this parameter, the list includes only core devices that have successfully deployed a deployment that targets the thing group. When you remove a core device from a thing group, the list continues to include that core device.
-
status(Optional[CoreDeviceStatus], default:None) –The core device status by which to filter. If you specify this parameter, the list includes only core devices that have this status. Choose one of the following options:
-
HEALTHY– The IoT Greengrass Core software and all components run on the core device without issue. -
UNHEALTHY– The IoT Greengrass Core software or a component is in a failed state on the core device.
-
-
max_results(Optional[DefaultMaxResults], default:None) –The maximum number of results to be returned per paginated request.
-
next_token(Optional[NextTokenString], default:None) –The token to be used for the next set of paginated results.
-
runtime(Optional[CoreDeviceRuntimeString], default:None) –The runtime to be used by the core device. The runtime can be:
-
aws_nucleus_classic -
aws_nucleus_lite
-
Raises:
-
AccessDeniedException–You don't have permission to perform the action.
-
InternalServerException–IoT Greengrass can't process your request right now. Try again later.
-
ThrottlingException–Your request exceeded a request rate quota. For example, you might have exceeded the amount of times that you can retrieve device or deployment status per second.
-
ValidationException–The request isn't valid. This can occur if your request contains malformed JSON or unsupported characters.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_greengrassv2/_services/async_greengrass_v2.py
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 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 | |