Get a Discovery Rule
You can get a representation of a discovery rule with the specified ID.
Request
To get a resource representation of a discovery rule, send the GET HTTPS request to the URL of its resource.
HTTPS Request
GET https://<Availability-Console>:1281/v2/discoveryRules/{ID} |
Request Headers
The request header must contain the authorization token for the current logon session.
Response
The server returns the following response to the client.
Response Code
A successfully completed operation returns response code 200 Success.
Response Headers
The response to this request contains the following headers. The response may also include additional standard HTTP headers.
Header | Description |
Content-length | The length of the response body. |
Content-type | The media type and syntax of the request body message: application/json; charset=utf-8 |
Response Body
In the response body, Veeam Availability Console returns a representation of the /discoveryRules/{ID} resource.
Example
The following request returns a representation of a discovery rule in with ID.
Request: 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": "https://vac.tech.local:1281/v2/discoveryRules/1" }, "tenants": { "href": "https://vac.tech.local:1281/v2/tenants/2" } } } |