Skip to main content

device_discoveries

Creates, updates, deletes, gets or lists a device_discoveries resource.

Overview

Namedevice_discoveries
TypeResource
Idaws.iot_managed_integrations.device_discoveries

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
account_association_idstringThe identifier of the account association used for the device discovery. (pattern: <code>[0-9a-zA-Z]+</code>)
arnstringThe Amazon Resource Name (ARN) of the device discovery job request. (pattern: <code>arn:aws:iotmanagedintegrations:[0-9a-zA-Z-]+:[0-9]+:device-discovery/[0-9a-zA-Z]+</code>)
connector_association_idstringThe ID tracking the current discovery process for one connector association. (pattern: <code>[0-9a-zA-Z]+</code>)
controller_idstringThe id of the end-user's IoT hub. (pattern: <code>[a-zA-Z0-9:_-]*</code>)
discovery_typestringThe discovery type supporting the type of device to be discovered in the device discovery job request. (ZWAVE, ZIGBEE, CLOUD, CUSTOM, CONTROLLER_CAPABILITY_REDISCOVERY)
finished_atstring (date-time)The timestamp value for the completion time of the device discovery.
idstringThe id of the device discovery job request. (pattern: <code>[A-Za-z0-9]+</code>)
started_atstring (date-time)The timestamp value for the start time of the device discovery.
statusstringThe status of the device discovery job request. (RUNNING, SUCCEEDED, FAILED, TIMED_OUT)
tagsobjectA set of key/value pairs that are used to manage the device discovery request.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_device_discoveryselectidentifier, regionGet the current state of a device discovery.
list_device_discoveriesselectregionNextToken, MaxResults, TypeFilter, StatusFilterLists all device discovery tasks, with optional filtering by type and status.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
identifierstringThe id of the device discovery job request.
regionstringAWS region (default: us-east-1)
MaxResultsintegerThe maximum number of device discovery jobs to return in a single response.
NextTokenstringA token used for pagination of results.
StatusFilterstringThe status to filter device discovery jobs by.
TypeFilterstringThe discovery type to filter device discovery jobs by.

SELECT examples

Get the current state of a device discovery.

SELECT
account_association_id,
arn,
connector_association_id,
controller_id,
discovery_type,
finished_at,
id,
started_at,
status,
tags
FROM aws.iot_managed_integrations.device_discoveries
WHERE identifier = '{{ identifier }}' -- required
AND region = '{{ region }}' -- required
;