1

我的 DLP 仪表板上有一个处于就绪状态的存储信息类型。它的名字是Federal_Income_Tax

使用https://cloud.google.com/dlp/docs/concepts-infotypes上的 python 示例,我看到以下内容:

info_types = [{"name": info_type} for info_type in info_types]

我已将其更改为查找我存储的信息类型

info_types_to_locate = [{"name": "Federal_Income_Tax"}]

我还提供了我的 google_application_credentials 和一个活动项目 ID。

调用时返回400 Invalid built-in info typename Federal_Income_Tax

表示我希望使用存储的信息类型而不是内置信息类型的语法是什么?

4

1 回答 1

1

确保将要使用的存储信息类型添加到customInfoTypes数组中。请参阅文档:https ://cloud.google.com/dlp/docs/creating-stored-infotypes#scan_content_using_stored_custom_dictionary_detectors

inspectConfig.infoTypes仅适用于内置信息类型。

于 2020-12-05T22:37:11.973 回答