Reference documentation and code samples for the Google Cloud Security Command Center V1 Client class SecurityMarks.
User specified security marks that are attached to the parent Security
Command Center resource. Security marks are scoped within a Security Command
Center organization -- they can be modified and viewed by all users who have
proper permissions on the organization.
Generated from protobuf messagegoogle.cloud.securitycenter.v1.SecurityMarks
Mutable user specified security marks belonging to the parent resource. Constraints are as follows: * * Keys and values are treated as case insensitive * * Keys must be between 1 - 256 characters (inclusive) * * Keys must be letters, numbers, underscores, or dashes * * Values have leading and trailing whitespace trimmed, remaining characters must be between 1 - 4096 characters (inclusive)
↳ canonical_name
string
The canonical name of the marks. Examples: "organizations/{organization_id}/assets/{asset_id}/securityMarks" "folders/{folder_id}/assets/{asset_id}/securityMarks" "projects/{project_number}/assets/{asset_id}/securityMarks" "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks" "folders/{folder_id}/sources/{source_id}/findings/{finding_id}/securityMarks" "projects/{project_number}/sources/{source_id}/findings/{finding_id}/securityMarks"
[[["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 SecurityMarks (2.2.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.2.1 (latest)](/php/docs/reference/cloud-security-center/latest/V1.SecurityMarks)\n- [2.2.0](/php/docs/reference/cloud-security-center/2.2.0/V1.SecurityMarks)\n- [2.1.1](/php/docs/reference/cloud-security-center/2.1.1/V1.SecurityMarks)\n- [2.0.4](/php/docs/reference/cloud-security-center/2.0.4/V1.SecurityMarks)\n- [1.32.0](/php/docs/reference/cloud-security-center/1.32.0/V1.SecurityMarks)\n- [1.31.0](/php/docs/reference/cloud-security-center/1.31.0/V1.SecurityMarks)\n- [1.30.0](/php/docs/reference/cloud-security-center/1.30.0/V1.SecurityMarks)\n- [1.29.0](/php/docs/reference/cloud-security-center/1.29.0/V1.SecurityMarks)\n- [1.28.2](/php/docs/reference/cloud-security-center/1.28.2/V1.SecurityMarks)\n- [1.21.0](/php/docs/reference/cloud-security-center/1.21.0/V1.SecurityMarks)\n- [1.20.2](/php/docs/reference/cloud-security-center/1.20.2/V1.SecurityMarks)\n- [1.19.1](/php/docs/reference/cloud-security-center/1.19.1/V1.SecurityMarks)\n- [1.18.0](/php/docs/reference/cloud-security-center/1.18.0/V1.SecurityMarks)\n- [1.17.0](/php/docs/reference/cloud-security-center/1.17.0/V1.SecurityMarks)\n- [1.16.0](/php/docs/reference/cloud-security-center/1.16.0/V1.SecurityMarks)\n- [1.15.1](/php/docs/reference/cloud-security-center/1.15.1/V1.SecurityMarks)\n- [1.14.2](/php/docs/reference/cloud-security-center/1.14.2/V1.SecurityMarks)\n- [1.13.1](/php/docs/reference/cloud-security-center/1.13.1/V1.SecurityMarks) \nReference documentation and code samples for the Google Cloud Security Command Center V1 Client class SecurityMarks.\n\nUser specified security marks that are attached to the parent Security\nCommand Center resource. Security marks are scoped within a Security Command\nCenter organization -- they can be modified and viewed by all users who have\nproper permissions on the organization.\n\nGenerated from protobuf message `google.cloud.securitycenter.v1.SecurityMarks`\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 the SecurityMarks. See:\n\u003chttps://cloud.google.com/apis/design/resource_names#relative_resource_name\u003e\nExamples:\n\"organizations/{organization_id}/assets/{asset_id}/securityMarks\"\n\"organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks\".\n\n### setName\n\nThe relative resource name of the SecurityMarks. See:\n\u003chttps://cloud.google.com/apis/design/resource_names#relative_resource_name\u003e\nExamples:\n\"organizations/{organization_id}/assets/{asset_id}/securityMarks\"\n\"organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks\".\n\n### getMarks\n\nMutable user specified security marks belonging to the parent resource.\n\nConstraints are as follows:\n\n- Keys and values are treated as case insensitive\n- Keys must be between 1 - 256 characters (inclusive)\n- Keys must be letters, numbers, underscores, or dashes\n- Values have leading and trailing whitespace trimmed, remaining characters must be between 1 - 4096 characters (inclusive)\n\n### setMarks\n\nMutable user specified security marks belonging to the parent resource.\n\nConstraints are as follows:\n\n- Keys and values are treated as case insensitive\n- Keys must be between 1 - 256 characters (inclusive)\n- Keys must be letters, numbers, underscores, or dashes\n- Values have leading and trailing whitespace trimmed, remaining characters must be between 1 - 4096 characters (inclusive)\n\n### getCanonicalName\n\nThe canonical name of the marks.\n\nExamples:\n\"organizations/{organization_id}/assets/{asset_id}/securityMarks\"\n\"folders/{folder_id}/assets/{asset_id}/securityMarks\"\n\"projects/{project_number}/assets/{asset_id}/securityMarks\"\n\"organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks\"\n\"folders/{folder_id}/sources/{source_id}/findings/{finding_id}/securityMarks\"\n\"projects/{project_number}/sources/{source_id}/findings/{finding_id}/securityMarks\"\n\n### setCanonicalName\n\nThe canonical name of the marks.\n\nExamples:\n\"organizations/{organization_id}/assets/{asset_id}/securityMarks\"\n\"folders/{folder_id}/assets/{asset_id}/securityMarks\"\n\"projects/{project_number}/assets/{asset_id}/securityMarks\"\n\"organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks\"\n\"folders/{folder_id}/sources/{source_id}/findings/{finding_id}/securityMarks\"\n\"projects/{project_number}/sources/{source_id}/findings/{finding_id}/securityMarks\""]]