Reference documentation and code samples for the Google Cloud Security Command Center V2 Client 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.
Generated from protobuf message google.cloud.securitycenter.v2.SecurityPosture
Namespace
Google \ Cloud \ SecurityCenter \ V2Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Name of the posture, for example, CIS-Posture
.
↳ revision_id
string
The version of the posture, for example, c7cfa2a8
.
↳ posture_deployment_resource
string
The project, folder, or organization on which the posture is deployed, for example, projects/{project_number}
.
↳ posture_deployment
string
The name of the posture deployment, for example, organizations/{org_id}/posturedeployments/{posture_deployment_id}
.
↳ changed_policy
string
The name of the updated policy, for example, projects/{project_id}/policies/{constraint_name}
.
↳ policy_set
string
The name of the updated policy set, for example, cis-policyset
.
↳ policy
string
The ID of the updated policy, for example, compute-policy-1
.
↳ policy_drift_details
array< Google\Cloud\SecurityCenter\V2\SecurityPosture\PolicyDriftDetails
>
The details about a change in an updated policy that violates the deployed posture.
getName
Name of the posture, for example, CIS-Posture
.
string
setName
Name of the posture, for example, CIS-Posture
.
var
string
$this
getRevisionId
The version of the posture, for example, c7cfa2a8
.
string
setRevisionId
The version of the posture, for example, c7cfa2a8
.
var
string
$this
getPostureDeploymentResource
The project, folder, or organization on which the posture is deployed,
for example, projects/{project_number}
.
string
setPostureDeploymentResource
The project, folder, or organization on which the posture is deployed,
for example, projects/{project_number}
.
var
string
$this
getPostureDeployment
The name of the posture deployment, for example, organizations/{org_id}/posturedeployments/{posture_deployment_id}
.
string
setPostureDeployment
The name of the posture deployment, for example, organizations/{org_id}/posturedeployments/{posture_deployment_id}
.
var
string
$this
getChangedPolicy
The name of the updated policy, for example, projects/{project_id}/policies/{constraint_name}
.
string
setChangedPolicy
The name of the updated policy, for example, projects/{project_id}/policies/{constraint_name}
.
var
string
$this
getPolicySet
The name of the updated policy set, for example, cis-policyset
.
string
setPolicySet
The name of the updated policy set, for example, cis-policyset
.
var
string
$this
getPolicy
The ID of the updated policy, for example, compute-policy-1
.
string
setPolicy
The ID of the updated policy, for example, compute-policy-1
.
var
string
$this
getPolicyDriftDetails
The details about a change in an updated policy that violates the deployed posture.
setPolicyDriftDetails
The details about a change in an updated policy that violates the deployed posture.
$this