GET /nas/jobs/{ID}/includes

Returns a list of files and folders processed by file share backup job having the specified ID.

Tip

To get a filtered and sorted collection of files and folders processed by file share backup job, send the GET /query?type=NasObject request.

Request

To get a list of all files and folders processed by the file share backup job, send the GET HTTP request to the URL of the /nas/jobs/{ID}/includes resource.

HTTP Request

GET https://<Enterprise-Manager>:9398/api/nas/jobs/{ID}/includes

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, the REST API returns a representation of the /nas/jobs/{ID}/includes resource collection.

Example

The example below returns a list of files and folders processed by the file share backup job having ID 93dfbb3e-f420-45cf-addc-4ee9297113f2.

Request:

GET https://localhost:9398/api/nas/jobs/93dfbb3e-f420-45cf-addc-4ee9297113f2/includes

 

Request Header:

X-RestSvcSessionId   NDRjZmJkYmUtNWE5NS00MTU2LTg4NjctOTFmMDY5YjdjMmNj

 

Response:

200 OK

 

Response Body:

<NASObjects xmlns="http://www.veeam.com/ent/v1.0">
 <NASObject Type="NasObject" Href="https://srv12.tech.local:9398/api/nas/jobs/93dfbb3e-f420-45cf-addc-4ee9297113f2/includes/6fefb504-856d-4c31-b767-76af5567c407">
   <Links>
     <Link Rel="Up" Type="Job" Href="https://srv12.tech.local:9398/api/nas/jobs/93dfbb3e-f420-45cf-addc-4ee9297113f2?format=Entity" Name="Shared Files Backup" />
     <Link Rel="Related" Type="FileServer" Href="https://srv12.tech.local:9398/api/nas/fileServers/517be4c8-9c43-4e7c-9f59-4e368d3a8f3c?format=Entity" Name="\\srv12\share" />
   </Links>
   <HierarchyObjRef>urn:NasBackup:BackupServer:5735d1af-3aad-49ac-ac77-eab708ac1a37</HierarchyObjRef>
   <ObjectInJobId>6fefb504-856d-4c31-b767-76af5567c407</ObjectInJobId>
   <FileOrFolder>\\srv12\share</FileOrFolder>
   <FileServerUid>urn:veeam:FileServer:517be4c8-9c43-4e7c-9f59-4e368d3a8f3c</FileServerUid>
   <InclusionMask>
     <Extension>*.*</Extension>
   </InclusionMask>
   <ExclusionMask>
     <Extension>\\srv12\share\.snapshot</Extension>
     <Extension>\\srv12\share\~snapshot</Extension>
   </ExclusionMask>
 </NASObject>
</NASObjects>

 

Page updated 1/25/2024

Page content applies to build 12.2.0.334