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

(GET) /managedServers/{ID}

In this article

    Returns a resource representation of the server having the specified ID.

    Request

    To get a resource representation of the server, you need to send the GET HTTP request to the URL of the /managedServers/{ID} resource:

    HTTP Request

    GET http://<Enterprise-Manager>:9399/api/managedServers/{ID}

    or

    GET http://<Enterprise-Manager>:9399/api/managedServers/{ID}?format=Entity

    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. To learn more, see Authentication and Security.

    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 the server connected to Veeam Backup & Replication, for example: urn:veeam:ManagedServer:15942270-fb56-4dcc-96e9-5f80e4725a15.

    True

    True

    Name

    String

    Full DNS name or IP address of the server connected to Veeam Backup & Replication. for example: 172.16.1.102.

    True

    True

    Description

    String

    Description specified for the server in Veeam Backup & Replication.

    True

    True

    ManagedServerType

    String

    Type of the server connected to Veeam Backup & Replication. Possible values:

    • ESX
    • VC
    • Linux
    • Local
    • Windows
    • ESXi
    • HvServer
    • HvCluster
    • Scvmm
    • BackupServer
    • SanHost
    • SmbServer
    • SmbCluster
    • VcdSystem
    • Cloud

    True

    True

    Response

    The server returns the following response to the client.

    Response Codes

    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/xml.

    Response Body

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

    Example

    The example below returns an entity representation of the server having ID a5352877-3b99-4e2a-8700-400cb3eefb56:

    Request:

    GET http://localhost:9399/api/managedServers/a5352877-3b99-4e2a-8700-400cb3eefb56?format=Entity

     

    Request Header:

    X-RestSvcSessionId   NDRjZmJkYmUtNWE5NS00MTU2LTg4NjctOTFmMDY5YjdjMmNj

     

    Response:

    200 Success

     

    Response Body:

    <ManagedServer xmlns="http://www.veeam.com/ent/v1.0" Type="ManagedServer" Href="http://localhost:9399/api/managedServers/a5352877-3b99-4e2a-8700-400cb3eefb56?format=Entity" Name="172.16.16.77" UID="urn:veeam:ManagedServer:a5352877-3b99-4e2a-8700-400cb3eefb56">
     <Links>
       <Link Rel="Up" Type="BackupServer" Href="http://localhost:9399/api/backupServers/ce15a8c7-aa49-495e-b05b-ee3398c91018?format=Entity" Name="srv02.veeam.local" />
       <Link Rel="Alternate" Type="ManagedServerReference" Href="http://localhost:9399/api/managedServers/a5352877-3b99-4e2a-8700-400cb3eefb56" Name="172.16.16.77" />
       <Link Rel="Related" Type="HierarchyRoot" Href="http://localhost:9399/api/hierarchyRoots/a5352877-3b99-4e2a-8700-400cb3eefb56?format=Entity" Name="172.16.16.77" />
     </Links>
     <Description>Target Windows server.</Description>
     <ManagedServerType>Windows</ManagedServerType>
    </ManagedServer>

    The example below executes a query to get a Veeam backup server having IP address 172.16.0.11:

    Request:

    GET http://localhost:9399/api/query?type=managedServer&filter=name=="172.16.0.11"

     

    Request Header:

    X-RestSvcSessionId   NDRjZmJkYmUtNWE5NS00MTU2LTg4NjctOTFmMDY5YjdjMmNj

     

    Response:

    200 Success

     

    Response Body:

    <ManagedServer xmlns="http://www.veeam.com/ent/v1.0" Type="ManagedServer" Href="http://localhost:9399/api/managedServers/a5352877-3b99-4e2a-8700-400cb3eefb56?format=Entity" Name="172.16.0.11" UID="urn:veeam:ManagedServer:a5352877-3b99-4e2a-8700-400cb3eefb56">
     <Links>
       <Link Rel="Up" Type="BackupServer" Href="http://localhost:9399/api/backupServers/ce15a8c7-aa49-495e-b05b-ee3398c91018?format=Entity" Name="srv01.veeam.local" />
       <Link Rel="Alternate" Type="ManagedServerReference" Href="http://localhost:9399/api/managedServers/a5352877-3b99-4e2a-8700-400cb3eefb56" Name="172.16.0.11" />
       <Link Rel="Related" Type="HierarchyRoot" Href="http://localhost:9399/api/hierarchyRoots/a5352877-3b99-4e2a-8700-400cb3eefb56?format=Entity" Name="172.16.0.11" />
     </Links>
     <Description>Target Windows server.</Description>
     <ManagedServerType>Windows</ManagedServerType>
    </ManagedServer>