Discovery target that looks for credentials and secrets stored in cloud resource metadata and reports them as vulnerabilities to Security Command Center. Only one target of this type is allowed.
Vertex AI dataset target for Discovery. The first target to match a dataset will be the one applied. Note that discovery for Vertex AI can incur Cloud Storage Class B operation charges for storage.objects.get operations and retrieval fees. For more information, seeCloud Storage pricing. Note that discovery for Vertex AI dataset will not be able to scan images unless DiscoveryConfig.processing_location.image_fallback_location has multi_region_processing or global_processing configured.
getBigQueryTarget
BigQuery target for Discovery. The first target to match a table will be
the one applied.
Discovery target that looks for credentials and secrets stored in cloud
resource metadata and reports them as vulnerabilities to Security Command
Center. Only one target of this type is allowed.
Discovery target that looks for credentials and secrets stored in cloud
resource metadata and reports them as vulnerabilities to Security Command
Center. Only one target of this type is allowed.
Vertex AI dataset target for Discovery. The first target to match a
dataset will be the one applied. Note that discovery for Vertex AI can
incur Cloud Storage Class B operation charges for storage.objects.get
operations and retrieval fees. For more information, seeCloud Storage
pricing.
Note that discovery for Vertex AI dataset will not be able to scan images
unless DiscoveryConfig.processing_location.image_fallback_location has
multi_region_processing or global_processing configured.
Vertex AI dataset target for Discovery. The first target to match a
dataset will be the one applied. Note that discovery for Vertex AI can
incur Cloud Storage Class B operation charges for storage.objects.get
operations and retrieval fees. For more information, seeCloud Storage
pricing.
Note that discovery for Vertex AI dataset will not be able to scan images
unless DiscoveryConfig.processing_location.image_fallback_location has
multi_region_processing or global_processing configured.
[[["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,["# Data Loss Prevention V2 Client - Class DiscoveryTarget (2.6.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.6.1 (latest)](/php/docs/reference/cloud-dlp/latest/V2.DiscoveryTarget)\n- [2.6.0](/php/docs/reference/cloud-dlp/2.6.0/V2.DiscoveryTarget)\n- [2.4.1](/php/docs/reference/cloud-dlp/2.4.1/V2.DiscoveryTarget)\n- [2.3.0](/php/docs/reference/cloud-dlp/2.3.0/V2.DiscoveryTarget)\n- [2.2.3](/php/docs/reference/cloud-dlp/2.2.3/V2.DiscoveryTarget)\n- [2.1.0](/php/docs/reference/cloud-dlp/2.1.0/V2.DiscoveryTarget)\n- [2.0.0](/php/docs/reference/cloud-dlp/2.0.0/V2.DiscoveryTarget)\n- [1.19.0](/php/docs/reference/cloud-dlp/1.19.0/V2.DiscoveryTarget)\n- [1.18.0](/php/docs/reference/cloud-dlp/1.18.0/V2.DiscoveryTarget)\n- [1.17.0](/php/docs/reference/cloud-dlp/1.17.0/V2.DiscoveryTarget)\n- [1.16.0](/php/docs/reference/cloud-dlp/1.16.0/V2.DiscoveryTarget)\n- [1.15.1](/php/docs/reference/cloud-dlp/1.15.1/V2.DiscoveryTarget)\n- [1.14.0](/php/docs/reference/cloud-dlp/1.14.0/V2.DiscoveryTarget)\n- [1.13.2](/php/docs/reference/cloud-dlp/1.13.2/V2.DiscoveryTarget)\n- [1.12.0](/php/docs/reference/cloud-dlp/1.12.0/V2.DiscoveryTarget)\n- [1.11.0](/php/docs/reference/cloud-dlp/1.11.0/V2.DiscoveryTarget)\n- [1.10.2](/php/docs/reference/cloud-dlp/1.10.2/V2.DiscoveryTarget)\n- [1.9.0](/php/docs/reference/cloud-dlp/1.9.0/V2.DiscoveryTarget)\n- [1.8.6](/php/docs/reference/cloud-dlp/1.8.6/V2.DiscoveryTarget) \nReference documentation and code samples for the Data Loss Prevention V2 Client class DiscoveryTarget.\n\nTarget used to match against for Discovery.\n\nGenerated from protobuf message `google.privacy.dlp.v2.DiscoveryTarget`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Dlp \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getBigQueryTarget\n\nBigQuery target for Discovery. The first target to match a table will be\nthe one applied.\n\n### hasBigQueryTarget\n\n### setBigQueryTarget\n\nBigQuery target for Discovery. The first target to match a table will be\nthe one applied.\n\n### getCloudSqlTarget\n\nCloud SQL target for Discovery. The first target to match a table will be\nthe one applied.\n\n### hasCloudSqlTarget\n\n### setCloudSqlTarget\n\nCloud SQL target for Discovery. The first target to match a table will be\nthe one applied.\n\n### getSecretsTarget\n\nDiscovery target that looks for credentials and secrets stored in cloud\nresource metadata and reports them as vulnerabilities to Security Command\nCenter. Only one target of this type is allowed.\n\n### hasSecretsTarget\n\n### setSecretsTarget\n\nDiscovery target that looks for credentials and secrets stored in cloud\nresource metadata and reports them as vulnerabilities to Security Command\nCenter. Only one target of this type is allowed.\n\n### getCloudStorageTarget\n\nCloud Storage target for Discovery. The first target to match a table\nwill be the one applied.\n\n### hasCloudStorageTarget\n\n### setCloudStorageTarget\n\nCloud Storage target for Discovery. The first target to match a table\nwill be the one applied.\n\n### getOtherCloudTarget\n\nOther clouds target for discovery. The first target to match a resource\nwill be the one applied.\n\n### hasOtherCloudTarget\n\n### setOtherCloudTarget\n\nOther clouds target for discovery. The first target to match a resource\nwill be the one applied.\n\n### getVertexDatasetTarget\n\nVertex AI dataset target for Discovery. The first target to match a\ndataset will be the one applied. Note that discovery for Vertex AI can\nincur Cloud Storage Class B operation charges for storage.objects.get\noperations and retrieval fees. For more information, see [Cloud Storage\npricing](https://cloud.google.com/storage/pricing#price-tables).\n\nNote that discovery for Vertex AI dataset will not be able to scan images\nunless DiscoveryConfig.processing_location.image_fallback_location has\nmulti_region_processing or global_processing configured.\n\n### hasVertexDatasetTarget\n\n### setVertexDatasetTarget\n\nVertex AI dataset target for Discovery. The first target to match a\ndataset will be the one applied. Note that discovery for Vertex AI can\nincur Cloud Storage Class B operation charges for storage.objects.get\noperations and retrieval fees. For more information, see [Cloud Storage\npricing](https://cloud.google.com/storage/pricing#price-tables).\n\nNote that discovery for Vertex AI dataset will not be able to scan images\nunless DiscoveryConfig.processing_location.image_fallback_location has\nmulti_region_processing or global_processing configured.\n\n### getTarget"]]