GET /backups/{ID}

In this article

    Returns a resource representation of a backup having the specified ID. The backup is created on or imported to the backup server connected to Veeam Backup Enterprise Manager.

    Request

    To get a backup, send the GET HTTP request to the URL of the /backups/{ID} resource.

    HTTP Request

    GET https://<Enterprise-Manager>:9398/api/backups/{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.

    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 /backups/{ID} resource.

    You can use the following parameters in the GET /query?type=Backup query:

    Parameter

    Type

    Description

    Can Be Used for Filtering

    Can Be Used for Sorting

    Uid

    URN

    ID of the backup resource, for example: urn:veeam:Backup:58c917c7-7b7a-41ff-8676-226656c35c05.

    True

    True

    Name

    String

    Name of the backup job parent to the backup, for example: SQL Backup.

    True

    True

    JobUid

    URN

    ID of the backup job parent to the backup, for example:urn:veeam:Job:da736815-4fea-4c8e-b0e1-5ecdbca1c512.

    True

    True

    JobName

    String

    Name of the backup job parent to the backup, for example: DNS Backup.

    True

    True

    RepositoryUid

    URN

    ID of the backup repository parent to the backup, for example: urn:veeam:Repository:b609c947-dd30-4295-8b57-cc880329dbd6.

    True

    True

    RepositoryName

    Name

    Name of the backup repository parent to the backup, for example: Backup Vol 1.

    True

    True

    Platform

    String

    Type of a platform of a backup resource. Possible values:

    • VMware — for protected VMware vSphere VMs.
    • HyperV — for protected Microsoft Hyper-V VMs.
    • vCloud — for protected vCloud Director resources.
    • AgentForLinux — for machines protected with Veeam Agent for Linux.
    • AgentForWindows — for machines protected with Veeam Agent for Windows.
    • CustomPlatform — for Nutanix and other custom platforms.

    True

    True

    BackupType

    String

    Type of a backup resource. Possible values:

    • Standard — for VMware, HyperV, vCloud and Standalone Veeam Backup Agent backup resources.
    • ParentBackup — for backup container resources. Represents a backup created by a Veeam Agent backup job in the Veeam Agent Management scenario, and contains links for child backups.
    • ChildBackup — for backup resources that have links to restore points and parent backups. Represents a backup of a separate machine in the backup created by a Veeam Agent backup job in the Veeam Agent Management scenario.

    True

    True

    Example

    The example below returns a resource representation of a backup having ID c213fbfa-7b9e-4772-9ddc-3ecbdcc3fc70:

    Request:

    GET https://localhost:9398/api/backups/c213fbfa-7b9e-4772-9ddc-3ecbdcc3fc70

     

    Request Header:

    X-RestSvcSessionId   NDRjZmJkYmUtNWE5NS00MTU2LTg4NjctOTFmMDY5YjdjMmNj

     

    Response:

    200 OK

     

    Response Body:

    <EntityRef UID="urn:veeam:Backup:c213fbfa-7b9e-4772-9ddc-3ecbdcc3fc70" Name="Simple backup_1" Href="https://localhost:9398/api/backups/c213fbfa-7b9e-4772-9ddc-3ecbdcc3fc70" Type="BackupReference" 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/repositories/b8832f03-2c9e-4222-8d0b-e43e0c912f93" Name="Scale-out Backup Repository 2" Type="RepositoryReference" Rel="Up"/>
       <Link Href="http://local.host:9399/api/backups/c213fbfa-7b9e-4772-9ddc-3ecbdcc3fc70?format=Entity" Name="Simple backup_1" Type="Backup" Rel="Alternate"/>
       <Link Href="http://local.host:9399/api/backups/c213fbfa-7b9e-4772-9ddc-3ecbdcc3fc70/childbackups" Type="BackupReferenceList" Rel="Up"/>
     </Links>
    </EntityRef>