Reference documentation and code samples for the Google Cloud Security Command Center V1 Client class AttackExposure.
An attack exposure contains the results of an attack path simulation run.
Generated from protobuf messagegoogle.cloud.securitycenter.v1.AttackExposure
Namespace
Google \ Cloud \ SecurityCenter \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ score
float
A number between 0 (inclusive) and infinity that represents how important this finding is to remediate. The higher the score, the more important it is to remediate.
The most recent time the attack exposure was updated on this finding.
↳ attack_exposure_result
string
The resource name of the attack path simulation result that contains the details regarding this attack exposure score. Example:organizations/123/simulations/456/attackExposureResults/789
↳ state
int
What state this AttackExposure is in. This captures whether or not an attack exposure has been calculated or not.
↳ exposed_high_value_resources_count
int
The number of high value resources that are exposed as a result of this finding.
↳ exposed_medium_value_resources_count
int
The number of medium value resources that are exposed as a result of this finding.
↳ exposed_low_value_resources_count
int
The number of high value resources that are exposed as a result of this finding.
getScore
A number between 0 (inclusive) and infinity that represents how important
this finding is to remediate. The higher the score, the more important it
is to remediate.
Returns
Type
Description
float
setScore
A number between 0 (inclusive) and infinity that represents how important
this finding is to remediate. The higher the score, the more important it
is to remediate.
Parameter
Name
Description
var
float
Returns
Type
Description
$this
getLatestCalculationTime
The most recent time the attack exposure was updated on this finding.
[[["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 V1 Client - Class AttackExposure (2.2.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.2.1 (latest)](/php/docs/reference/cloud-security-center/latest/V1.AttackExposure)\n- [2.2.0](/php/docs/reference/cloud-security-center/2.2.0/V1.AttackExposure)\n- [2.1.1](/php/docs/reference/cloud-security-center/2.1.1/V1.AttackExposure)\n- [2.0.4](/php/docs/reference/cloud-security-center/2.0.4/V1.AttackExposure)\n- [1.32.0](/php/docs/reference/cloud-security-center/1.32.0/V1.AttackExposure)\n- [1.31.0](/php/docs/reference/cloud-security-center/1.31.0/V1.AttackExposure)\n- [1.30.0](/php/docs/reference/cloud-security-center/1.30.0/V1.AttackExposure)\n- [1.29.0](/php/docs/reference/cloud-security-center/1.29.0/V1.AttackExposure)\n- [1.28.2](/php/docs/reference/cloud-security-center/1.28.2/V1.AttackExposure)\n- [1.21.0](/php/docs/reference/cloud-security-center/1.21.0/V1.AttackExposure)\n- [1.20.2](/php/docs/reference/cloud-security-center/1.20.2/V1.AttackExposure)\n- [1.19.1](/php/docs/reference/cloud-security-center/1.19.1/V1.AttackExposure)\n- [1.18.0](/php/docs/reference/cloud-security-center/1.18.0/V1.AttackExposure)\n- [1.17.0](/php/docs/reference/cloud-security-center/1.17.0/V1.AttackExposure)\n- [1.16.0](/php/docs/reference/cloud-security-center/1.16.0/V1.AttackExposure)\n- [1.15.1](/php/docs/reference/cloud-security-center/1.15.1/V1.AttackExposure)\n- [1.14.2](/php/docs/reference/cloud-security-center/1.14.2/V1.AttackExposure)\n- [1.13.1](/php/docs/reference/cloud-security-center/1.13.1/V1.AttackExposure) \nReference documentation and code samples for the Google Cloud Security Command Center V1 Client class AttackExposure.\n\nAn attack exposure contains the results of an attack path simulation run.\n\nGenerated from protobuf message `google.cloud.securitycenter.v1.AttackExposure`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ SecurityCenter \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getScore\n\nA number between 0 (inclusive) and infinity that represents how important\nthis finding is to remediate. The higher the score, the more important it\nis to remediate.\n\n### setScore\n\nA number between 0 (inclusive) and infinity that represents how important\nthis finding is to remediate. The higher the score, the more important it\nis to remediate.\n\n### getLatestCalculationTime\n\nThe most recent time the attack exposure was updated on this finding.\n\n### hasLatestCalculationTime\n\n### clearLatestCalculationTime\n\n### setLatestCalculationTime\n\nThe most recent time the attack exposure was updated on this finding.\n\n### getAttackExposureResult\n\nThe resource name of the attack path simulation result that contains the\ndetails regarding this attack exposure score.\n\nExample: `organizations/123/simulations/456/attackExposureResults/789`\n\n### setAttackExposureResult\n\nThe resource name of the attack path simulation result that contains the\ndetails regarding this attack exposure score.\n\nExample: `organizations/123/simulations/456/attackExposureResults/789`\n\n### getState\n\nWhat state this AttackExposure is in. This captures whether or not an\nattack exposure has been calculated or not.\n\n### setState\n\nWhat state this AttackExposure is in. This captures whether or not an\nattack exposure has been calculated or not.\n\n### getExposedHighValueResourcesCount\n\nThe number of high value resources that are exposed as a result of this\nfinding.\n\n### setExposedHighValueResourcesCount\n\nThe number of high value resources that are exposed as a result of this\nfinding.\n\n### getExposedMediumValueResourcesCount\n\nThe number of medium value resources that are exposed as a result of this\nfinding.\n\n### setExposedMediumValueResourcesCount\n\nThe number of medium value resources that are exposed as a result of this\nfinding.\n\n### getExposedLowValueResourcesCount\n\nThe number of high value resources that are exposed as a result of this\nfinding.\n\n### setExposedLowValueResourcesCount\n\nThe number of high value resources that are exposed as a result of this\nfinding."]]