Get a Discovery Rule

In this article

    You can get a representation of a discovery rule with the specified ID.


    To get a resource representation of a discovery rule, send the GET HTTPS request to the URL of its resource.

    HTTPS Request

    GET https://<hostname>:1281/v2/discoveryRules/{ID}

    Request Headers

    The request header must contain the authorization token.


    The server returns the following response to the client.

    Response Code

    A successfully completed operation returns response code 200 OK.

    Response Headers

    The response to this request contains the following headers. The response may also include additional standard HTTP headers.




    The length of the response body.


    The media type and syntax of the request body message: application/json; charset=utf-8

    Response Body

    In the response body, Veeam Service Provider Console returns a representation of the /discoveryRules/{ID} resource.

    Example Get a Discovery Rule

    The following request returns a representation of a discovery rule in with ID.


    GET https://localhost:1281/v2/discoveryRules/3


    Request Header:

    Authorization: Bearer <Access-Token>


    Response Code:

    200 Success


    Response Body:


       "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": ""


         "tenants": {

           "href": ""