# ListAttackPathsResponse

- [JSON representation](https://docs.cloud.google.com/security-command-center/docs/reference/rest/v2/ListAttackPathsResponse#SCHEMA_REPRESENTATION)
- [AttackPath](https://docs.cloud.google.com/security-command-center/docs/reference/rest/v2/ListAttackPathsResponse#AttackPath)
  - [JSON representation](https://docs.cloud.google.com/security-command-center/docs/reference/rest/v2/ListAttackPathsResponse#AttackPath.SCHEMA_REPRESENTATION)
- [AttackPathNode](https://docs.cloud.google.com/security-command-center/docs/reference/rest/v2/ListAttackPathsResponse#AttackPathNode)
  - [JSON representation](https://docs.cloud.google.com/security-command-center/docs/reference/rest/v2/ListAttackPathsResponse#AttackPathNode.SCHEMA_REPRESENTATION)
- [PathNodeAssociatedFinding](https://docs.cloud.google.com/security-command-center/docs/reference/rest/v2/ListAttackPathsResponse#PathNodeAssociatedFinding)
  - [JSON representation](https://docs.cloud.google.com/security-command-center/docs/reference/rest/v2/ListAttackPathsResponse#PathNodeAssociatedFinding.SCHEMA_REPRESENTATION)
- [AttackStepNode](https://docs.cloud.google.com/security-command-center/docs/reference/rest/v2/ListAttackPathsResponse#AttackStepNode)
  - [JSON representation](https://docs.cloud.google.com/security-command-center/docs/reference/rest/v2/ListAttackPathsResponse#AttackStepNode.SCHEMA_REPRESENTATION)
- [NodeType](https://docs.cloud.google.com/security-command-center/docs/reference/rest/v2/ListAttackPathsResponse#NodeType)
- [AttackPathEdge](https://docs.cloud.google.com/security-command-center/docs/reference/rest/v2/ListAttackPathsResponse#AttackPathEdge)
  - [JSON representation](https://docs.cloud.google.com/security-command-center/docs/reference/rest/v2/ListAttackPathsResponse#AttackPathEdge.SCHEMA_REPRESENTATION)

Response message for listing the attack paths for a given simulation or valued resource.

| JSON representation |
|---|
| ``` { "attackPaths": [ { object (`https://docs.cloud.google.com/security-command-center/docs/reference/rest/v2/ListAttackPathsResponse#AttackPath`) } ], "nextPageToken": string } ``` |

| Fields ||
|---|---|
| `attackPaths[]` | ``object (`https://docs.cloud.google.com/security-command-center/docs/reference/rest/v2/ListAttackPathsResponse#AttackPath`)`` The attack paths that the attack path simulation identified. |
| `nextPageToken` | `string` Token to retrieve the next page of results, or empty if there are no more results. |

## AttackPath

A path that an attacker could take to reach an exposed resource.

| JSON representation |
|---|
| ``` { "name": string, "pathNodes": [ { object (`https://docs.cloud.google.com/security-command-center/docs/reference/rest/v2/ListAttackPathsResponse#AttackPathNode`) } ], "edges": [ { object (`https://docs.cloud.google.com/security-command-center/docs/reference/rest/v2/ListAttackPathsResponse#AttackPathEdge`) } ] } ``` |

| Fields ||
|---|---|
| `name` | `string` The attack path name, for example, `organizations/12/simulations/34/valuedResources/56/attackPaths/78` |
| `pathNodes[]` | ``object (`https://docs.cloud.google.com/security-command-center/docs/reference/rest/v2/ListAttackPathsResponse#AttackPathNode`)`` A list of nodes that exist in this attack path. |
| `edges[]` | ``object (`https://docs.cloud.google.com/security-command-center/docs/reference/rest/v2/ListAttackPathsResponse#AttackPathEdge`)`` A list of the edges between nodes in this attack path. |

## AttackPathNode

Represents one point that an attacker passes through in this attack path.

| JSON representation |
|---|
| ``` { "resource": string, "resourceType": string, "displayName": string, "associatedFindings": [ { object (`https://docs.cloud.google.com/security-command-center/docs/reference/rest/v2/ListAttackPathsResponse#PathNodeAssociatedFinding`) } ], "uuid": string, "attackSteps": [ { object (`https://docs.cloud.google.com/security-command-center/docs/reference/rest/v2/ListAttackPathsResponse#AttackStepNode`) } ] } ``` |

| Fields ||
|---|---|
| `resource` | `string` The name of the resource at this point in the attack path. The format of the name follows the Cloud Asset Inventory [resource name format](https://cloud.google.com/asset-inventory/docs/resource-name-format) |
| `resourceType` | `string` The [supported resource type](https://cloud.google.com/asset-inventory/docs/supported-asset-types) |
| `displayName` | `string` Human-readable name of this resource. |
| `associatedFindings[]` | ``object (`https://docs.cloud.google.com/security-command-center/docs/reference/rest/v2/ListAttackPathsResponse#PathNodeAssociatedFinding`)`` The findings associated with this node in the attack path. |
| `uuid` | `string` Unique id of the attack path node. |
| `attackSteps[]` | ``object (`https://docs.cloud.google.com/security-command-center/docs/reference/rest/v2/ListAttackPathsResponse#AttackStepNode`)`` A list of attack step nodes that exist in this attack path node. |

## PathNodeAssociatedFinding

A finding that is associated with this node in the attack path.

| JSON representation |
|---|
| ``` { "canonicalFinding": string, "findingCategory": string, "name": string } ``` |

| Fields ||
|---|---|
| `canonicalFinding` | `string` Canonical name of the associated findings. Example: `organizations/123/sources/456/findings/789` |
| `findingCategory` | `string` The additional taxonomy group within findings from a given source. |
| `name` | `string` Full resource name of the finding. |

## AttackStepNode

Detailed steps the attack can take between path nodes.

| JSON representation |
|---|
| ``` { "uuid": string, "type": enum (`https://docs.cloud.google.com/security-command-center/docs/reference/rest/v2/ListAttackPathsResponse#NodeType`), "displayName": string, "labels": { string: string, ... }, "description": string } ``` |

| Fields ||
|---|---|
| `uuid` | `string` Unique ID for one Node |
| `type` | ``enum (`https://docs.cloud.google.com/security-command-center/docs/reference/rest/v2/ListAttackPathsResponse#NodeType`)`` Attack step type. Can be either AND, OR or DEFENSE |
| `displayName` | `string` User friendly name of the attack step |
| `labels` | `map (key: string, value: string)` Attack step labels for metadata An object containing a list of `"key": value` pairs. Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`. |
| `description` | `string` Attack step description |

## NodeType

The type of the incoming attack step node.

| Enums ||
|---|---|
| `NODE_TYPE_UNSPECIFIED` | Type not specified |
| `NODE_TYPE_AND` | Incoming edge joined with AND |
| `NODE_TYPE_OR` | Incoming edge joined with OR |
| `NODE_TYPE_DEFENSE` | Incoming edge is defense |
| `NODE_TYPE_ATTACKER` | Incoming edge is attacker |

## AttackPathEdge

Represents a connection between a source node and a destination node in this attack path.

| JSON representation |
|---|
| ``` { "source": string, "destination": string } ``` |

| Fields ||
|---|---|
| `source` | `string` The attack node uuid of the source node. |
| `destination` | `string` The attack node uuid of the destination node. |