start_device_discovery
async
¶
start_device_discovery(
discovery_type: DiscoveryType,
*,
config_overrides: Optional[AsyncIoTManagedIntegrationsClientConfig] = None,
custom_protocol_detail: Optional[CustomProtocolDetail] = None,
controller_identifier: Optional[ManagedThingId] = None,
connector_association_identifier: Optional[ConnectorAssociationId] = None,
account_association_id: Optional[AccountAssociationId] = None,
authentication_material: Optional[DiscoveryAuthMaterialString] = None,
authentication_material_type: Optional[DiscoveryAuthMaterialType] = None,
client_token: Optional[ClientToken] = None,
tags: Optional[TagsMap] = None,
connector_device_id_list: Optional[ConnectorDeviceIdList] = None,
protocol: Optional[ProtocolType] = None,
end_device_identifier: Optional[ManagedThingId] = None,
) -> StartDeviceDiscoveryResponse
This API is used to start device discovery for hub-connected and third-party-connected devices. The authentication material (install code) is delivered as a message to the controller instructing it to start the discovery.
Parameters:
-
discovery_type(DiscoveryType) –The discovery type supporting the type of device to be discovered in the device discovery task request.
-
custom_protocol_detail(Optional[CustomProtocolDetail], default:None) –Additional protocol-specific details required for device discovery, which vary based on the discovery type.
For a
DiscoveryTypeofCUSTOM, the string-to-string map must have a key value ofNameset to a non-empty-string. -
controller_identifier(Optional[ManagedThingId], default:None) –The id of the end-user's IoT hub.
-
connector_association_identifier(Optional[ConnectorAssociationId], default:None) –The id of the connector association.
-
account_association_id(Optional[AccountAssociationId], default:None) –The identifier of the cloud-to-cloud account association to use for discovery of third-party devices.
-
authentication_material(Optional[DiscoveryAuthMaterialString], default:None) –The authentication material required to start the local device discovery job request.
-
authentication_material_type(Optional[DiscoveryAuthMaterialType], default:None) –The type of authentication material used for device discovery jobs.
-
client_token(Optional[ClientToken], default:None) –An idempotency token. If you retry a request that completed successfully initially using the same client token and parameters, then the retry attempt will succeed without performing any further actions.
-
tags(Optional[TagsMap], default:None) –A set of key/value pairs that are used to manage the device discovery request.
-
connector_device_id_list(Optional[ConnectorDeviceIdList], default:None) –Used as a filter for PLA discoveries.
-
protocol(Optional[ProtocolType], default:None) –The protocol type for capability rediscovery (ZWAVE, ZIGBEE, or CUSTOM).
This parameter is only available when the discovery type is CONTROLLER_CAPABILITY_REDISCOVERY.
-
end_device_identifier(Optional[ManagedThingId], default:None) –The unique id of the end device for capability rediscovery.
This parameter is only available when the discovery type is CONTROLLER_CAPABILITY_REDISCOVERY.
Raises:
-
AccessDeniedException–User is not authorized.
-
ConflictException–There is a conflict with the request.
-
InternalServerException–Internal error from the service that indicates an unexpected error or that the service is unavailable.
-
ResourceNotFoundException–The specified resource does not exist.
-
ServiceUnavailableException–The service is temporarily unavailable.
-
ThrottlingException–The rate exceeds the limit.
-
UnauthorizedException–You are not authorized to perform this operation.
-
ValidationException–A validation error occurred when performing the API request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_iot_managed_integrations/_services/async_io_t_managed_integrations.py
2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 | |