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

Export instance.

### HTTP request

Choose an endpoint:
global asia-south1 asia-south2 us-central1 us-east1 us-east4 us-east5 us-east7 us-south1 us-west1 us-west2 us-west3 us-west4   
`POST https://looker.googleapis.com/v1/{name=projects/*/locations/*/instances/*}:export`

<br />

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

### Path parameters

| Parameters ||
|---|---|
| `name` | `string` Required. Format: `projects/{project}/locations/{location}/instances/{instance}`. |

### Request body

The request body contains data with the following structure:

| JSON representation |
|---|
| ``` { "encryptionConfig": { object (`https://docs.cloud.google.com/looker/docs/reference/rest/v1/projects.locations.instances/export#ExportEncryptionConfig`) }, // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "gcsUri": string // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| `encryptionConfig` | ``object (`https://docs.cloud.google.com/looker/docs/reference/rest/v1/projects.locations.instances/export#ExportEncryptionConfig`)`` Required. Encryption configuration (CMEK). For CMEK enabled instances it should be same as looker CMEK. |
| The path to the folder in Google Cloud Storage where the export will be stored. The URI is in the form `gs://bucketName/folderName`. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `gcsUri` | `string` The path to the folder in Google Cloud Storage where the export will be stored. The URI is in the form `gs://bucketName/folderName`. |
| End of mutually exclusive fields. ||

### Response body

If successful, the response body contains an instance of `https://docs.cloud.google.com/looker/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:

- `looker.googleapis.com/looker.instances.export`

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

## ExportEncryptionConfig

Configuration for Encryption - e.g. CMEK.

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

| Fields ||
|---|---|
| `kmsKeyName` | `string` Required. Name of the CMEK key in KMS. |