---
title: "Lists all of the files in Task directories on the specified Compute Node."
method: GET
path: "/pools/{poolId}/nodes/{nodeId}/files"
tags: ["Files"]
---

# Lists all of the files in Task directories on the specified Compute Node.

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

## 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, uuid
- `return-client-request-id` boolean
- `ocp-date` string, date-time-rfc1123

## Response `200`

A response containing the list of files.

- NodeFileListResult
  - `value` NodeFile[]
    - `name` string
    - `url` string
    - `isDirectory` boolean
    - `properties` FileProperties
      - `creationTime` string, date-time — The creation time is not returned for files on Linux Compute Nodes.
      - `lastModified` string, date-time, required
      - `contentLength` integer, required
      - `contentType` string
      - `fileMode` string — The file mode is returned only for files on Linux Compute Nodes.
  - `odata.nextLink` string

## Other responses

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

---

[API](https://skmtc.net/azure/apis/batchservice.md) · [All operations](https://skmtc.net/azure/apis/batchservice/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/batchservice/versions/4c9161203dbe/schema)
