(GET) /backupFiles/{ID}

In this article

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

    Request

    To get a backup file, you need to send the GET HTTP request to the URL of the /backupFiles/{ID} resource.

    HTTP Request

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

    or

    GET https://<Enterprise-Manager>:9398/api/backupFiles/{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. 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 the backup file resource, for example: urn:veeam:BackupFile:0874ab95-10e5-4f25-84df-2782ad81f3e5.

    True

    True

    Name

    String

    Name of the backup file, for example: Webserver BackupD2016-09-20T175902.vib.

    True

    True

    CreationTimeUTC

    DateTime

    Date and time when the backup file was created. The parameter accepts only UTC-formatted DateTime values.

    True

    True

    BackupSize

    Long

    Size of the backup file (in bytes).

    True

    True

    DataSize

    Long

    Size of the backed-up data (in bytes).

    True

    True

    CompressRatio

    Double

    Data compression ratio.

    True

    True

    FileType

    String

    Type of the backup file. Possible values:

    • vbk
    • vib
    • vrb

    True

    True

    BackupUid

    URN

    ID of the VM backup parent to the backup file resource.

    True

    True

    BackupName

    String

    Name of the backup parent to the backup file resource.

    True

    True

    BackupServerUid

    URN

    ID of the backup server parent to the backup file resource.

    True

    True

    BackupServerName

    String

    Name of the backup server parent to the backup file resource.

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

    Example

    The example below returns an entity resource representation of a backup file with ID 6ed26dc7-cc9e-4a89-9226-1ed9996fb1f4:

    Request:

    GET https://localhost:9398/api/backupFiles/6ed26dc7-cc9e-4a89-9226-1ed9996fb1f4

     

    Request Header:

    X-RestSvcSessionId   NDRjZmJkYmUtNWE5NS00MTU2LTg4NjctOTFmMDY5YjdjMmNj

     

    Response:

    200 OK

     

    Response Body:

    <BackupFile xmlns="http://www.veeam.com/ent/v1.0" Type="BackupFile" Href="https://localhost:9398/api/backupFiles/6ed26dc7-cc9e-4a89-9226-1ed9996fb1f4?format=Entity" Name="Webserver Backup CopyD2016-09-20T000000.vbk" UID="urn:veeam:BackupFile:6ed26dc7-cc9e-4a89-9226-1ed9996fb1f4">
     <Links>
       <Link Rel="Up" Type="BackupReference" Href="https://localhost:9398/api/backups/80672bda-76a8-408b-947f-afd0ff67fba6" Name="Webserver Backup Copy" />
       <Link Rel="Up" Type="BackupServerReference" Href="https://localhost:9398/api/backupServers/99f01406-ecdc-428f-ae09-a13de244140a" Name="172.17.53.1" />
       <Link Rel="Alternate" Type="BackupFileReference" Href="https://localhost:9398/api/backupFiles/6ed26dc7-cc9e-4a89-9226-1ed9996fb1f4" Name="Webserver Backup CopyD2016-09-20T000000.vbk" />
       <Link Rel="Related" Type="BackupFileReferenceList" Href="https://localhost:9398/api/backupFiles/6ed26dc7-cc9e-4a89-9226-1ed9996fb1f4/restorePoints" />
       <Link Rel="Down" Type="VmRestorePointReferenceList" Href="https://localhost:9398/api/backupFiles/6ed26dc7-cc9e-4a89-9226-1ed9996fb1f4/vmRestorePoints" />
     </Links>
     <FilePath>C:\BackupVol02\Webserver Backup Copy\Webserver Backup CopyD2016-09-20T000000.vbk</FilePath>
     <BackupSize>31608832</BackupSize>
     <DataSize>42949683607</DataSize>
     <DeduplicationRatio>0</DeduplicationRatio>
     <CompressRatio>1</CompressRatio>
     <CreationTimeUtc>2016-09-19T21:00:00Z</CreationTimeUtc>
     <FileType>vbk</FileType>
    </BackupFile>

     

    I want to report a typo

    There is a misspelling right here:

     

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