# Method: projects.locations.instances.exportData

- [HTTP request](https://docs.cloud.google.com/managed-lustre/docs/reference/rest/v1/projects.locations.instances/exportData#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/managed-lustre/docs/reference/rest/v1/projects.locations.instances/exportData#body.PATH_PARAMETERS)
- [Request body](https://docs.cloud.google.com/managed-lustre/docs/reference/rest/v1/projects.locations.instances/exportData#body.request_body)
  - [JSON representation](https://docs.cloud.google.com/managed-lustre/docs/reference/rest/v1/projects.locations.instances/exportData#body.request_body.SCHEMA_REPRESENTATION)
- [Response body](https://docs.cloud.google.com/managed-lustre/docs/reference/rest/v1/projects.locations.instances/exportData#body.response_body)
- [Authorization scopes](https://docs.cloud.google.com/managed-lustre/docs/reference/rest/v1/projects.locations.instances/exportData#body.aspect)
- [IAM Permissions](https://docs.cloud.google.com/managed-lustre/docs/reference/rest/v1/projects.locations.instances/exportData#body.aspect_1)
- [Try it!](https://docs.cloud.google.com/managed-lustre/docs/reference/rest/v1/projects.locations.instances/exportData#try-it)

Exports data from a Managed Lustre instance to Cloud Storage.

### HTTP request

`POST https://lustre.googleapis.com/v1/{name=projects/*/locations/*/instances/*}:exportData`

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

### Path parameters

| Parameters ||
|---|---|
| `name` | `string` Required. The name of the Managed Lustre instance in the format `projects/{project}/locations/{location}/instances/{instance}`. |

### Request body

The request body contains data with the following structure:

| JSON representation |
|---|
| ``` { "requestId": string, "serviceAccount": string, // Union field `source` can be only one of the following: "lustrePath": { object (`https://docs.cloud.google.com/managed-lustre/docs/reference/rest/v1/LustrePath`) } // End of list of possible types for union field `source`. // Union field `destination` can be only one of the following: "gcsPath": { object (`https://docs.cloud.google.com/managed-lustre/docs/reference/rest/v1/GcsPath`) } // End of list of possible types for union field `destination`. } ``` |

| Fields ||
|---|---|
| `requestId` | `string` Optional. UUID to identify requests. |
| `serviceAccount` | `string` Optional. User-specified service account used to perform the transfer. If unspecified, the Managed Lustre service agent is used. |
| Union field `source`. The source of the data transfer. `source` can be only one of the following: ||
| `lustrePath` | ``object (`https://docs.cloud.google.com/managed-lustre/docs/reference/rest/v1/LustrePath`)`` The root directory path to the Managed Lustre file system. Must start with `/`. Default is `/`. |
| Union field `destination`. The destination of the data transfer. `destination` can be only one of the following: ||
| `gcsPath` | ``object (`https://docs.cloud.google.com/managed-lustre/docs/reference/rest/v1/GcsPath`)`` The URI to a Cloud Storage bucket, or a path within a bucket, using the format `gs://<bucket_name>/<optional_path_inside_bucket>/`. If a path inside the bucket is specified, it must end with a forward slash (`/`). |

### Response body

If successful, the response body contains an instance of `https://docs.cloud.google.com/managed-lustre/docs/reference/rest/v1/projects.locations.operations#Operation`.

### Authorization scopes

Requires the following OAuth scope:

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

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

### IAM Permissions

Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `name` resource:

- `lustre.instances.exportData`

For more information, see the [IAM documentation](https://cloud.google.com/iam/docs).