This is an archive version of the document. To get the most up-to-date information, see the current version.

Discovery Rules

The /discoveryRules resource collection represents a collection of all discovery rules configured in Veeam Service Provider Console. The collection includes resources which represent individual discovery rules and have system IDs.

Collection URL

https://<hostname>:1281/v2/discoveryRules

Collection Representation Discovery Rules

[

 {

   "id": 1,

   "name": "NetworkDiscovery",

   "companyId": 3,

   "locationId": 3,

   "accountName": "vac\\administrator",

   "instanceCount": 0,

   "onlineInstanceCount": 0,

   "offlineInstanceCount": 0,

   "state": "Running",

   "lastRun": "2017-08-31T16:38:11Z",

   "type": "NetworkBased",

   "exclusionMask": null,

   "_links": {

     "self": {

       "href": "https://vac.tech.local:1281/v2/discoveryRules/1"

     },

     "tenants": {

       "href": "https://vac.tech.local:1281/v2/tenants/2"

     }

   }

 },

 {

   "id": 7,

   "name": "AD Discovery",

   "companyId": 2,

   "locationId": 2,

   "accountName": "tech\\john.smith",

   "instanceCount": 60,

   "onlineInstanceCount": 27,

   "offlineInstanceCount": 33,

   "state": "Success",

   "lastRun": "2017-10-17T15:50:04.1563829Z",

   "type": "AD",

   "ignoreOfflineComputers": true,

   "exclusionMask": null,

   "adType": "SearchFromOU",

   "command": null,

   "_links": {

     "self": {

       "href": "https://vac.tech.local:1281/v2/discoveryRules/7"

     }

     "tenants": {

       "href": "https://vac.tech.local:1281/v2/tenants/2"

     }

   }

 }

]