# Method: projects.locations.integrations.versions.downloadJsonPackage

- [HTTP request](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.integrations.versions/downloadJsonPackage#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.integrations.versions/downloadJsonPackage#body.PATH_PARAMETERS)
- [Query parameters](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.integrations.versions/downloadJsonPackage#body.QUERY_PARAMETERS)
- [Request body](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.integrations.versions/downloadJsonPackage#body.request_body)
- [Response body](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.integrations.versions/downloadJsonPackage#body.response_body)
  - [JSON representation](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.integrations.versions/downloadJsonPackage#body.DownloadJsonPackageResponse.SCHEMA_REPRESENTATION)
- [Authorization scopes](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.integrations.versions/downloadJsonPackage#body.aspect)
- [IAM Permissions](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.integrations.versions/downloadJsonPackage#body.aspect_1)
- [File](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.integrations.versions/downloadJsonPackage#File)
  - [JSON representation](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.integrations.versions/downloadJsonPackage#File.SCHEMA_REPRESENTATION)
- [Try it!](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.integrations.versions/downloadJsonPackage#try-it)

Downloads an Integration version package like IntegrationVersion,Integration Config etc. Retrieves the IntegrationVersion package for a given `integrationId` and returns the response as a JSON.

### HTTP request

`GET https://integrations.googleapis.com/v1/{name=projects/*/locations/*/integrations/*/versions/*}:downloadJsonPackage`

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

### Path parameters

| Parameters ||
|---|---|
| `name` | `string` Required. Integration version name Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version} |

### Query parameters

| Parameters ||
|---|---|
| `files[]` | ``enum (`https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/IntegrationFile`)`` Optional. Integration related file to download like Integration version, Config variable, testcase etc. |

### Request body

The request body must be empty.

### Response body

Response for versions.downloadJsonPackage.

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

| JSON representation |
|---|
| ``` { "files": [ { object (`https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.integrations.versions/downloadJsonPackage#File`) } ] } ``` |

| Fields ||
|---|---|
| `files[]` | ``object (`https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.integrations.versions/downloadJsonPackage#File`)`` List containing JSON for multiple file with type information. |

### 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:

- `integrations.integrationVersions.get`

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

## File

To store Integration version related file i.e. Integration version, Config variable etc.

| JSON representation |
|---|
| ``` { "type": enum (`https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/IntegrationFile`), // Union field `content` can be only one of the following: "integrationVersion": { object (`https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.integrations.versions#IntegrationVersion`) }, "integrationConfig": { object } // End of list of possible types for union field `content`. } ``` |

| Fields ||
|---|---|
| `type` | ``enum (`https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/IntegrationFile`)`` File information like Integration version, Integration Config variables etc. |
| Union field `content`. String representation of the file content. `content` can be only one of the following: ||
| `integrationVersion` | ``object (`https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.integrations.versions#IntegrationVersion`)`` Integration version |
| `integrationConfig` | ``object (`https://protobuf.dev/reference/protobuf/google.protobuf#struct` format)`` Integration version config file |