public sealed class SecurityPosture : IMessage<SecurityPosture>, IEquatable<SecurityPosture>, IDeepCloneable<SecurityPosture>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Security Command Center v1 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\u003eThe latest version of the \u003ccode\u003eSecurityPosture\u003c/code\u003e class within the Google Cloud Security Center v1 API is 3.24.0, but there are multiple versions available for reference, from 3.0.0 all the way to 3.24.0, as well as several 2.x versions.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSecurityPosture\u003c/code\u003e class represents a deployed posture within Google Cloud, which is managed by the Security Command Center Posture Management service and includes one or more policy sets for enforcing security rules.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits from several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and is located within the \u003ccode\u003eGoogle.Cloud.SecurityCenter.V1\u003c/code\u003e namespace.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSecurityPosture\u003c/code\u003e class contains properties like \u003ccode\u003eChangedPolicy\u003c/code\u003e, \u003ccode\u003eName\u003c/code\u003e, \u003ccode\u003ePolicy\u003c/code\u003e, \u003ccode\u003ePolicyDriftDetails\u003c/code\u003e, \u003ccode\u003ePolicySet\u003c/code\u003e, \u003ccode\u003ePostureDeployment\u003c/code\u003e, \u003ccode\u003ePostureDeploymentResource\u003c/code\u003e, and \u003ccode\u003eRevisionId\u003c/code\u003e, providing details about the posture and any changes.\u003c/p\u003e\n"],["\u003cp\u003eThe constructor allows for creating a new \u003ccode\u003eSecurityPosture\u003c/code\u003e object either with no parameters or by providing another \u003ccode\u003eSecurityPosture\u003c/code\u003e object as a parameter.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Security Command Center v1 API - Class SecurityPosture (3.24.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.24.0 (latest)](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1/latest/Google.Cloud.SecurityCenter.V1.SecurityPosture)\n- [3.23.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1/3.23.0/Google.Cloud.SecurityCenter.V1.SecurityPosture)\n- [3.22.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1/3.22.0/Google.Cloud.SecurityCenter.V1.SecurityPosture)\n- [3.21.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1/3.21.0/Google.Cloud.SecurityCenter.V1.SecurityPosture)\n- [3.20.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1/3.20.0/Google.Cloud.SecurityCenter.V1.SecurityPosture)\n- [3.19.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1/3.19.0/Google.Cloud.SecurityCenter.V1.SecurityPosture)\n- [3.18.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1/3.18.0/Google.Cloud.SecurityCenter.V1.SecurityPosture)\n- [3.17.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1/3.17.0/Google.Cloud.SecurityCenter.V1.SecurityPosture)\n- [3.16.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1/3.16.0/Google.Cloud.SecurityCenter.V1.SecurityPosture)\n- [3.15.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1/3.15.0/Google.Cloud.SecurityCenter.V1.SecurityPosture)\n- [3.14.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1/3.14.0/Google.Cloud.SecurityCenter.V1.SecurityPosture)\n- [3.13.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1/3.13.0/Google.Cloud.SecurityCenter.V1.SecurityPosture)\n- [3.12.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1/3.12.0/Google.Cloud.SecurityCenter.V1.SecurityPosture)\n- [3.11.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1/3.11.0/Google.Cloud.SecurityCenter.V1.SecurityPosture)\n- [3.10.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1/3.10.0/Google.Cloud.SecurityCenter.V1.SecurityPosture)\n- [3.9.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1/3.9.0/Google.Cloud.SecurityCenter.V1.SecurityPosture)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1/3.8.0/Google.Cloud.SecurityCenter.V1.SecurityPosture)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1/3.7.0/Google.Cloud.SecurityCenter.V1.SecurityPosture)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1/3.6.0/Google.Cloud.SecurityCenter.V1.SecurityPosture)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1/3.5.0/Google.Cloud.SecurityCenter.V1.SecurityPosture)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1/3.4.0/Google.Cloud.SecurityCenter.V1.SecurityPosture)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1/3.3.0/Google.Cloud.SecurityCenter.V1.SecurityPosture)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1/3.2.0/Google.Cloud.SecurityCenter.V1.SecurityPosture)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1/3.1.0/Google.Cloud.SecurityCenter.V1.SecurityPosture)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1/3.0.0/Google.Cloud.SecurityCenter.V1.SecurityPosture)\n- [2.13.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1/2.13.0/Google.Cloud.SecurityCenter.V1.SecurityPosture)\n- [2.12.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1/2.12.0/Google.Cloud.SecurityCenter.V1.SecurityPosture)\n- [2.11.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1/2.11.0/Google.Cloud.SecurityCenter.V1.SecurityPosture)\n- [2.10.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1/2.10.0/Google.Cloud.SecurityCenter.V1.SecurityPosture)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1/2.9.0/Google.Cloud.SecurityCenter.V1.SecurityPosture)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1/2.8.0/Google.Cloud.SecurityCenter.V1.SecurityPosture)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1/2.7.0/Google.Cloud.SecurityCenter.V1.SecurityPosture)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1/2.6.0/Google.Cloud.SecurityCenter.V1.SecurityPosture)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1/2.5.0/Google.Cloud.SecurityCenter.V1.SecurityPosture)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1/2.4.0/Google.Cloud.SecurityCenter.V1.SecurityPosture)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1/2.3.0/Google.Cloud.SecurityCenter.V1.SecurityPosture)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1/2.2.0/Google.Cloud.SecurityCenter.V1.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 Google Cloud Security Command Center v1 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.V1/latest/Google.Cloud.SecurityCenter.V1.SecurityPosture), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[SecurityPosture](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1/latest/Google.Cloud.SecurityCenter.V1.SecurityPosture), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[SecurityPosture](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1/latest/Google.Cloud.SecurityCenter.V1.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.V1](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1/latest/Google.Cloud.SecurityCenter.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.SecurityCenter.V1.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 policyset, 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`."]]