# REST Resource: projects.locations.importJobs.importDataFiles

- [Resource: ImportDataFile](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/projects.locations.importJobs.importDataFiles#ImportDataFile)
  - [JSON representation](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/projects.locations.importJobs.importDataFiles#ImportDataFile.SCHEMA_REPRESENTATION)
- [ImportJobFormat](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/projects.locations.importJobs.importDataFiles#ImportJobFormat)
- [State](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/projects.locations.importJobs.importDataFiles#State)
- [UploadFileInfo](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/projects.locations.importJobs.importDataFiles#UploadFileInfo)
  - [JSON representation](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/projects.locations.importJobs.importDataFiles#UploadFileInfo.SCHEMA_REPRESENTATION)
- [Methods](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/projects.locations.importJobs.importDataFiles#METHODS_SUMMARY)

## Resource: ImportDataFile

A resource that represents a payload file in an import job.

| JSON representation |
|---|
| ``` { "name": string, "displayName": string, "format": enum (`https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/projects.locations.importJobs.importDataFiles#ImportJobFormat`), "createTime": string, "state": enum (`https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/projects.locations.importJobs.importDataFiles#State`), // Union field `file_info` can be only one of the following: "uploadFileInfo": { object (`https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/projects.locations.importJobs.importDataFiles#UploadFileInfo`) } // End of list of possible types for union field `file_info`. } ``` |

| Fields ||
|---|---|
| `name` | `string` Output only. The name of the file. |
| `displayName` | `string` User-friendly display name. Maximum length is 63 characters. |
| `format` | ``enum (`https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/projects.locations.importJobs.importDataFiles#ImportJobFormat`)`` Required. The payload format. |
| `createTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. The timestamp when the file was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: `"2014-10-02T15:01:23Z"` and `"2014-10-02T15:01:23.045123456Z"`. |
| `state` | ``enum (`https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/projects.locations.importJobs.importDataFiles#State`)`` Output only. The state of the import data file. |
| Union field `file_info`. `file_info` can be only one of the following: ||
| `uploadFileInfo` | ``object (`https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/projects.locations.importJobs.importDataFiles#UploadFileInfo`)`` Information about a file that is uploaded to a storage service. |

## ImportJobFormat

Specifies the data formats supported by Migration Center.

| Enums ||
|---|---|
| `IMPORT_JOB_FORMAT_UNSPECIFIED` | Default value. |
| `IMPORT_JOB_FORMAT_RVTOOLS_XLSX` | RVTools format (XLSX). |
| `IMPORT_JOB_FORMAT_RVTOOLS_CSV` | RVTools format (CSV). |
| `IMPORT_JOB_FORMAT_EXPORTED_AWS_CSV` | CSV format exported from AWS using the \[AWS collection script\]\[https://github.com/GoogleCloudPlatform/aws-to-stratozone-export\]. |
| `IMPORT_JOB_FORMAT_EXPORTED_AZURE_CSV` | CSV format exported from Azure using the \[Azure collection script\]\[https://github.com/GoogleCloudPlatform/azure-to-stratozone-export\]. |
| `IMPORT_JOB_FORMAT_STRATOZONE_CSV` | CSV format created manually and following the StratoZone format. For more information, see \[Manually create and upload data tables\]\[https://cloud.google.com/migrate/stratozone/docs/import-data-portal\]. |
| `IMPORT_JOB_FORMAT_DATABASE_ZIP` | ZIP file with nested CSV files generated by a database collector. |

## State

Enumerates possible states of an import data file.

| Enums ||
|---|---|
| `STATE_UNSPECIFIED` | Default value. |
| `CREATING` | The data file is being created. |
| `ACTIVE` | The data file completed initialization. |

## UploadFileInfo

A resource that contains a URI to which a data file can be uploaded.

| JSON representation |
|---|
| ``` { "signedUri": string, "headers": { string: string, ... }, "uriExpirationTime": string } ``` |

| Fields ||
|---|---|
| `signedUri` | `string` Output only. Upload URI for the file. |
| `headers` | `map (key: string, value: string)` Output only. The headers that were used to sign the URI. An object containing a list of `"key": value` pairs. Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`. |
| `uriExpirationTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. Expiration time of the upload URI. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: `"2014-10-02T15:01:23Z"` and `"2014-10-02T15:01:23.045123456Z"`. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/projects.locations.importJobs.importDataFiles/create` | Creates an import data file. |
| ### `https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/projects.locations.importJobs.importDataFiles/delete` | Delete an import data file. |
| ### `https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/projects.locations.importJobs.importDataFiles/get` | Gets an import data file. |
| ### `https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/projects.locations.importJobs.importDataFiles/list` | List import data files. |