Provides the path to the resource within the resource hierarchy.
↳ resource_path_string
string
A string representation of the resource path. For Google Cloud, it has the format oforganizations/{organization_id}/folders/{folder_id}/folders/{folder_id}/projects/{project_id}where there can be any number of folders. For AWS, it has the format oforg/{organization_id}/ou/{organizational_unit_id}/ou/{organizational_unit_id}/account/{account_id}where there can be any number of organizational units. For Azure, it has the format ofmg/{management_group_id}/mg/{management_group_id}/subscription/{subscription_id}/rg/{resource_group_name}where there can be any number of management groups.
For Google Cloud, it has the format oforganizations/{organization_id}/folders/{folder_id}/folders/{folder_id}/projects/{project_id}where there can be any number of folders.
For AWS, it has the format oforg/{organization_id}/ou/{organizational_unit_id}/ou/{organizational_unit_id}/account/{account_id}where there can be any number of organizational units.
For Azure, it has the format ofmg/{management_group_id}/mg/{management_group_id}/subscription/{subscription_id}/rg/{resource_group_name}where there can be any number of management groups.
Returns
Type
Description
string
setResourcePathString
A string representation of the resource path.
For Google Cloud, it has the format oforganizations/{organization_id}/folders/{folder_id}/folders/{folder_id}/projects/{project_id}where there can be any number of folders.
For AWS, it has the format oforg/{organization_id}/ou/{organizational_unit_id}/ou/{organizational_unit_id}/account/{account_id}where there can be any number of organizational units.
For Azure, it has the format ofmg/{management_group_id}/mg/{management_group_id}/subscription/{subscription_id}/rg/{resource_group_name}where there can be any number of management groups.
[[["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 Resource (2.2.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.2.1 (latest)](/php/docs/reference/cloud-security-center/latest/V2.Resource)\n- [2.2.0](/php/docs/reference/cloud-security-center/2.2.0/V2.Resource)\n- [2.1.1](/php/docs/reference/cloud-security-center/2.1.1/V2.Resource)\n- [2.0.4](/php/docs/reference/cloud-security-center/2.0.4/V2.Resource)\n- [1.32.0](/php/docs/reference/cloud-security-center/1.32.0/V2.Resource)\n- [1.31.0](/php/docs/reference/cloud-security-center/1.31.0/V2.Resource)\n- [1.30.0](/php/docs/reference/cloud-security-center/1.30.0/V2.Resource)\n- [1.29.0](/php/docs/reference/cloud-security-center/1.29.0/V2.Resource)\n- [1.28.2](/php/docs/reference/cloud-security-center/1.28.2/V2.Resource)\n- [1.21.0](/php/docs/reference/cloud-security-center/1.21.0/V2.Resource)\n- [1.20.2](/php/docs/reference/cloud-security-center/1.20.2/V2.Resource)\n- [1.19.1](/php/docs/reference/cloud-security-center/1.19.1/V2.Resource)\n- [1.18.0](/php/docs/reference/cloud-security-center/1.18.0/V2.Resource)\n- [1.17.0](/php/docs/reference/cloud-security-center/1.17.0/V2.Resource)\n- [1.16.0](/php/docs/reference/cloud-security-center/1.16.0/V2.Resource)\n- [1.15.1](/php/docs/reference/cloud-security-center/1.15.1/V2.Resource)\n- [1.14.2](/php/docs/reference/cloud-security-center/1.14.2/V2.Resource)\n- [1.13.1](/php/docs/reference/cloud-security-center/1.13.1/V2.Resource) \nReference documentation and code samples for the Google Cloud Security Command Center V2 Client class Resource.\n\nInformation related to the Google Cloud resource.\n\nGenerated from protobuf message `google.cloud.securitycenter.v2.Resource`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ SecurityCenter \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nThe full resource name of the resource. See:\n\u003chttps://cloud.google.com/apis/design/resource_names#full_resource_name\u003e\n\n### setName\n\nThe full resource name of the resource. See:\n\u003chttps://cloud.google.com/apis/design/resource_names#full_resource_name\u003e\n\n### getDisplayName\n\nThe human readable name of the resource.\n\n### setDisplayName\n\nThe human readable name of the resource.\n\n### getType\n\nThe full resource type of the resource.\n\n### setType\n\nThe full resource type of the resource.\n\n### getCloudProvider\n\nIndicates which cloud provider the finding is from.\n\n### setCloudProvider\n\nIndicates which cloud provider the finding is from.\n\n### getService\n\nThe service or resource provider associated with the resource.\n\n### setService\n\nThe service or resource provider associated with the resource.\n\n### getLocation\n\nThe region or location of the service (if applicable).\n\n### setLocation\n\nThe region or location of the service (if applicable).\n\n### getGcpMetadata\n\nThe GCP metadata associated with the finding.\n\n### hasGcpMetadata\n\n### setGcpMetadata\n\nThe GCP metadata associated with the finding.\n\n### getAwsMetadata\n\nThe AWS metadata associated with the finding.\n\n### hasAwsMetadata\n\n### setAwsMetadata\n\nThe AWS metadata associated with the finding.\n\n### getAzureMetadata\n\nThe Azure metadata associated with the finding.\n\n### hasAzureMetadata\n\n### setAzureMetadata\n\nThe Azure metadata associated with the finding.\n\n### getResourcePath\n\nProvides the path to the resource within the resource hierarchy.\n\n### hasResourcePath\n\n### clearResourcePath\n\n### setResourcePath\n\nProvides the path to the resource within the resource hierarchy.\n\n### getResourcePathString\n\nA string representation of the resource path.\n\nFor Google Cloud, it has the format of\n`organizations/{organization_id}/folders/{folder_id}/folders/{folder_id}/projects/{project_id}`\nwhere there can be any number of folders.\nFor AWS, it has the format of\n`org/{organization_id}/ou/{organizational_unit_id}/ou/{organizational_unit_id}/account/{account_id}`\nwhere there can be any number of organizational units.\nFor Azure, it has the format of\n`mg/{management_group_id}/mg/{management_group_id}/subscription/{subscription_id}/rg/{resource_group_name}`\nwhere there can be any number of management groups.\n\n### setResourcePathString\n\nA string representation of the resource path.\n\nFor Google Cloud, it has the format of\n`organizations/{organization_id}/folders/{folder_id}/folders/{folder_id}/projects/{project_id}`\nwhere there can be any number of folders.\nFor AWS, it has the format of\n`org/{organization_id}/ou/{organizational_unit_id}/ou/{organizational_unit_id}/account/{account_id}`\nwhere there can be any number of organizational units.\nFor Azure, it has the format of\n`mg/{management_group_id}/mg/{management_group_id}/subscription/{subscription_id}/rg/{resource_group_name}`\nwhere there can be any number of management groups.\n\n### getCloudProviderMetadata"]]