[[["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-09-04 UTC."],[],[],null,["# Google Cloud Security Command Center V2 Client - Class SecurityPosture (2.2.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.2.1 (latest)](/php/docs/reference/cloud-security-center/latest/V2.SecurityPosture)\n- [2.2.0](/php/docs/reference/cloud-security-center/2.2.0/V2.SecurityPosture)\n- [2.1.1](/php/docs/reference/cloud-security-center/2.1.1/V2.SecurityPosture)\n- [2.0.4](/php/docs/reference/cloud-security-center/2.0.4/V2.SecurityPosture)\n- [1.32.0](/php/docs/reference/cloud-security-center/1.32.0/V2.SecurityPosture)\n- [1.31.0](/php/docs/reference/cloud-security-center/1.31.0/V2.SecurityPosture)\n- [1.30.0](/php/docs/reference/cloud-security-center/1.30.0/V2.SecurityPosture)\n- [1.29.0](/php/docs/reference/cloud-security-center/1.29.0/V2.SecurityPosture)\n- [1.28.2](/php/docs/reference/cloud-security-center/1.28.2/V2.SecurityPosture)\n- [1.21.0](/php/docs/reference/cloud-security-center/1.21.0/V2.SecurityPosture)\n- [1.20.2](/php/docs/reference/cloud-security-center/1.20.2/V2.SecurityPosture)\n- [1.19.1](/php/docs/reference/cloud-security-center/1.19.1/V2.SecurityPosture)\n- [1.18.0](/php/docs/reference/cloud-security-center/1.18.0/V2.SecurityPosture)\n- [1.17.0](/php/docs/reference/cloud-security-center/1.17.0/V2.SecurityPosture)\n- [1.16.0](/php/docs/reference/cloud-security-center/1.16.0/V2.SecurityPosture)\n- [1.15.1](/php/docs/reference/cloud-security-center/1.15.1/V2.SecurityPosture)\n- [1.14.2](/php/docs/reference/cloud-security-center/1.14.2/V2.SecurityPosture)\n- [1.13.1](/php/docs/reference/cloud-security-center/1.13.1/V2.SecurityPosture) \nReference documentation and code samples for the Google Cloud Security Command Center V2 Client class SecurityPosture.\n\nRepresents a posture that is deployed on Google Cloud by the\nSecurity Command Center Posture Management service.\n\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\nGenerated from protobuf message `google.cloud.securitycenter.v2.SecurityPosture`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ SecurityCenter \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nName of the posture, for example, `CIS-Posture`.\n\n### setName\n\nName of the posture, for example, `CIS-Posture`.\n\n### getRevisionId\n\nThe version of the posture, for example, `c7cfa2a8`.\n\n### setRevisionId\n\nThe version of the posture, for example, `c7cfa2a8`.\n\n### getPostureDeploymentResource\n\nThe project, folder, or organization on which the posture is deployed,\nfor example, `projects/{project_number}`.\n\n### setPostureDeploymentResource\n\nThe project, folder, or organization on which the posture is deployed,\nfor example, `projects/{project_number}`.\n\n### getPostureDeployment\n\nThe name of the posture deployment, for example,\n`organizations/{org_id}/posturedeployments/{posture_deployment_id}`.\n\n### setPostureDeployment\n\nThe name of the posture deployment, for example,\n`organizations/{org_id}/posturedeployments/{posture_deployment_id}`.\n\n### getChangedPolicy\n\nThe name of the updated policy, for example,\n`projects/{project_id}/policies/{constraint_name}`.\n\n### setChangedPolicy\n\nThe name of the updated policy, for example,\n`projects/{project_id}/policies/{constraint_name}`.\n\n### getPolicySet\n\nThe name of the updated policy set, for example, `cis-policyset`.\n\n### setPolicySet\n\nThe name of the updated policy set, for example, `cis-policyset`.\n\n### getPolicy\n\nThe ID of the updated policy, for example, `compute-policy-1`.\n\n### setPolicy\n\nThe ID of the updated policy, for example, `compute-policy-1`.\n\n### getPolicyDriftDetails\n\nThe details about a change in an updated policy that violates the deployed\nposture.\n\n### setPolicyDriftDetails\n\nThe details about a change in an updated policy that violates the deployed\nposture."]]