# Method: projects.locations.importJobs.importDataFiles.list

- [HTTP request](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/projects.locations.importJobs.importDataFiles/list#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/projects.locations.importJobs.importDataFiles/list#body.PATH_PARAMETERS)
- [Query parameters](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/projects.locations.importJobs.importDataFiles/list#body.QUERY_PARAMETERS)
- [Request body](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/projects.locations.importJobs.importDataFiles/list#body.request_body)
- [Response body](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/projects.locations.importJobs.importDataFiles/list#body.response_body)
  - [JSON representation](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/projects.locations.importJobs.importDataFiles/list#body.ListImportDataFilesResponse.SCHEMA_REPRESENTATION)
- [Authorization scopes](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/projects.locations.importJobs.importDataFiles/list#body.aspect)

List import data files.

### HTTP request

`GET https://migrationcenter.googleapis.com/v1/{parent=projects/*/locations/*/importJobs/*}/importDataFiles`

The URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.

### Path parameters

| Parameters ||
|---|---|
| `parent` | `string` Required. Name of the parent of the `ImportDataFiles` resource. |

### Query parameters

| Parameters ||
|---|---|
| `pageSize` | `integer` The maximum number of data files to return. The service may return fewer than this value. If unspecified, at most 500 data files will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |
| `pageToken` | `string` A page token, received from a previous `importDataFiles.list` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `importDataFiles.list` must match the call that provided the page token. |
| `filter` | `string` Filtering results. |
| `orderBy` | `string` Field to sort by. See <https://google.aip.dev/132#ordering> for more details. |

### Request body

The request body must be empty.

### Response body

Response for listing payload files of an import job.

If successful, the response body contains data with the following structure:

| JSON representation |
|---|
| ``` { "importDataFiles": [ { object (`https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/projects.locations.importJobs.importDataFiles#ImportDataFile`) } ], "nextPageToken": string, "unreachable": [ string ] } ``` |

| Fields ||
|---|---|
| `importDataFiles[]` | ``object (`https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/projects.locations.importJobs.importDataFiles#ImportDataFile`)`` The list of import data files. |
| `nextPageToken` | `string` A token that can be sent as `pageToken` to retrieve the next page. If this field is omitted, there are no subsequent pages. |
| `unreachable[]` | `string` Locations that could not be reached. |

### Authorization scopes

Requires the following OAuth scope:

- `https://www.googleapis.com/auth/cloud-platform`

For more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/external/authorization-gcp).