GET /agents/discoveredComputers
Returns a resource representation of a collection of all protected computers in protection groups configured on all backup servers connected to Veeam Backup Enterprise Manager.
To get a list of all protected computers, send the GET HTTP request to the URL of the /agents/discoveredComputers resource.
GET https://<Enterprise-Manager>:9398/api/agents/discoveredComputers |
The request contains the following headers:
Header | Required | Description |
---|
X-RestSvcSessionId | True | The request requires authorization. In the header, the client must send a session ID copied from the server reply to the request creating a new logon session. For details, see Authentication and Security. |
Accept | False | Identifies the format of the response. Possible values: - application/xml — the client can send this value in the header to accept response in the XML format.
- application/json — the client must send this value in the header to accept the request in the JSON format.
If the request does not contain the header, the server will return the response in the XML format. |
None.
The server returns the following response to the client.
A successfully completed operation returns response code 200 OK.
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. Possible values: - application/xml
- application/json
|
In the response body, the REST API returns a representation of the /agents/discoveredComputers resource.
The example below returns a list of all protected computers on all backup servers connected to Veeam Backup Enterprise Manager.
Request: GET https://localhost:9398/api/agents/discoveredComputers Request Header: X-RestSvcSessionId NDRjZmJkYmUtNWE5NS00MTU2LTg4NjctOTFmMDY5YjdjMmNj Response: 200 OK Response Body: <EntityReferences xmlns="http://www.veeam.com/ent/v1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Ref UID="urn:veeam:DiscoveredComputer:b0ad8ec4-5f17-45e6-be9b-1334ea320af0" Name="win7x86.local" Href="http://local.host:9399/api/backupTaskSessions/b0ad8ec4-5f17-45e6-be9b-1334ea320af0" Type="DiscoveredComputerReference"> <Links> <Link Href="http://local.host:9399/api/backupServers/8c88c6d6-931f-4044-8c0b-7a0c5f188b00" Name="local.host" Type="BackupServerReference" Rel="Up"/> <Link Href="http://local.host:9399/api/agents/discoveredComputers/b0ad8ec4-5f17-45e6-be9b-1334ea320af0?format=Entity" Name="win7x86.local" Type="DiscoveredComputer" Rel="Alternate"/> </Links> </Ref> <Ref UID="urn:veeam:DiscoveredComputer:9ee13ff9-aaa7-403d-80c1-9f49833b90a9" Name="sql12ten.local" Href="http://local.host:9399/api/backupTaskSessions/9ee13ff9-aaa7-403d-80c1-9f49833b90a9" Type="DiscoveredComputerReference"> <Links> <Link Href="http://local.host:9399/api/backupServers/8c88c6d6-931f-4044-8c0b-7a0c5f188b00" Name="local.host" Type="BackupServerReference" Rel="Up"/> <Link Href="http://local.host:9399/api/agents/discoveredComputers/9ee13ff9-aaa7-403d-80c1-9f49833b90a9?format=Entity" Name="sql12ten.tech.local" Type="DiscoveredComputer" Rel="Alternate"/> </Links> </Ref> <Ref UID="urn:veeam:DiscoveredComputer:53518661-b43f-4e50-a8cf-cffead274366" Name="rhel72" Href="http://local.host:9399/api/backupTaskSessions/53518661-b43f-4e50-a8cf-cffead274366" Type="DiscoveredComputerReference"> <Links> <Link Href="http://local.host:9399/api/backupServers/8c88c6d6-931f-4044-8c0b-7a0c5f188b00" Name="local.host" Type="BackupServerReference" Rel="Up"/> <Link Href="http://local.host:9399/api/agents/discoveredComputers/53518661-b43f-4e50-a8cf-cffead274366?format=Entity" Name="rhel72" Type="DiscoveredComputer" Rel="Alternate"/> </Links> </Ref> <Ref UID="urn:veeam:DiscoveredComputer:53518661-b43f-4e50-a8cf-cffead274366" Name="rhel72" Href="http://local.host:9399/api/backupTaskSessions/53518661-b43f-4e50-a8cf-cffead274366" Type="DiscoveredComputerReference"> <Links> <Link Href="http://local.host:9399/api/backupServers/8c88c6d6-931f-4044-8c0b-7a0c5f188b00" Name="local.host" Type="BackupServerReference" Rel="Up"/> <Link Href="http://local.host:9399/api/agents/discoveredComputers/53518661-b43f-4e50-a8cf-cffead274366?format=Entity" Name="rhel72" Type="DiscoveredComputer" Rel="Alternate"/> </Links> </Ref> <Ref UID="urn:veeam:DiscoveredComputer:a2db19ca-200f-4231-b655-ec47651cecb9" Name="sql2012.local" Href="http://local.host:9399/api/backupTaskSessions/a2db19ca-200f-4231-b655-ec47651cecb9" Type="DiscoveredComputerReference"> <Links> <Link Href="http://local.host:9399/api/backupServers/8c88c6d6-931f-4044-8c0b-7a0c5f188b00" Name="local.host" Type="BackupServerReference" Rel="Up"/> <Link Href="http://local.host:9399/api/agents/discoveredComputers/a2db19ca-200f-4231-b655-ec47651cecb9?format=Entity" Name="sql2012.local" Type="DiscoveredComputer" Rel="Alternate"/> </Links> </Ref> </EntityReferences> |