- [HTTP request](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1/projects.locations.instances.integrations/upload#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1/projects.locations.instances.integrations/upload#body.PATH_PARAMETERS)
- [Request body](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1/projects.locations.instances.integrations/upload#body.request_body)
  - [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1/projects.locations.instances.integrations/upload#body.request_body.SCHEMA_REPRESENTATION)
- [Response body](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1/projects.locations.instances.integrations/upload#body.response_body)
  - [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1/projects.locations.instances.integrations/upload#body.ExtractIntegrationDetailsResponse.SCHEMA_REPRESENTATION)
- [Authorization scopes](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1/projects.locations.instances.integrations/upload#body.aspect)
- [IAM Permissions](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1/projects.locations.instances.integrations/upload#body.aspect_1)
- [IntegrationType](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1/projects.locations.instances.integrations/upload#IntegrationType)

**Full name**: projects.locations.instances.integrations.upload

Parses an integration ZIP file and returns its constituent items and metadata without importing it. Use this method to preview the contents of a package or conduct automated analysis before deployment.

### HTTP request

- Upload URI, for media upload requests:  
  `POST https://{endpoint}/upload/v1/{parent}/integrations:extractIntegrationDetails`
- Metadata URI, for metadata-only requests:  
  `POST https://{endpoint}/v1/{parent}/integrations:extractIntegrationDetails`

Where `{endpoint}` is one of the [supported service endpoints](https://docs.cloud.google.com/chronicle/docs/reference/rest#rest_endpoints).

### Path parameters

| Parameters ||
|---|---|
| `parent` | `string` Required. The parent, which owns this collection of integrations. Format: projects/{project}/locations/{location}/instances/{instance}/integrations |

### Request body

The request body contains data with the following structure:

| JSON representation |
|---|
| ``` { "media": { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/MediaResponseInfo#Media`) }, "mediaInfo": { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/MediaRequestInfo`) }, "staging": boolean, "itemsPackage": boolean } ``` |

| Fields ||
|---|---|
| `media` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/MediaResponseInfo#Media`)`` Zipped integration package data in base64. Includes the following folders according to the integrations items: Actions, Connectors, Jobs, Managers, Transformers, Logical Operators, Dependencies Each folder includes json files and a python file for the script. Includes metadata.json file includes integration definition json file |
| `mediaInfo` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/MediaRequestInfo`)`` Metadata about the media upload request. Information representing the imported data |
| `staging` | `boolean` Optional. Determines if need to extract the integration and compare it with the staging. Default value is false. |
| `itemsPackage` | `boolean` Optional. Determines if the package is items, or a full integration package. Default value is false. |

### Response body

Response message for extracting integration details.

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

| JSON representation |
|---|
| ``` { "integrationIdentifier": string, "actions": [ string ], "jobs": [ string ], "connectors": [ string ], "managers": [ string ], "transformers": [ string ], "logicalOperators": [ string ], "customFamilies": [ string ], "exampleUsecases": [ string ], "mappingRules": [ string ], "version": string, "pythonVersion": enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1/projects.locations.instances.integrations#PythonVersion`), "type": enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1/projects.locations.instances.integrations/upload#IntegrationType`), "existingIntegration": { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1/projects.locations.instances.integrations#Integration`) }, "diff": { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1/IntegrationDiff`) }, "mediaInfo": { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/MediaResponseInfo`) }, "custom": boolean } ``` |

| Fields ||
|---|---|
| `integrationIdentifier` | `string` Required. The extracted integration identifier name. |
| `actions[]` | `string` Output only. Extracted actions names. |
| `jobs[]` | `string` Output only. Extracted jobs names. |
| `connectors[]` | `string` Output only. Extracted connector names. |
| `managers[]` | `string` Output only. Extracted managers names. |
| `transformers[]` | `string` Output only. Extracted transformers names. |
| `logicalOperators[]` | `string` Output only. Extracted logical operators names. |
| `customFamilies[]` | `string` Output only. Extracted custom families names. |
| `exampleUsecases[]` | `string` Output only. Extracted example usecases names. |
| `mappingRules[]` | `string` Output only. Extracted mapping rules names. |
| `version` | `string` Output only. Integration version. |
| `pythonVersion` | ``enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1/projects.locations.instances.integrations#PythonVersion`)`` Output only. Integration's Python version. |
| `type` | ``enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1/projects.locations.instances.integrations/upload#IntegrationType`)`` Output only. The integration's type (response/extension). |
| `existingIntegration` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1/projects.locations.instances.integrations#Integration`)`` Output only. The existing integration in the system with the same display name as the one that the user wants to import. |
| `diff` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1/IntegrationDiff`)`` Output only. The difference between the existing integration and the imported one. |
| `mediaInfo` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/MediaResponseInfo`)`` Metadata about the media upload response. |
| `custom` | `boolean` Output only. Is the integration custom or commercial. |

### Authorization scopes

Requires one of the following OAuth scopes:

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

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 `parent` resource:

- `chronicle.integrations.get`

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

## IntegrationType

Integration Type If not specified, the default value is RESPONSE.

| Enums ||
|---|---|
| `INTEGRATION_TYPE_UNSPECIFIED` | Unspecified type. |
| `RESPONSE` | Response type. |
| `EXTENSION` | Extension type. |