[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis document provides reference information for the \u003ccode\u003eAttackPath\u003c/code\u003e class within the Security Command Center v2 API in the .NET environment.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAttackPath\u003c/code\u003e class represents a sequence of steps an attacker could follow to compromise a resource and is implemented with interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAttackPath\u003c/code\u003e class has properties such as \u003ccode\u003eAttackPathName\u003c/code\u003e, \u003ccode\u003eEdges\u003c/code\u003e, \u003ccode\u003eName\u003c/code\u003e, and \u003ccode\u003ePathNodes\u003c/code\u003e, which represent the resource name, the connections between nodes, the path's unique identifier, and the nodes themselves, respectively.\u003c/p\u003e\n"],["\u003cp\u003eThe document showcases both the latest version (1.1.0) and a previous one (1.0.0) of the AttackPath class, and also includes inherited members and constructors.\u003c/p\u003e\n"]]],[],null,["# Security Command Center v2 API - Class AttackPath (1.2.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.0 (latest)](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.AttackPath)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/1.1.0/Google.Cloud.SecurityCenter.V2.AttackPath)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/1.0.0/Google.Cloud.SecurityCenter.V2.AttackPath) \n\n public sealed class AttackPath : IMessage\u003cAttackPath\u003e, IEquatable\u003cAttackPath\u003e, IDeepCloneable\u003cAttackPath\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Security Command Center v2 API class AttackPath.\n\nA path that an attacker could take to reach an exposed resource. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e AttackPath \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[AttackPath](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.AttackPath), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[AttackPath](/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](/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) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.SecurityCenter.V2](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2)\n\nAssembly\n--------\n\nGoogle.Cloud.SecurityCenter.V2.dll\n\nConstructors\n------------\n\n### AttackPath()\n\n public AttackPath()\n\n### AttackPath(AttackPath)\n\n public AttackPath(AttackPath other)\n\nProperties\n----------\n\n### AttackPathName\n\n public AttackPathName AttackPathName { get; set; }\n\n[AttackPathName](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.AttackPathName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.AttackPath#Google_Cloud_SecurityCenter_V2_AttackPath_Name) resource name property.\n\n### Edges\n\n public RepeatedField\u003cAttackPath.Types.AttackPathEdge\u003e Edges { get; }\n\nA list of the edges between nodes in this attack path.\n\n### Name\n\n public string Name { get; set; }\n\nThe attack path name, for example,\n`organizations/12/simulations/34/valuedResources/56/attackPaths/78`\n\n### PathNodes\n\n public RepeatedField\u003cAttackPath.Types.AttackPathNode\u003e PathNodes { get; }\n\nA list of nodes that exist in this attack path."]]