The type of Google Cloud Armor security policy for example, 'backend
security policy', 'edge security policy', 'network edge security policy',
or 'always-on DDoS protection'.
[[["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\u003eThe \u003ccode\u003eSecurityPolicy\u003c/code\u003e class represents a Google Cloud Armor security policy within the Security Command Center v2 API.\u003c/p\u003e\n"],["\u003cp\u003eThis class is found in the \u003ccode\u003eGoogle.Cloud.SecurityCenter.V2\u003c/code\u003e namespace and the \u003ccode\u003eGoogle.Cloud.SecurityCenter.V2.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSecurityPolicy\u003c/code\u003e class provides information about the policy's name, its preview status, and the type of security policy it represents.\u003c/p\u003e\n"],["\u003cp\u003eThis class can be constructed using a default constructor or by providing another \u003ccode\u003eSecurityPolicy\u003c/code\u003e instance.\u003c/p\u003e\n"]]],[],null,["# Security Command Center v2 API - Class SecurityPolicy (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.SecurityPolicy)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/1.1.0/Google.Cloud.SecurityCenter.V2.SecurityPolicy)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/1.0.0/Google.Cloud.SecurityCenter.V2.SecurityPolicy) \n\n public sealed class SecurityPolicy : IMessage\u003cSecurityPolicy\u003e, IEquatable\u003cSecurityPolicy\u003e, IDeepCloneable\u003cSecurityPolicy\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Security Command Center v2 API class SecurityPolicy.\n\nInformation about the [Google Cloud Armor security\npolicy](https://cloud.google.com/armor/docs/security-policy-overview)\nrelevant to the finding. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e SecurityPolicy \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[SecurityPolicy](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.SecurityPolicy), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[SecurityPolicy](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.SecurityPolicy), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[SecurityPolicy](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.SecurityPolicy), [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### SecurityPolicy()\n\n public SecurityPolicy()\n\n### SecurityPolicy(SecurityPolicy)\n\n public SecurityPolicy(SecurityPolicy other)\n\nProperties\n----------\n\n### Name\n\n public string Name { get; set; }\n\nThe name of the Google Cloud Armor security policy, for example,\n\"my-security-policy\".\n\n### Preview\n\n public bool Preview { get; set; }\n\nWhether or not the associated rule or policy is in preview mode.\n\n### Type\n\n public string Type { get; set; }\n\nThe type of Google Cloud Armor security policy for example, 'backend\nsecurity policy', 'edge security policy', 'network edge security policy',\nor 'always-on DDoS protection'."]]