Reference documentation and code samples for the Google Cloud Security Command Center V1 Client class Asset.
Security Command Center representation of a Google Cloud
resource.
The Asset is a Security Command Center resource that captures information
about a single Google Cloud resource. All modifications to an Asset are only
within the context of Security Command Center and don't affect the referenced
Google Cloud resource.
Generated from protobuf messagegoogle.cloud.securitycenter.v1.Asset
Cloud IAM Policy information associated with the Google Cloud resource described by the Security Command Center asset. This information is managed and defined by the Google Cloud resource and cannot be modified by the user.
↳ canonical_name
string
The canonical name of the resource. It's either "organizations/{organization_id}/assets/{asset_id}", "folders/{folder_id}/assets/{asset_id}" or "projects/{project_number}/assets/{asset_id}", depending on the closest CRM ancestor of the resource.
Cloud IAM Policy information associated with the Google Cloud resource
described by the Security Command Center asset. This information is managed
and defined by the Google Cloud resource and cannot be modified by the
user.
Cloud IAM Policy information associated with the Google Cloud resource
described by the Security Command Center asset. This information is managed
and defined by the Google Cloud resource and cannot be modified by the
user.
The canonical name of the resource. It's either
"organizations/{organization_id}/assets/{asset_id}",
"folders/{folder_id}/assets/{asset_id}" or
"projects/{project_number}/assets/{asset_id}", depending on the closest CRM
ancestor of the resource.
Returns
Type
Description
string
setCanonicalName
The canonical name of the resource. It's either
"organizations/{organization_id}/assets/{asset_id}",
"folders/{folder_id}/assets/{asset_id}" or
"projects/{project_number}/assets/{asset_id}", depending on the closest CRM
ancestor of the resource.
[[["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 Asset (2.2.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.2.1 (latest)](/php/docs/reference/cloud-security-center/latest/V1.Asset)\n- [2.2.0](/php/docs/reference/cloud-security-center/2.2.0/V1.Asset)\n- [2.1.1](/php/docs/reference/cloud-security-center/2.1.1/V1.Asset)\n- [2.0.4](/php/docs/reference/cloud-security-center/2.0.4/V1.Asset)\n- [1.32.0](/php/docs/reference/cloud-security-center/1.32.0/V1.Asset)\n- [1.31.0](/php/docs/reference/cloud-security-center/1.31.0/V1.Asset)\n- [1.30.0](/php/docs/reference/cloud-security-center/1.30.0/V1.Asset)\n- [1.29.0](/php/docs/reference/cloud-security-center/1.29.0/V1.Asset)\n- [1.28.2](/php/docs/reference/cloud-security-center/1.28.2/V1.Asset)\n- [1.21.0](/php/docs/reference/cloud-security-center/1.21.0/V1.Asset)\n- [1.20.2](/php/docs/reference/cloud-security-center/1.20.2/V1.Asset)\n- [1.19.1](/php/docs/reference/cloud-security-center/1.19.1/V1.Asset)\n- [1.18.0](/php/docs/reference/cloud-security-center/1.18.0/V1.Asset)\n- [1.17.0](/php/docs/reference/cloud-security-center/1.17.0/V1.Asset)\n- [1.16.0](/php/docs/reference/cloud-security-center/1.16.0/V1.Asset)\n- [1.15.1](/php/docs/reference/cloud-security-center/1.15.1/V1.Asset)\n- [1.14.2](/php/docs/reference/cloud-security-center/1.14.2/V1.Asset)\n- [1.13.1](/php/docs/reference/cloud-security-center/1.13.1/V1.Asset) \nReference documentation and code samples for the Google Cloud Security Command Center V1 Client class Asset.\n\nSecurity Command Center representation of a Google Cloud\nresource.\n\nThe Asset is a Security Command Center resource that captures information\nabout a single Google Cloud resource. All modifications to an Asset are only\nwithin the context of Security Command Center and don't affect the referenced\nGoogle Cloud resource.\n\nGenerated from protobuf message `google.cloud.securitycenter.v1.Asset`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ SecurityCenter \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nThe relative resource name of this asset. See:\n\u003chttps://cloud.google.com/apis/design/resource_names#relative_resource_name\u003e\nExample:\n\"organizations/{organization_id}/assets/{asset_id}\".\n\n### setName\n\nThe relative resource name of this asset. See:\n\u003chttps://cloud.google.com/apis/design/resource_names#relative_resource_name\u003e\nExample:\n\"organizations/{organization_id}/assets/{asset_id}\".\n\n### getSecurityCenterProperties\n\nSecurity Command Center managed properties. These properties are managed by\nSecurity Command Center and cannot be modified by the user.\n\n### hasSecurityCenterProperties\n\n### clearSecurityCenterProperties\n\n### setSecurityCenterProperties\n\nSecurity Command Center managed properties. These properties are managed by\nSecurity Command Center and cannot be modified by the user.\n\n### getResourceProperties\n\nResource managed properties. These properties are managed and defined by\nthe Google Cloud resource and cannot be modified by the user.\n\n### setResourceProperties\n\nResource managed properties. These properties are managed and defined by\nthe Google Cloud resource and cannot be modified by the user.\n\n### getSecurityMarks\n\nUser specified security marks. These marks are entirely managed by the user\nand come from the SecurityMarks resource that belongs to the asset.\n\n### hasSecurityMarks\n\n### clearSecurityMarks\n\n### setSecurityMarks\n\nUser specified security marks. These marks are entirely managed by the user\nand come from the SecurityMarks resource that belongs to the asset.\n\n### getCreateTime\n\nThe time at which the asset was created in Security Command Center.\n\n### hasCreateTime\n\n### clearCreateTime\n\n### setCreateTime\n\nThe time at which the asset was created in Security Command Center.\n\n### getUpdateTime\n\nThe time at which the asset was last updated or added in Cloud SCC.\n\n### hasUpdateTime\n\n### clearUpdateTime\n\n### setUpdateTime\n\nThe time at which the asset was last updated or added in Cloud SCC.\n\n### getIamPolicy\n\nCloud IAM Policy information associated with the Google Cloud resource\ndescribed by the Security Command Center asset. This information is managed\nand defined by the Google Cloud resource and cannot be modified by the\nuser.\n\n### hasIamPolicy\n\n### clearIamPolicy\n\n### setIamPolicy\n\nCloud IAM Policy information associated with the Google Cloud resource\ndescribed by the Security Command Center asset. This information is managed\nand defined by the Google Cloud resource and cannot be modified by the\nuser.\n\n### getCanonicalName\n\nThe canonical name of the resource. It's either\n\"organizations/{organization_id}/assets/{asset_id}\",\n\"folders/{folder_id}/assets/{asset_id}\" or\n\"projects/{project_number}/assets/{asset_id}\", depending on the closest CRM\nancestor of the resource.\n\n### setCanonicalName\n\nThe canonical name of the resource. It's either\n\"organizations/{organization_id}/assets/{asset_id}\",\n\"folders/{folder_id}/assets/{asset_id}\" or\n\"projects/{project_number}/assets/{asset_id}\", depending on the closest CRM\nancestor of the resource."]]