# Security Command Center v2 API - Class AttackPath (1.4.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [1.4.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.AttackPath)
- [1.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/1.3.0/Google.Cloud.SecurityCenter.V2.AttackPath)
- [1.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/1.2.0/Google.Cloud.SecurityCenter.V2.AttackPath)
- [1.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/1.1.0/Google.Cloud.SecurityCenter.V2.AttackPath)
- [1.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/1.0.0/Google.Cloud.SecurityCenter.V2.AttackPath)

    public sealed class AttackPath : IMessage<AttackPath>, IEquatable<AttackPath>, IDeepCloneable<AttackPath>, IBufferMessage, IMessage

Reference documentation and code samples for the Security Command Center v2 API class AttackPath.

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

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> AttackPath

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[AttackPath](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.AttackPath), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[AttackPath](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.AttackPath), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[AttackPath](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.AttackPath), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.SecurityCenter.V2](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2)

## Assembly

Google.Cloud.SecurityCenter.V2.dll

## Constructors

### AttackPath()

    public AttackPath()

### AttackPath(AttackPath)

    public AttackPath(AttackPath other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.AttackPath` |

## Properties

### AttackPathName

    public AttackPathName AttackPathName { get; set; }

[AttackPathName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.AttackPathName)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.AttackPath#Google_Cloud_SecurityCenter_V2_AttackPath_Name) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.AttackPathName` |   |

### Edges

    public RepeatedField<AttackPath.Types.AttackPathEdge> Edges { get; }

A list of the edges between nodes in this attack path.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.AttackPathhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.AttackPath.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.AttackPath.Types.AttackPathEdge` |   |

### Name

    public string Name { get; set; }

The attack path name, for example,
`organizations/12/simulations/34/valuedResources/56/attackPaths/78`

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### PathNodes

    public RepeatedField<AttackPath.Types.AttackPathNode> PathNodes { get; }

A list of nodes that exist in this attack path.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.AttackPathhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.AttackPath.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.AttackPath.Types.AttackPathNode` |   |