Cloud Data Loss Prevention (Cloud DLP) fait désormais partie de la protection des données sensibles. Le nom de l'API reste le même: API Cloud Data Loss Prevention (DLP). Pour en savoir plus sur les services qui constituent Sensitive Data Protection, consultez la section Présentation de Sensitive Data Protection.
Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Créer un modèle d'inspection Sensitive Data Protection
Ce guide de démarrage rapide vous explique comment créer et utiliser un modèle d'inspection Sensitive Data Protection dans la console Google Cloud . Les modèles d'inspection Sensitive Data Protection vous permettent de créer et de conserver des informations de configuration dans Sensitive Data Protection.
Pour suivre ce guide de démarrage rapide, vous devez disposer de données que vous pouvez analyser dans Cloud Storage, BigQuery ou Firestore en mode Datastore (Datastore).
Pour obtenir des instructions détaillées sur cette tâche directement dans la console Google Cloud , cliquez sur Visite guidée :
Sign in to your Google Cloud account. If you're new to
Google Cloud,
create an account to evaluate how our products perform in
real-world scenarios. New customers also get $300 in free credits to
run, test, and deploy workloads.
In the Google Cloud console, on the project selector page,
select or create a Google Cloud project.
Sur la page Créer un modèle, définissez les options suivantes :
Pour le type de modèle, utilisez le paramètre par défaut Inspecter (rechercher les données sensibles).
Dans le champ ID du modèle, saisissez quickstart-template.
Dans le champ Nom à afficher, saisissez Quickstart template.
Laissez le champ Description vide.
Pour l'emplacement de la ressource, utilisez le paramètre par défaut Mondial, qui inclut toutes les régions.
Cliquez sur Continuer.
Configurer la détection
Vous allez maintenant configurer le modèle pour qu'il détecte un infoType tel que les numéros de carte de crédit.
Dans la section Configurer la détection de la page Créer un modèle, procédez comme suit :
Dans la section InfoTypes, cliquez sur Gérer les infoTypes, sélectionnez les infoTypes que vous souhaitez analyser, puis cliquez sur OK.
Dans la section Seuil de confiance, sélectionnez Possible dans la liste Probabilité.
La valeur par défaut Possible est suffisante dans la plupart des cas. Si vous obtenez régulièrement des correspondances trop larges lorsque vous utilisez ce modèle, déplacez le curseur vers le haut. Si vous obtenez trop peu de correspondances, déplacez le curseur vers le bas.
Pour créer le modèle, cliquez sur Créer.
La page des informations récapitulatives sur le modèle apparaît. Pour revenir à la page principale de Sensitive Data Protection, cliquez sur arrow_backRetour à la liste des modèles.
Utiliser le modèle
Les étapes suivantes décrivent comment configurer le modèle pour l'utiliser dans une analyse :
Dans la console Google Cloud , accédez à la page Créer un job ou un déclencheur de jobs.
Suivez les instructions pour créer une tâche d'inspection ou un déclencheur de tâche (une tâche récurrente). Lorsque vous êtes invité à configurer la détection, sélectionnez le modèle que vous avez créé.
Effectuer un nettoyage
Pour éviter que les ressources utilisées dans cette démonstration soient facturées sur votre compte Google Cloud , procédez comme suit :
Supprimer le projet
Le moyen le plus simple d'empêcher la facturation est de supprimer le projet que vous avez créé pour ce tutoriel.
Pour supprimer le projet :
In the Google Cloud console, go to the Manage resources page.
Sélectionnez le projet contenant le modèle d'inspection que vous souhaitez supprimer.
Cliquez sur l'onglet Modèles. La console Google Cloud affiche la liste de tous les modèles du projet en cours.
Dans la colonne Actions du modèle que vous souhaitez supprimer, cliquez sur le menu d'actions du déclencheur more_vert, sur Supprimer, puis sur Confirmer.
Découvrez comment la protection des données sensibles fait correspondre votre contenu à l'aide de la valeur de probabilité.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/09/04 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Difficile à comprendre","hardToUnderstand","thumb-down"],["Informations ou exemple de code incorrects","incorrectInformationOrSampleCode","thumb-down"],["Il n'y a pas l'information/les exemples dont j'ai besoin","missingTheInformationSamplesINeed","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/09/04 (UTC)."],[],[],null,["# Quickstart: Create a Sensitive Data Protection inspection template\n\nCreate a Sensitive Data Protection inspection template\n======================================================\n\nThis quickstart shows you how to create and use a Sensitive Data Protection inspection\ntemplate in the Google Cloud console. [Sensitive Data Protection inspection templates](/sensitive-data-protection/docs/concepts-templates)\nlet you create and persist configuration information in Sensitive Data Protection.\n\nTo complete this quickstart, you need to have data that you can scan in\nCloud Storage, BigQuery, or Firestore in Datastore mode (Datastore).\n\n*** ** * ** ***\n\nTo follow step-by-step guidance for this task directly in the\nGoogle Cloud console, click **Guide me**:\n\n[Guide me](https://console.cloud.google.com/freetrial?redirectPath=/?walkthrough_id=dlp--quickstart-create-template-inspect)\n\n*** ** * ** ***\n\nBefore you begin\n----------------\n\nSign in to your Google Cloud account. If you're new to Google Cloud, [create an account](https://console.cloud.google.com/freetrial) to evaluate how our products perform in real-world scenarios. New customers also get $300 in free credits to run, test, and deploy workloads.\n\nIn the Google Cloud console, on the project selector page,\nselect or create a Google Cloud project.\n| **Note**: If you don't plan to keep the resources that you create in this procedure, create a project instead of selecting an existing project. After you finish these steps, you can delete the project, removing all resources associated with the project.\n\n[Go to project selector](https://console.cloud.google.com/projectselector2/home/dashboard)\n\n\n[Verify that billing is enabled for your Google Cloud project](/billing/docs/how-to/verify-billing-enabled#confirm_billing_is_enabled_on_a_project).\n\n\nEnable the Sensitive Data Protection API.\n\n\n[Enable the API](https://console.cloud.google.com/flows/enableapi?apiid=dlp.googleapis.com) \nIn the Google Cloud console, on the project selector page,\nselect or create a Google Cloud project.\n| **Note**: If you don't plan to keep the resources that you create in this procedure, create a project instead of selecting an existing project. After you finish these steps, you can delete the project, removing all resources associated with the project.\n\n[Go to project selector](https://console.cloud.google.com/projectselector2/home/dashboard)\n\n\n[Verify that billing is enabled for your Google Cloud project](/billing/docs/how-to/verify-billing-enabled#confirm_billing_is_enabled_on_a_project).\n\n\nEnable the Sensitive Data Protection API.\n\n\n[Enable the API](https://console.cloud.google.com/flows/enableapi?apiid=dlp.googleapis.com)\n1.\n\n\n Enable the Sensitive Data Protection API.\n\n\n [Enable the API](https://console.cloud.google.com/flows/enableapi?apiid=dlp.googleapis.com)\n\nCreate a template\n-----------------\n\nIn the following sections, you configure and create an inspection template.\n\n### Define template\n\n1. In the Sensitive Data Protection section of the Google Cloud console, go\n to the **Create template** page.\n\n [Go to Create template](https://console.cloud.google.com/security/sensitive-data-protection/create/template;source=7)\n2. On the **Create template** page, define the following options:\n\n - For **Template type** , use the default setting **Inspect (find sensitive\n data)**.\n\n - For **Template ID** , enter `quickstart-template`.\n\n - For **Display name** , enter `Quickstart template`.\n\n - For **Description**, leave the field empty.\n\n - For **Resource location** , use the default setting **Global (any\n region)**.\n\n3. Click **Continue**.\n\n### Configure detection\n\nYou now configure the template to detect for an infoType such as credit card numbers.\n\n1. In the **Configure detection** section of the **Create template** page, do\n the following:\n\n - In the **InfoTypes** section, click **Manage infoTypes** , select the\n infoTypes that you want to scan for, and then click **Done**.\n\n - In the **Confidence threshold** section, select **Possible**\n from the **Likelihood** list.\n\n The default value **Possible** is sufficient for most purposes. If\n you routinely get matches that are too broad when you use this\n template, move the slider up. If you get too few matches, move the\n slider down.\n2. To create the template, click **Create**.\n\n The template's summary information page appears. To return to the main\n Sensitive Data Protection page, click arrow_back\n **Up to Template list**.\n\nUse the template\n----------------\n\nThe following steps describe how to configure the template for use in a scan:\n\n1. In the Google Cloud console, go to the **Create job or job trigger**\n page.\n\n [Go to Create job or job trigger](https://console.cloud.google.com/security/sensitive-data-protection/create/job;source=7)\n2. Follow the prompts to create an inspection job or job trigger (a recurring\n job). When you are prompted to configure the detection, select the template\n that you created.\n\nClean up\n--------\n\n\nTo avoid incurring charges to your Google Cloud account for\nthe resources used on this page, follow these steps.\n\n### Delete the project\n\n\nThe easiest way to eliminate billing is to delete the project that you\ncreated for the tutorial.\n\nTo delete the project:\n\n| **Caution** : Deleting a project has the following effects:\n|\n| - **Everything in the project is deleted.** If you used an existing project for the tasks in this document, when you delete it, you also delete any other work you've done in the project.\n| - **Custom project IDs are lost.** When you created this project, you might have created a custom project ID that you want to use in the future. To preserve the URLs that use the project ID, such as an `appspot.com` URL, delete selected resources inside the project instead of deleting the whole project.\n|\n|\n| If you plan to explore multiple architectures, tutorials, or quickstarts, reusing projects\n| can help you avoid exceeding project quota limits.\n1. In the Google Cloud console, go to the **Manage resources** page.\n\n [Go to Manage resources](https://console.cloud.google.com/iam-admin/projects)\n2. In the project list, select the project that you want to delete, and then click **Delete**.\n3. In the dialog, type the project ID, and then click **Shut down** to delete the project.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n### Delete the template\n\nThere are no costs associated with creating and storing templates. However, if\nyou want to delete a template, follow these steps:\n\n1. In the Google Cloud console, go to the **Configuration** page of\n Sensitive Data Protection.\n\n [Go to Configuration](https://console.cloud.google.com/security/sensitive-data-protection/landing/configuration;source=7)\n2. Select the project that contains the inspection template that you want to\n delete.\n\n3. Click the **Templates** tab. The\n Google Cloud console displays a list of all templates for the current\n project.\n\n4. In the **Actions** column for the template you want to delete, click the\n trigger actions menu (more_vert),\n click **Delete** , and then click **Confirm**.\n\nWhat's next\n-----------\n\n- Learn more about [creating and scheduling Sensitive Data Protection inspection\n jobs](/sensitive-data-protection/docs/creating-job-triggers).\n\n- Learn more about [creating Sensitive Data Protection inspection templates](/sensitive-data-protection/docs/creating-templates-inspect).\n\n- Learn more about the [infoType detector reference](/sensitive-data-protection/docs/infotypes-reference).\n\n- Learn more about how Sensitive Data Protection matches your content using the\n [likelihood value](/sensitive-data-protection/docs/likelihood)."]]