# REST Resource: projects.locations.assetsExportJobs

- [Resource: AssetsExportJob](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs#AssetsExportJob)
  - [JSON representation](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs#AssetsExportJob.SCHEMA_REPRESENTATION)
- [ExportCondition](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs#ExportCondition)
  - [JSON representation](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs#ExportCondition.SCHEMA_REPRESENTATION)
- [NetworkDependencies](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs#NetworkDependencies)
  - [JSON representation](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs#NetworkDependencies.SCHEMA_REPRESENTATION)
- [Inventory](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs#Inventory)
- [PerformanceData](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs#PerformanceData)
  - [JSON representation](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs#PerformanceData.SCHEMA_REPRESENTATION)
- [SignedUriDestination](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs#SignedUriDestination)
  - [JSON representation](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs#SignedUriDestination.SCHEMA_REPRESENTATION)
- [FileFormat](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs#FileFormat)
- [AssetsExportJobExecution](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs#AssetsExportJobExecution)
  - [JSON representation](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs#AssetsExportJobExecution.SCHEMA_REPRESENTATION)
- [Result](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs#Result)
  - [JSON representation](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs#Result.SCHEMA_REPRESENTATION)
- [SignedUris](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs#SignedUris)
  - [JSON representation](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs#SignedUris.SCHEMA_REPRESENTATION)
- [SignedUri](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs#SignedUri)
  - [JSON representation](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs#SignedUri.SCHEMA_REPRESENTATION)
- [OutputFileList](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs#OutputFileList)
  - [JSON representation](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs#OutputFileList.SCHEMA_REPRESENTATION)
- [OutputFile](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs#OutputFile)
  - [JSON representation](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs#OutputFile.SCHEMA_REPRESENTATION)
- [CsvOutputFile](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs#CsvOutputFile)
  - [JSON representation](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs#CsvOutputFile.SCHEMA_REPRESENTATION)
- [XlsxOutputFile](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs#XlsxOutputFile)
  - [JSON representation](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs#XlsxOutputFile.SCHEMA_REPRESENTATION)
- [Methods](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs#METHODS_SUMMARY)

## Resource: AssetsExportJob

Assets export job message.

| JSON representation |
|---|
| ``` { "name": string, "condition": { object (`https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs#ExportCondition`) }, "createTime": string, "updateTime": string, "labels": { string: string, ... }, "recentExecutions": [ { object (`https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs#AssetsExportJobExecution`) } ], "showHidden": boolean, // Union field `export_type` can be only one of the following: "networkDependencies": { object (`https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs#NetworkDependencies`) }, "inventory": { object (`https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs#Inventory`) }, "performanceData": { object (`https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs#PerformanceData`) } // End of list of possible types for union field `export_type`. // Union field `destination` can be only one of the following: "signedUriDestination": { object (`https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs#SignedUriDestination`) } // End of list of possible types for union field `destination`. } ``` |

| Fields ||
|---|---|
| `name` | `string` Output only. Identifier. Resource name. |
| `condition` | ``object (`https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs#ExportCondition`)`` Optional. Conditions for selecting assets to export. |
| `createTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. Resource creation time. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `updateTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. Resource update time. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `labels` | `map (key: string, value: string)` Optional. Labels as key value pairs. Labels must meet the following constraints: - Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. - All characters must use UTF-8 encoding, and international characters are allowed. - Keys must start with a lowercase letter or international character. - Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be \<= 128 bytes. An object containing a list of `"key": value` pairs. Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`. |
| `recentExecutions[]` | ``object (`https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs#AssetsExportJobExecution`)`` Output only. Recent non expired executions of the job. |
| `showHidden` | `boolean` Optional. When this value is set to 'true' the response will include all assets, including those that are hidden. |
| Union field `export_type`. Type of data to export for assets. `export_type` can be only one of the following: ||
| `networkDependencies` | ``object (`https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs#NetworkDependencies`)`` Export data regarding asset network dependencies. |
| `inventory` | ``object (`https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs#Inventory`)`` Export asset inventory details. |
| `performanceData` | ``object (`https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs#PerformanceData`)`` Export asset with performance data. |
| Union field `destination`. Destination for export artifacts. `destination` can be only one of the following: ||
| `signedUriDestination` | ``object (`https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs#SignedUriDestination`)`` Export to Cloud Storage files downloadable using signed URIs. |

## ExportCondition

Conditions for selecting assets to export.

| JSON representation |
|---|
| ``` { "filter": string } ``` |

| Fields ||
|---|---|
| `filter` | `string` Optional. Assets filter, supports the same syntax as asset listing. |

## NetworkDependencies

Configuration for network dependencies exports.

| JSON representation |
|---|
| ``` { "maxDays": integer } ``` |

| Fields ||
|---|---|
| `maxDays` | `integer` Optional. When this value is set to a positive integer, network connections data will be returned for the most recent days for which data is available. When this value is unset (or set to zero), all available data is returned. |

## Inventory

This type has no fields.
Configuration for asset inventory details exports.

## PerformanceData

Configuration for performance data exports.

| JSON representation |
|---|
| ``` { "maxDays": integer } ``` |

| Fields ||
|---|---|
| `maxDays` | `integer` Optional. When this value is set to a positive integer, performance data will be returned for the most recent days for which data is available. When this value is unset (or set to zero), all available data is returned. The maximum value is 420; values above 420 will be coerced to 420. If unset (0 value) a default value of 40 will be used. |

## SignedUriDestination

Signed URI destination configuration.

| JSON representation |
|---|
| ``` { "fileFormat": enum (`https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs#FileFormat`) } ``` |

| Fields ||
|---|---|
| `fileFormat` | ``enum (`https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs#FileFormat`)`` Required. The file format to export. |

## FileFormat

Supported file formats for export.

| Enums ||
|---|---|
| `FILE_FORMAT_UNSPECIFIED` | Unspecified file format will be treated as CSV. |
| `CSV` | CSV file format. |
| `XLSX` | XLSX file format which used in Excel. |

## AssetsExportJobExecution

Execution status of assets export job.

| JSON representation |
|---|
| ``` { "executionId": string, "startTime": string, "endTime": string, "expireTime": string, "requestedAssetCount": integer, "result": { object (`https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs#Result`) } } ``` |

| Fields ||
|---|---|
| `executionId` | `string` Output only. Globally unique identifier of the execution. |
| `startTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. Execution timestamp. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `endTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. Completion time of the export. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `expireTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. Expiration time for the export and artifacts. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `requestedAssetCount` | `integer` Output only. Number of assets requested for export after resolving the requested filters. |
| `result` | ``object (`https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs#Result`)`` Output only. Result of the export execution. |

## Result

Contains the result of the assets export.

| JSON representation |
|---|
| ``` { // Union field `result` can be only one of the following: "signedUris": { object (`https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs#SignedUris`) }, "outputFiles": { object (`https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs#OutputFileList`) }, "error": { object (`https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/Status`) } // End of list of possible types for union field `result`. } ``` |

| Fields ||
|---|---|
| Union field `result`. `result` can be only one of the following: ||
| `signedUris` | ``object (`https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs#SignedUris`)`` Output only. Signed URLs for downloading export artifacts. |
| `outputFiles` | ``object (`https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs#OutputFileList`)`` Output only. List of output files. |
| `error` | ``object (`https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/Status`)`` Output only. Error encountered during export. |

## SignedUris

Contains a list of Signed URIs.

| JSON representation |
|---|
| ``` { "signedUris": [ { object (`https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs#SignedUri`) } ] } ``` |

| Fields ||
|---|---|
| `signedUris[]` | ``object (`https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs#SignedUri`)`` Output only. List of signed URIs. |

## SignedUri

Contains a signed URI.

| JSON representation |
|---|
| ``` { "file": string, "uri": string } ``` |

| Fields ||
|---|---|
| `file` | `string` Output only. Name of the file the Signed URI references. |
| `uri` | `string` Output only. Download URI for the file. |

## OutputFileList

Contains a list of output files.

| JSON representation |
|---|
| ``` { "entries": [ { object (`https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs#OutputFile`) } ] } ``` |

| Fields ||
|---|---|
| `entries[]` | ``object (`https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs#OutputFile`)`` List of output files. |

## OutputFile

Contains a single output file.

| JSON representation |
|---|
| ``` { "fileSizeBytes": integer, // Union field `type` can be only one of the following: "csvOutputFile": { object (`https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs#CsvOutputFile`) }, "xlsxOutputFile": { object (`https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs#XlsxOutputFile`) } // End of list of possible types for union field `type`. } ``` |

| Fields ||
|---|---|
| `fileSizeBytes` | `integer` Output only. File size in bytes. |
| Union field `type`. The type of the output file. `type` can be only one of the following: ||
| `csvOutputFile` | ``object (`https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs#CsvOutputFile`)`` Output only. CSV output file. |
| `xlsxOutputFile` | ``object (`https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs#XlsxOutputFile`)`` Output only. XLSX output file. |

## CsvOutputFile

Contains a single output file of type CSV.

| JSON representation |
|---|
| ``` { "columnsCount": integer, "rowCount": integer, // Union field `destination` can be only one of the following: "signedUri": { object (`https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs#SignedUri`) } // End of list of possible types for union field `destination`. } ``` |

| Fields ||
|---|---|
| `columnsCount` | `integer` Output only. Number of columns in the file. |
| `rowCount` | `integer` Output only. Number of rows in the file. |
| Union field `destination`. The destination of the output file. `destination` can be only one of the following: ||
| `signedUri` | ``object (`https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs#SignedUri`)`` Output only. Signed URI destination. |

## XlsxOutputFile

Contains a single output file of type XLSX.

| JSON representation |
|---|
| ``` { // Union field `destination` can be only one of the following: "signedUri": { object (`https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs#SignedUri`) } // End of list of possible types for union field `destination`. } ``` |

| Fields ||
|---|---|
| Union field `destination`. The destination of the output file. `destination` can be only one of the following: ||
| `signedUri` | ``object (`https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs#SignedUri`)`` Output only. Signed URI destination. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs/create` | Creates a new assets export job. |
| ### `https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs/delete` | Deletes an assets export job. |
| ### `https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs/get` | Gets the details of an assets export job. |
| ### `https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs/list` | Lists all the assets export jobs in a given project and location. |
| ### `https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.assetsExportJobs/run` | Runs an assets export job, returning an AssetsExportJobExecution. |