Device Management API

/api/space/device-management/discoveryresult/{id}

The following operations are supported on this resource:

GET /api/space/device-management/discoveryresult/{id} (v1)


This API is used to retrieve the result of a task for a specified task ID.

Access Control

The following capabilities are required to access this API:
"DiscoverDevices"


Example Usage

GET /api/space/device-management/discoveryresult/{id}


Parameters

NameTypeURI TypeDescriptionRequired
idintPathThe task ID for which results will be returned Y

Content Types

  • Produces content types:
    application/vnd.net.juniper.space.device-management.discoveryresult+xml;version=1
    application/vnd.net.juniper.space.device-management.discoveryresult+json;version=1


  • Sample Input XML:

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
       <discoveryresults size="1" >
         <discoveryresult>
           <id>1703939</id>
           <discoveryStatus>NOT_DISCOVERED</discoveryStatus>
           <discoveryFailReason>Device is not reachable</discoveryFailReason>
           <ip>192.168.1.1</ip>
         </discoveryresult>
       </discoveryresults>


  • Sample Output XML:

    {
    "discoveryresults":
       {"@size":"1",
       "discoveryresult":
         {
         "id":1703939,
         "discoveryStatus":"NOT_DISCOVERED",
         "discoveryFailReason":"Device is not reachable",
         "ip":"192.168.1.1"
         }
       }
    }