public sealed class SecurityPosture : IMessage<SecurityPosture>, IEquatable<SecurityPosture>, IDeepCloneable<SecurityPosture>, IBufferMessage, IMessage
Reference documentation and code samples for the Security Command Center v2 API class SecurityPosture.
Represents a posture that is deployed on Google Cloud by the
Security Command Center Posture Management service.
A posture contains one or more policy sets. A policy set is a
group of policies that enforce a set of security rules on Google
Cloud.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eSecurityPosture is a class within the Security Command Center v2 API, representing a posture deployed on Google Cloud via the Posture Management service.\u003c/p\u003e\n"],["\u003cp\u003eA SecurityPosture consists of one or more policy sets, which enforce security rules on Google Cloud.\u003c/p\u003e\n"],["\u003cp\u003eThe SecurityPosture class implements several interfaces, including IMessage, IEquatable, IDeepCloneable, and IBufferMessage.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of a SecurityPosture include details about changed policies, names, drift details, policy sets, deployments, and revision IDs.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors available, a default one, and one that takes another SecurityPosture object as an argument for copying.\u003c/p\u003e\n"]]],[],null,["# Security Command Center v2 API - Class SecurityPosture (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.SecurityPosture)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/1.1.0/Google.Cloud.SecurityCenter.V2.SecurityPosture)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/1.0.0/Google.Cloud.SecurityCenter.V2.SecurityPosture) \n\n public sealed class SecurityPosture : IMessage\u003cSecurityPosture\u003e, IEquatable\u003cSecurityPosture\u003e, IDeepCloneable\u003cSecurityPosture\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Security Command Center v2 API class SecurityPosture.\n\nRepresents a posture that is deployed on Google Cloud by the\nSecurity Command Center Posture Management service.\nA posture contains one or more policy sets. A policy set is a\ngroup of policies that enforce a set of security rules on Google\nCloud. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e SecurityPosture \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[SecurityPosture](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.SecurityPosture), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[SecurityPosture](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.SecurityPosture), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[SecurityPosture](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.SecurityPosture), [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### SecurityPosture()\n\n public SecurityPosture()\n\n### SecurityPosture(SecurityPosture)\n\n public SecurityPosture(SecurityPosture other)\n\nProperties\n----------\n\n### ChangedPolicy\n\n public string ChangedPolicy { get; set; }\n\nThe name of the updated policy, for example,\n`projects/{project_id}/policies/{constraint_name}`.\n\n### Name\n\n public string Name { get; set; }\n\nName of the posture, for example, `CIS-Posture`.\n\n### Policy\n\n public string Policy { get; set; }\n\nThe ID of the updated policy, for example, `compute-policy-1`.\n\n### PolicyDriftDetails\n\n public RepeatedField\u003cSecurityPosture.Types.PolicyDriftDetails\u003e PolicyDriftDetails { get; }\n\nThe details about a change in an updated policy that violates the deployed\nposture.\n\n### PolicySet\n\n public string PolicySet { get; set; }\n\nThe name of the updated policy set, for example, `cis-policyset`.\n\n### PostureDeployment\n\n public string PostureDeployment { get; set; }\n\nThe name of the posture deployment, for example,\n`organizations/{org_id}/posturedeployments/{posture_deployment_id}`.\n\n### PostureDeploymentResource\n\n public string PostureDeploymentResource { get; set; }\n\nThe project, folder, or organization on which the posture is deployed,\nfor example, `projects/{project_number}`.\n\n### RevisionId\n\n public string RevisionId { get; set; }\n\nThe version of the posture, for example, `c7cfa2a8`."]]