Reference documentation and code samples for the Google Cloud Security Command Center V2 Client class CreateFindingRequest.
Request message for creating a finding.
Generated from protobuf messagegoogle.cloud.securitycenter.v2.CreateFindingRequest
Namespace
Google \ Cloud \ SecurityCenter \ V2
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ parent
string
Required. Resource name of the new finding's parent. The following list shows some examples of the format: +organizations/[organization_id]/sources/[source_id]+organizations/[organization_id]/sources/[source_id]/locations/[location_id]
↳ finding_id
string
Required. Unique identifier provided by the client within the parent scope. It must be alphanumeric and less than or equal to 32 characters and greater than 0 characters in length.
Required. The Finding being created. The name and security_marks will be ignored as they are both output only fields on this resource.
getParent
Required. Resource name of the new finding's parent. The following list
shows some examples of the format:
+organizations/[organization_id]/sources/[source_id]+organizations/[organization_id]/sources/[source_id]/locations/[location_id]
Returns
Type
Description
string
setParent
Required. Resource name of the new finding's parent. The following list
shows some examples of the format:
+organizations/[organization_id]/sources/[source_id]+organizations/[organization_id]/sources/[source_id]/locations/[location_id]
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getFindingId
Required. Unique identifier provided by the client within the parent scope.
It must be alphanumeric and less than or equal to 32 characters and
greater than 0 characters in length.
Returns
Type
Description
string
setFindingId
Required. Unique identifier provided by the client within the parent scope.
It must be alphanumeric and less than or equal to 32 characters and
greater than 0 characters in length.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getFinding
Required. The Finding being created. The name and security_marks will be
ignored as they are both output only fields on this resource.
Required. Resource name of the new finding's parent. The following list
shows some examples of the format:
+organizations/[organization_id]/sources/[source_id]+organizations/[organization_id]/sources/[source_id]/locations/[location_id]Please seeSecurityCenterClient::sourceName()for help formatting this field.
Required. The Finding being created. The name and security_marks will be
ignored as they are both output only fields on this resource.
findingId
string
Required. Unique identifier provided by the client within the parent scope.
It must be alphanumeric and less than or equal to 32 characters and
greater than 0 characters in length.
[[["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 CreateFindingRequest (2.2.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.2.1 (latest)](/php/docs/reference/cloud-security-center/latest/V2.CreateFindingRequest)\n- [2.2.0](/php/docs/reference/cloud-security-center/2.2.0/V2.CreateFindingRequest)\n- [2.1.1](/php/docs/reference/cloud-security-center/2.1.1/V2.CreateFindingRequest)\n- [2.0.4](/php/docs/reference/cloud-security-center/2.0.4/V2.CreateFindingRequest)\n- [1.32.0](/php/docs/reference/cloud-security-center/1.32.0/V2.CreateFindingRequest)\n- [1.31.0](/php/docs/reference/cloud-security-center/1.31.0/V2.CreateFindingRequest)\n- [1.30.0](/php/docs/reference/cloud-security-center/1.30.0/V2.CreateFindingRequest)\n- [1.29.0](/php/docs/reference/cloud-security-center/1.29.0/V2.CreateFindingRequest)\n- [1.28.2](/php/docs/reference/cloud-security-center/1.28.2/V2.CreateFindingRequest)\n- [1.21.0](/php/docs/reference/cloud-security-center/1.21.0/V2.CreateFindingRequest)\n- [1.20.2](/php/docs/reference/cloud-security-center/1.20.2/V2.CreateFindingRequest)\n- [1.19.1](/php/docs/reference/cloud-security-center/1.19.1/V2.CreateFindingRequest)\n- [1.18.0](/php/docs/reference/cloud-security-center/1.18.0/V2.CreateFindingRequest)\n- [1.17.0](/php/docs/reference/cloud-security-center/1.17.0/V2.CreateFindingRequest)\n- [1.16.0](/php/docs/reference/cloud-security-center/1.16.0/V2.CreateFindingRequest)\n- [1.15.1](/php/docs/reference/cloud-security-center/1.15.1/V2.CreateFindingRequest)\n- [1.14.2](/php/docs/reference/cloud-security-center/1.14.2/V2.CreateFindingRequest)\n- [1.13.1](/php/docs/reference/cloud-security-center/1.13.1/V2.CreateFindingRequest) \nReference documentation and code samples for the Google Cloud Security Command Center V2 Client class CreateFindingRequest.\n\nRequest message for creating a finding.\n\nGenerated from protobuf message `google.cloud.securitycenter.v2.CreateFindingRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ SecurityCenter \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getParent\n\nRequired. Resource name of the new finding's parent. The following list\nshows some examples of the format:\n+\n`organizations/[organization_id]/sources/[source_id]`\n+\n`organizations/[organization_id]/sources/[source_id]/locations/[location_id]`\n\n### setParent\n\nRequired. Resource name of the new finding's parent. The following list\nshows some examples of the format:\n+\n`organizations/[organization_id]/sources/[source_id]`\n+\n`organizations/[organization_id]/sources/[source_id]/locations/[location_id]`\n\n### getFindingId\n\nRequired. Unique identifier provided by the client within the parent scope.\n\nIt must be alphanumeric and less than or equal to 32 characters and\ngreater than 0 characters in length.\n\n### setFindingId\n\nRequired. Unique identifier provided by the client within the parent scope.\n\nIt must be alphanumeric and less than or equal to 32 characters and\ngreater than 0 characters in length.\n\n### getFinding\n\nRequired. The Finding being created. The name and security_marks will be\nignored as they are both output only fields on this resource.\n\n### hasFinding\n\n### clearFinding\n\n### setFinding\n\nRequired. The Finding being created. The name and security_marks will be\nignored as they are both output only fields on this resource.\n\n### static::build"]]