.. Document meta :orphan: .. Anchors .. _ansible_collections.cisco.dnac.discovery_network_device_module: .. Anchors: short name for ansible.builtin .. Anchors: aliases .. Title cisco.dnac.discovery_network_device -- Manage DiscoveryNetworkDevice objects of Discovery +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. Collection note .. note:: This plugin is part of the `cisco.dnac collection `_ (version 2.0.7). To install it use: :code:`ansible-galaxy collection install cisco.dnac`. To use it in a playbook, specify: :code:`cisco.dnac.discovery_network_device`. .. version_added .. versionadded:: 1.0.0 of cisco.dnac .. contents:: :local: :depth: 1 .. Deprecated Synopsis -------- .. Description - Returns the network devices discovered for the given Discovery ID. Discovery ID can be obtained using the "Get Discoveries by range" API. - Returns the network devices discovered for the given discovery and for the given range. The maximum number of records that can be retrieved is 500. Discovery ID can be obtained using the "Get Discoveries by range" API. - Returns the count of network devices discovered in the given discovery. Discovery ID can be obtained using the "Get Discoveries by range" API. - Returns the network devices from a discovery job based on given filters. Discovery ID can be obtained using the "Get Discoveries by range" API. .. note:: This module has a corresponding :ref:`action plugin `. .. Aliases .. Requirements Requirements ------------ The below requirements are needed on the host that executes this module. - dnacentersdk .. Options Parameters ---------- .. raw:: html
Parameter Choices/Defaults Comments
cli_status
string
CliStatus query parameter.
count
boolean / required
    Choices:
  • no
  • yes
If true gets the number of objects.
http_status
string
HttpStatus query parameter.
id
string / required
Discovery ID.
ip_address
string
IpAddress query parameter.
netconf_status
string
NetconfStatus query parameter.
ping_status
string
PingStatus query parameter.
records_to_return
integer / required
Number of records to return.
snmp_status
string
SnmpStatus query parameter.
sort_by
string
SortBy query parameter.
sort_order
string
SortOrder query parameter.
start_index
integer / required
Start index.
summary
boolean / required
    Choices:
  • no
  • yes
If true gets the summary.
task_id
string
TaskId query parameter.

.. Notes .. Seealso See Also -------- .. seealso:: :ref:`cisco.dnac.plugins.module_utils.definitions.discovery_network_device ` The official documentation on the **cisco.dnac.plugins.module_utils.definitions.discovery_network_device** module. `DiscoveryNetworkDevice reference `_ Complete reference of the DiscoveryNetworkDevice object model. `DiscoveryNetworkDevice reference `_ SDK reference. .. Examples Examples -------- .. code-block:: yaml+jinja - name: get_discovered_network_devices_by_discovery_id cisco.dnac.discovery_network_device: state: query # required id: SomeValue # string, required task_id: SomeValue # string register: nm_get_discovered_network_devices_by_discovery_id - name: get_discovered_devices_by_range cisco.dnac.discovery_network_device: state: query # required id: SomeValue # string, required records_to_return: 1 # integer, required start_index: 1 # integer, required task_id: SomeValue # string register: nm_get_discovered_devices_by_range - name: get_devices_discovered_by_id cisco.dnac.discovery_network_device: state: query # required id: SomeValue # string, required count: True # boolean, required task_id: SomeValue # string register: nm_get_devices_discovered_by_id - name: get_network_devices_from_discovery cisco.dnac.discovery_network_device: state: query # required id: SomeValue # string, required summary: True # boolean, required cli_status: SomeValue # string http_status: SomeValue # string ip_address: SomeValue # string netconf_status: SomeValue # string ping_status: SomeValue # string snmp_status: SomeValue # string sort_by: SomeValue # string sort_order: SomeValue # string task_id: SomeValue # string register: nm_get_network_devices_from_discovery .. Facts .. Return values Return Values ------------- Common return values are documented :ref:`here `, the following are the fields unique to this module: .. raw:: html
Key Returned Description
dnac_response
dictionary
always
A dictionary with the response returned by the DNA Center Python SDK

Sample:
{'response': 29, 'version': '1.0'}
missing_params
list / elements=string
when the function request schema is not satisfied
Provided arguments do not comply with the schema of the DNA Center Python SDK function

sdk_function
string
always
The DNA Center SDK function used to execute the task

Sample:
discovery.get_devices_discovered_by_id


.. Status (Presently only deprecated) .. Authors Authors ~~~~~~~ - Rafael Campos (@racampos) .. Parsing errors