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

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

`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

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

## Headers

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

## Response `200`

The request has succeeded.

- BatchNodeFileListResult — The result of listing the files on a Compute Node, or the files associated with a Task on a Compute Node.
  - `value` BatchNodeFile[] — The list of files.
    - `name` string — The file path.
    - `url` string, uri — 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. The creation time is not returned for files on Linux Compute Nodes.
      - `lastModified` string, date-time, required — The time at which the file was last modified.
      - `contentLength` string, int64, required — The length of the file.
      - `contentType` string — The content type of the file.
      - `fileMode` string — The file mode attribute in octal format. The file mode is returned only for files on Linux Compute Nodes.
  - `odata.nextLink` string, uri — The URL to get the next set of results.

## Other responses

- `default` — An unexpected error response.

---

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