Rediscover Devices

post

/discovery-service/rediscovery

Rediscovers the devices for the current configuration. This is a legacy API. It is only available when the ENABLE_LEGACY_API_ENDPOINTS configuration parameter is set to true on the Discovery Service microservice. You cannot rediscover gNMI and Cisco DNA devices using this endpoint. Use the /v2/devices/rediscover endpoint instead.

Request

There are no request parameters for this operation.

Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
Nested Schema : Data
Type: object
The rediscovery data.
Show Source
Nested Schema : Configuration
Type: object
Show Source
  • Minimum Value: 0
    Maximum Value: 2147483647
    The number of minutes the discovery is valid before it gets expired.
    Example: 60
  • IncludedProtocols
    Type of polling enabled for rediscovery. Possible values are 1 for ping, 2 for SNMP, and 3 for REST. This legacy endpoint does not support gNMI and Cisco DNA rediscovery. Use /v2/devices/rediscover instead.
Nested Schema : IPList
Type: array
The list of IP addresses.
Show Source
Example:
[
    "192.0.2.0",
    "192.0.2.1"
]
Nested Schema : IncludedProtocols
Type: array
Type of polling enabled for rediscovery. Possible values are 1 for ping, 2 for SNMP, and 3 for REST. This legacy endpoint does not support gNMI and Cisco DNA rediscovery. Use /v2/devices/rediscover instead.
Show Source
Back to Top

Response

Supported Media Types

200 Response

Successful operation
Body ()
Root Schema : DiscoveryCreateResponse
Type: object
Show Source

401 Response

Unauthorized operation

405 Response

Bad request

500 Response

Internal server error
Back to Top