Reference documentation and code samples for the Google Cloud Security Command Center V1 Client class Source.
Security Command Center finding source. A finding source
is an entity or a mechanism that can produce a finding. A source is like a
container of findings that come from the same scanner, logger, monitor, and
other tools.
Generated from protobuf messagegoogle.cloud.securitycenter.v1.Source
The source's display name. A source's display name must be unique amongst its siblings, for example, two sources with the same parent can't share the same display name. The display name must have a length between 1 and 64 characters (inclusive).
↳ description
string
The description of the source (max of 1024 characters). Example: "Web Security Scanner is a web security scanner for common vulnerabilities in App Engine applications. It can automatically scan and detect four common vulnerabilities, including cross-site-scripting (XSS), Flash injection, mixed content (HTTP in HTTPS), and outdated or insecure libraries."
↳ canonical_name
string
The canonical name of the finding source. It's either "organizations/{organization_id}/sources/{source_id}", "folders/{folder_id}/sources/{source_id}", or "projects/{project_number}/sources/{source_id}", depending on the closest CRM ancestor of the resource associated with the finding.
A source's display name must be unique amongst its siblings, for example,
two sources with the same parent can't share the same display name.
The display name must have a length between 1 and 64 characters
(inclusive).
Returns
Type
Description
string
setDisplayName
The source's display name.
A source's display name must be unique amongst its siblings, for example,
two sources with the same parent can't share the same display name.
The display name must have a length between 1 and 64 characters
(inclusive).
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getDescription
The description of the source (max of 1024 characters).
Example:
"Web Security Scanner is a web security scanner for common
vulnerabilities in App Engine applications. It can automatically
scan and detect four common vulnerabilities, including cross-site-scripting
(XSS), Flash injection, mixed content (HTTP in HTTPS), and
outdated or insecure libraries."
Returns
Type
Description
string
setDescription
The description of the source (max of 1024 characters).
Example:
"Web Security Scanner is a web security scanner for common
vulnerabilities in App Engine applications. It can automatically
scan and detect four common vulnerabilities, including cross-site-scripting
(XSS), Flash injection, mixed content (HTTP in HTTPS), and
outdated or insecure libraries."
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getCanonicalName
The canonical name of the finding source. It's either
"organizations/{organization_id}/sources/{source_id}",
"folders/{folder_id}/sources/{source_id}", or
"projects/{project_number}/sources/{source_id}",
depending on the closest CRM ancestor of the resource associated with the
finding.
Returns
Type
Description
string
setCanonicalName
The canonical name of the finding source. It's either
"organizations/{organization_id}/sources/{source_id}",
"folders/{folder_id}/sources/{source_id}", or
"projects/{project_number}/sources/{source_id}",
depending on the closest CRM ancestor of the resource associated with the
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 Source (2.2.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.2.1 (latest)](/php/docs/reference/cloud-security-center/latest/V1.Source)\n- [2.2.0](/php/docs/reference/cloud-security-center/2.2.0/V1.Source)\n- [2.1.1](/php/docs/reference/cloud-security-center/2.1.1/V1.Source)\n- [2.0.4](/php/docs/reference/cloud-security-center/2.0.4/V1.Source)\n- [1.32.0](/php/docs/reference/cloud-security-center/1.32.0/V1.Source)\n- [1.31.0](/php/docs/reference/cloud-security-center/1.31.0/V1.Source)\n- [1.30.0](/php/docs/reference/cloud-security-center/1.30.0/V1.Source)\n- [1.29.0](/php/docs/reference/cloud-security-center/1.29.0/V1.Source)\n- [1.28.2](/php/docs/reference/cloud-security-center/1.28.2/V1.Source)\n- [1.21.0](/php/docs/reference/cloud-security-center/1.21.0/V1.Source)\n- [1.20.2](/php/docs/reference/cloud-security-center/1.20.2/V1.Source)\n- [1.19.1](/php/docs/reference/cloud-security-center/1.19.1/V1.Source)\n- [1.18.0](/php/docs/reference/cloud-security-center/1.18.0/V1.Source)\n- [1.17.0](/php/docs/reference/cloud-security-center/1.17.0/V1.Source)\n- [1.16.0](/php/docs/reference/cloud-security-center/1.16.0/V1.Source)\n- [1.15.1](/php/docs/reference/cloud-security-center/1.15.1/V1.Source)\n- [1.14.2](/php/docs/reference/cloud-security-center/1.14.2/V1.Source)\n- [1.13.1](/php/docs/reference/cloud-security-center/1.13.1/V1.Source) \nReference documentation and code samples for the Google Cloud Security Command Center V1 Client class Source.\n\nSecurity Command Center finding source. A finding source\nis an entity or a mechanism that can produce a finding. A source is like a\ncontainer of findings that come from the same scanner, logger, monitor, and\nother tools.\n\nGenerated from protobuf message `google.cloud.securitycenter.v1.Source`\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 source. See:\n\u003chttps://cloud.google.com/apis/design/resource_names#relative_resource_name\u003e\nExample:\n\"organizations/{organization_id}/sources/{source_id}\"\n\n### setName\n\nThe relative resource name of this source. See:\n\u003chttps://cloud.google.com/apis/design/resource_names#relative_resource_name\u003e\nExample:\n\"organizations/{organization_id}/sources/{source_id}\"\n\n### getDisplayName\n\nThe source's display name.\n\nA source's display name must be unique amongst its siblings, for example,\ntwo sources with the same parent can't share the same display name.\nThe display name must have a length between 1 and 64 characters\n(inclusive).\n\n### setDisplayName\n\nThe source's display name.\n\nA source's display name must be unique amongst its siblings, for example,\ntwo sources with the same parent can't share the same display name.\nThe display name must have a length between 1 and 64 characters\n(inclusive).\n\n### getDescription\n\nThe description of the source (max of 1024 characters).\n\nExample:\n\"Web Security Scanner is a web security scanner for common\nvulnerabilities in App Engine applications. It can automatically\nscan and detect four common vulnerabilities, including cross-site-scripting\n(XSS), Flash injection, mixed content (HTTP in HTTPS), and\noutdated or insecure libraries.\"\n\n### setDescription\n\nThe description of the source (max of 1024 characters).\n\nExample:\n\"Web Security Scanner is a web security scanner for common\nvulnerabilities in App Engine applications. It can automatically\nscan and detect four common vulnerabilities, including cross-site-scripting\n(XSS), Flash injection, mixed content (HTTP in HTTPS), and\noutdated or insecure libraries.\"\n\n### getCanonicalName\n\nThe canonical name of the finding source. It's either\n\"organizations/{organization_id}/sources/{source_id}\",\n\"folders/{folder_id}/sources/{source_id}\", or\n\"projects/{project_number}/sources/{source_id}\",\ndepending on the closest CRM ancestor of the resource associated with the\nfinding.\n\n### setCanonicalName\n\nThe canonical name of the finding source. It's either\n\"organizations/{organization_id}/sources/{source_id}\",\n\"folders/{folder_id}/sources/{source_id}\", or\n\"projects/{project_number}/sources/{source_id}\",\ndepending on the closest CRM ancestor of the resource associated with the\nfinding."]]