---
title: "GET /pools/{poolId}/nodes/{nodeId}/files"
method: GET
path: "/pools/{poolId}/nodes/{nodeId}/files"
tags: ["Files"]
---

# GET /pools/{poolId}/nodes/{nodeId}/files

`GET /pools/{poolId}/nodes/{nodeId}/files`

Lists all of the files in task directories on the specified compute node.

## Path parameters

- `poolId` string, required
- `nodeId` string, required

## Query parameters

- `$filter` string
- `recursive` boolean
- `maxresults` integer
- `timeout` integer
- `api-version` string, required

## Headers

- `client-request-id` string
- `return-client-request-id` boolean
- `ocp-date` string, date-time-rfc1123

## Response `200`

OK

- NodeFileListResult — Response to a FileOperation.ListFromComputeNode or FileOperation.ListFromTask request.
  - `value` NodeFile[] — The list of files.
    - `name` string — The file path.
    - `url` string — The URL of the file.
    - `isDirectory` boolean — Whether the object represents a directory.
    - `properties` FileProperties — The properties of a file on a compute node.
      - `creationTime` string, date-time — The file creation time.
      - `lastModified` string, date-time, required — The time at which the file was last modified.
      - `contentLength` integer, required — The length of the file.
      - `contentType` string — The content type of the file.
      - `fileMode` string — The file mode attribute in octal format. This property will be returned only from a Linux compute node.
  - `odata.nextLink` string — The URL to get the next set of results.

## Other responses

- `default` — The error from the Batch service.

---

[API](https://skmtc.dev/azure/apis/batch-batch.md) · [All operations](https://skmtc.dev/azure/apis/batch-batch/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/batch-batch/revisions/bee2d837bf8f/schema)
