(GET) /agents/discoveredComputers/{ID}

In this article

    Returns a resource representation of a protected computer having the specified ID.

    Request

    To get a job session, you need to send the GET HTTP request to the URL of the /agents/discoveredComputers/{ID} resource.

    HTTP Request

    GET https://<Enterprise-Manager>:9398/api/agents/discoveredComputers/{ID}

    Request Headers

    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.

    Request Body

    None.

    Query Parameters

    The following parameters can be used in queries.

    Parameter

    Type

    Description

    Can Be Used for Filtering

    Can Be Used for Sorting

    Uid

    URN

    ID of a protected computer, for example: 88b395e2-81ff-439c-558c-188d97274c15.

    True

    True

    Name

    String

    Name of a protected computer, for example: AgentProtected.local.

    True

    True

    BackupServerUid

    URN

    ID of the backup server parent to the protected computer resource.

    True

    True

    BackupServerName

    String

    Name of the backup server parent to the protected computer resource.

    True

    True

    AgentVersion

    String

    Version of Veeam Agent installed on the protected computer.

    True

    True

    AgentStatus

    String

    Veeam Agent installation status:

    • NotInstalled
    • Installed
    • UnsupportedOs
    • Failed
    • Exclude

    True

    True

    OsVersion

    String

    Version of the OS installed on the protected computer.

    True

    True

    IpAddress

    String

    IP address of the protected computer.

    True

    True

    ProtectionGroupUid

    URN

    ID of a protection group that contains the protected computer.

    True

    True

    ProtectionGroupName

    String

    Name of a protection group that contains the protected computer.

    True

    True

    Response

    The server returns the following response to the client.

    Response Codes

    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.

    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

    Response Body

    In the response body, Veeam Backup Enterprise Manager returns a representation of the /agents/discoveredComputers/{ID} resource.

    Example

    An example below returns an entity representation of the protected computer resource having ID b0ad8ec4-5f17-45e6-be9b-1334ea320af0.

    Request:

    GET https://localhost:9398/api/agents/discoveredComputers/b0ad8ec4-5f17-45e6-be9b-1334ea320af0?format=Entity

     

    Request Header:

    X-RestSvcSessionId   NDRjZmJkYmUtNWE5NS00MTU2LTg4NjctOTFmMDY5YjdjMmNj

     

    Response:

    200 OK

     

    Response Body:

    <DiscoveredComputer Href="http://local.host:9399/api/backupTaskSessions/b0ad8ec4-5f17-45e6-be9b-1334ea320af0?format=Entity" Type="DiscoveredComputer" Name="win7x86.local" UID="urn:veeam:DiscoveredComputer:b0ad8ec4-5f17-45e6-be9b-1334ea320af0" 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">
     <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" Name="win7x86.local" Type="DiscoveredComputerReference" Rel="Alternate"/>
       <Link Href="http://local.host:9399/api/agents/protectionGroups/9093c50b-fc31-41e0-89d9-44c195a9eed5" Name="Protection Group" Type="AgentProtectionGroupReference" Rel="Up"/>
     </Links>
     <HostStatus>Online</HostStatus>
     <AgentVersion>3.0.0.742</AgentVersion>
     <AgentStatus>Installed</AgentStatus>
     <OsVersion>Microsoft Windows 7 (32-bit)</OsVersion>
     <IpAddress>172.17.46.3</IpAddress>
    </DiscoveredComputer>

    I want to report a typo

    There is a misspelling right here:

     

    I want to let the Veeam Documentation Team know about that.