---
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 NodeFileOperations.ListFromComputeNode or NodeFileOperations.ListFromTask request.
  - `value` NodeFile[] — Gets or sets the list of files.
    - `name` string — Gets or sets the file path.
    - `url` string — Gets or sets the URL of the file.
    - `isDirectory` boolean — Gets or sets whether the object represents a directory.
    - `properties` FileProperties — The properties of a file on a compute node.
      - `creationTime` string, date-time — Gets or sets the file creation time.
      - `lastModified` string, date-time, required — Gets or sets the time at which the file was last modified.
      - `contentLength` integer, required — Gets or sets the length of the file.
      - `contentType` string — Gets or sets the content type of the file.
  - `odata.nextLink` string — Gets or sets the URL to get the next set of results.

## Other responses

- `default` — 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/d7960a570e92/schema)
