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

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

Identifies all system items (e.g., connector instances, job instances, playbooks) that would be affected by a change to or deletion of this integration. Use this method to conduct impact analysis before making breaking changes.

### HTTP request

`GET https://{endpoint}/v1/{name}:fetchAffectedItems`

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

### Path parameters

| Parameters ||
|---|---|
| `name` | `string` Required. The unique name of the integration. Format: projects/{project}/locations/{location}/instances/{instance}/integrations/{integration} |

### Request body

The request body must be empty.

### Response body

Response message for Geting items that can be affected due to a change in the integration (ex: integration removal). Affected items can be instances of the integration, Job instances, Playbooks and widgets.

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

| JSON representation |
|---|
| ``` { "affectedIntegrationInstances": [ { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1/projects.locations.instances.integrations/fetchAffectedItems#AffectedIntegrationInstance`) } ], "affectedJobsInstances": [ { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1/projects.locations.instances.integrations/fetchAffectedItems#AffectedJobInstance`) } ], "affectedPlaybooks": [ { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1/projects.locations.instances.integrations/fetchAffectedItems#AffectedPlaybook`) } ], "affectedWidgets": [ { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1/projects.locations.instances.integrations/fetchAffectedItems#AffectedWidgets`) } ] } ``` |

| Fields ||
|---|---|
| `affectedIntegrationInstances[]` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1/projects.locations.instances.integrations/fetchAffectedItems#AffectedIntegrationInstance`)`` Output only. List of affected Integration instances. |
| `affectedJobsInstances[]` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1/projects.locations.instances.integrations/fetchAffectedItems#AffectedJobInstance`)`` Output only. List of affected Job instances. |
| `affectedPlaybooks[]` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1/projects.locations.instances.integrations/fetchAffectedItems#AffectedPlaybook`)`` Output only. List of affected Playbooks. |
| `affectedWidgets[]` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1/projects.locations.instances.integrations/fetchAffectedItems#AffectedWidgets`)`` Output only. List of affected widgets. |

### 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 `name` resource:

- `chronicle.integrations.get`

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

## AffectedIntegrationInstance

Affected Integration instance.

| JSON representation |
|---|
| ``` { "displayName": string, "environment": string } ``` |

| Fields ||
|---|---|
| `displayName` | `string` Output only. Integration instance display name. |
| `environment` | `string` Output only. Integration instance environment. |

## AffectedJobInstance

Affected Job instance.

| JSON representation |
|---|
| ``` { "displayName": string, "legacy": boolean } ``` |

| Fields ||
|---|---|
| `displayName` | `string` Output only. Job instance display name. |
| `legacy` | `boolean` Output only. True if the Job instance is considered as legacy. Legacy jobs cannot be automatically updated. |

## AffectedPlaybook

Affected Playbook.

| JSON representation |
|---|
| ``` { "displayName": string, "environments": [ string ] } ``` |

| Fields ||
|---|---|
| `displayName` | `string` Output only. Playbook display name. |
| `environments[]` | `string` Output only. Playbook's environments. |

## AffectedWidgets

Affected Widget from integration changes.

| JSON representation |
|---|
| ``` { "widgetName": string, "viewName": string, "playbookName": string } ``` |

| Fields ||
|---|---|
| `widgetName` | `string` Output only. Widget name. |
| `viewName` | `string` Output only. Widget's view name that is related to the widget. |
| `playbookName` | `string` Output only. Widget's playbook name that is related to the widget. |