> For the complete documentation index, see [llms.txt](https://docs.ox.security/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ox.security/api-documentation/api-reference/api--response-center/types/inputs/get-incident-affected-resources-input.md).

# getIncidentAffectedResourcesInput

Selects the kinds, filters, search, sort and pages of the affected resources to return.

### Examples

```graphql
input GetIncidentAffectedResourcesInput {
  kind: AffectedResourceKind
  itemLimit: Int
  cursor: String
  search: String
  conditionalFilters: [IncidentConditionalFilterInput!]
  sortBy: AffectedResourceSortField
  sortOrder: SortOrder
}
```

### Fields

| Field                                                                                                                                                                                     | Description                                                                                                                                                                                                                                                          | Supported fields                                                                                                                                                                                                                                                 |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| kind [`AffectedResourceKind`](https://docs.ox.security/api-documentation/api-reference/api--response-center/types/enums/affected-resource-kind.md)                                        | Limits the response to one section, for loading further pages of that section. When absent, every displayed section is returned.                                                                                                                                     |                                                                                                                                                                                                                                                                  |
| itemLimit `Int`                                                                                                                                                                           | The maximum number of resources returned per section, at least 1. With kind, at most 200. Without kind, and for the DevEnvironment and CloudAccount sections always, at most 50; a larger value is lowered to 50.                                                    |                                                                                                                                                                                                                                                                  |
| cursor `String`                                                                                                                                                                           | The cursor of a previous page of the section named by kind. It is valid only together with kind and with the same search, filters and sort as the request that issued it. Paging is offset-based, so results can shift if the incident is re-assessed between pages. |                                                                                                                                                                                                                                                                  |
| search `String`                                                                                                                                                                           | Limits the response to resources matching this text in their name, detail, application, image digest, indicators, application tags or business unit names. At most 200 characters.                                                                                   |                                                                                                                                                                                                                                                                  |
| conditionalFilters [`[IncidentConditionalFilterInput!]`](https://docs.ox.security/api-documentation/api-reference/api--response-center/types/inputs/incident-conditional-filter-input.md) | Include and exclude filters, combined with AND across clauses. Supported field names are kind, indicator, application, appTag, businessUnit and cloudAccountId; other field names are ignored.                                                                       | <p>fieldName <code>String!</code><br>values <code>\[String!]!</code><br>condition <a href="https://docs.ox.security/api-documentation/api-reference/api--response-center/types/enums/incident-filter-condition.md"><code>IncidentFilterCondition!</code></a></p> |
| sortBy [`AffectedResourceSortField`](https://docs.ox.security/api-documentation/api-reference/api--response-center/types/enums/affected-resource-sort-field.md)                           | The column to sort every section by. When absent, resources are listed worst-first.                                                                                                                                                                                  |                                                                                                                                                                                                                                                                  |
| sortOrder [`SortOrder`](https://docs.ox.security/api-documentation/api-reference/api--response-center/types/enums/sort-order.md)                                                          | The sort direction. It applies only together with sortBy. When absent, the direction is ascending for Name and ApplicationName and descending for every other column.                                                                                                |                                                                                                                                                                                                                                                                  |

### References

#### Queries using this object:

* [\<?> getIncidentAffectedResources.input](https://docs.ox.security/api-documentation/api-reference/api--response-center/queries/get-incident-affected-resources.md)
* [\<?> getIncidentAffectedResourceFilters.input](https://docs.ox.security/api-documentation/api-reference/api--response-center/queries/get-incident-affected-resource-filters.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.ox.security/api-documentation/api-reference/api--response-center/types/inputs/get-incident-affected-resources-input.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
