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.
Planifier une analyse d'inspection dans le cadre de la protection des données sensibles
Découvrez comment créer un déclencheur de job à l'aide de Sensitive Data Protection dans la consoleGoogle Cloud .
Les déclencheurs de tâche sont des événements qui automatisent l'exécution de tâches de protection des données sensibles pour analyser les dépôts de stockage Google Cloud (Cloud Storage, BigQuery et 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.
Dans les sections suivantes, vous allez configurer et créer un déclencheur de tâche pour un ensemble de données public BigQuery contenant les adresses des stations de vélos en libre-service dans une ville.
Lorsque ce déclencheur de job s'exécute, Sensitive Data Protection analyse environ 700 octets de données. Vous pouvez inspecter gratuitement jusqu'à 1 Go de données par mois. Pour en savoir plus sur les tarifs, consultez Tarifs des jobs d'inspection de stockage.
Choisir les données d'entrée
Dans la section "Protection des données sensibles" de la console Google Cloud , accédez à la page Créer une tâche ou un déclencheur de tâche.
Dans la section Nom, définissez les options suivantes :
Dans le champ ID de la tâche, saisissez quickstart-job-trigger.
Laissez le paramètre Emplacement de la ressource défini sur Mondial (n'importe quelle région).
Dans la liste Type de stockage, sélectionnez BigQuery, puis définissez les options suivantes :
Dans le champ ID du projet, saisissez bigquery-public-data.
Dans le champ ID de l'ensemble de données, saisissez austin_bikeshare.
Dans le champ ID de la table, saisissez bikeshare_stations.
Dans le champ Nombre maximal de lignes, saisissez 10.
Cliquez sur Continuer.
Configurer les paramètres de détection
Pour configurer la détection :
Dans la section InfoTypes, cliquez sur Gérer les infoTypes.
Dans le volet InfoTypes, sélectionnez STREET_ADDRESS.
Pour fermer le volet InfoTypes, cliquez sur OK.
Dans la section Seuil de confiance, sélectionnez Possible dans la liste Probabilité.
La valeur Possible est suffisante dans la plupart des cas. Si vous obtenez régulièrement des correspondances trop larges lorsque vous utilisez ce déclencheur de job, sélectionnez une valeur de seuil de confiance plus élevée. Si vous obtenez trop peu de correspondances, sélectionnez une valeur de seuil de confiance inférieure.
Cliquez sur Continuer.
Ajouter des actions après analyse
Cliquez sur le bouton Avertir par e-mail.
Cliquez sur Continuer.
Définir un planning
Dans la liste Période ou programmation, sélectionnez Créer un déclencheur pour exécuter le job selon une programmation régulière.
Dans la liste Périodicité des analyses du déclencheur, sélectionnez Hebdomadaire.
Cliquez sur Continuer.
Examiner et créer le déclencheur de tâche
Après avoir examiné le résumé au format JSON des paramètres de tâche que vous venez de spécifier, procédez comme suit :
Cliquez sur Créer.
Dans la boîte de dialogue Confirmer la création de la tâche ou du déclencheur de tâche, cliquez sur Confirmer la création.
Attendez une minute que Sensitive Data Protection crée le déclencheur de job.
Exécuter le déclencheur de tâche et afficher les résultats
Pour déclencher une tâche immédiatement :
Sur la page Détails du déclencheur, cliquez sur Exécuter maintenant.
Cette opération peut prendre un certain temps.
Une fois la tâche que vous avez créée exécutée, procédez comme suit :
Dans la section Jobs déclenchés, sélectionnez l'ID du job déclenché dans la colonne ID du job.
Sur la page Informations sur la tâche, consultez les résultats de la tâche.
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.
Si nécessaire, sélectionnez le projet dans lequel vous avez créé un déclencheur de tâche dans la barre d'outils de la consoleGoogle Cloud .
Cliquez sur l'onglet Inspection, puis sur l'onglet Déclencheurs de tâches. La consoleGoogle Cloud affiche la liste de tous les déclencheurs de tâche du projet en cours.
Dans la colonne Actions du déclencheur de tâche que vous souhaitez supprimer, cliquez sur le menu d'actions du déclencheur more_vert, puis sur Supprimer, puis sur Confirmer.
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: Schedule a Sensitive Data Protection inspection scan\n\nSchedule a Sensitive Data Protection inspection scan\n====================================================\n\nLearn how to create a new job trigger using Sensitive Data Protection in the\nGoogle Cloud console.\n\nJob triggers are events that automate running Sensitive Data Protection jobs to\nscan Google Cloud storage repositories (Cloud Storage, BigQuery, and\nFirestore 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-job-trigger)\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 job trigger\n--------------------\n\nIn the following sections, you configure and create a job trigger for a\n[BigQuery public dataset](/bigquery/public-data) that contains\nthe street addresses of bike share stations in a city.\n\nWhen this job trigger runs, Sensitive Data Protection scans around 700 bytes of\ndata. You can inspect up to 1 GB of storage data per month free of charge. For\nmore information about pricing, see [Storage inspection job\npricing](/sensitive-data-protection/pricing#storage-pricing).\n\n### Choose input data\n\n1. In the Sensitive Data Protection section of the Google Cloud console, go\n to the **Create job or job trigger** page.\n\n [Go to Create job or job trigger](https://console.cloud.google.com/security/sensitive-data-protection/create/job;source=7)\n2. To configure input data, do the following:\n\n 1. In the **Name** section, define the following options:\n\n - For **Job ID** , enter `quickstart-job-trigger`.\n\n - Keep **Resource location** set to **Global (any region)**.\n\n 2. In the **Storage type** list, select **BigQuery**, and then\n define the following options:\n\n - For **Project ID** , enter `bigquery-public-data`.\n\n - For **Dataset ID** , enter `austin_bikeshare`.\n\n - For **Table ID** , enter `bikeshare_stations`.\n\n 3. In the **Maximum number of rows** field, enter `10`.\n\n3. Click **Continue**.\n\n### Configure detection parameters\n\n1. To configure detection, do the following:\n\n 1. In the **InfoTypes** section, click **Manage infoTypes**.\n\n 2. In the **InfoTypes** pane, select **STREET_ADDRESS**.\n\n 3. To close the **infoTypes** pane, click **Done**.\n\n 4. In the **Confidence threshold** section, select **Possible** from the\n **Likelihood** list.\n\n The value **Possible** is sufficient for most purposes. If you routinely\n get matches that are too broad when you use this job trigger, select a\n higher confidence threshold value. If you get too few matches, select a\n lower confidence threshold value.\n2. Click **Continue**.\n\n### Add post-scan actions\n\n1. Click the **Notify by email** toggle.\n\n2. Click **Continue**.\n\n### Set a schedule\n\n1. In the **Time span or schedule** list, select **Create a trigger to run the\n job on a periodic schedule**.\n\n | **Important:** Selecting **Create a trigger to run the job on a periodic\n | schedule** is what makes a job into a job trigger. If you don't specify a schedule, you create a single job that runs only once.\n2. In the **Trigger scan repeats** list, select **Weekly**.\n\n3. Click **Continue**.\n\n### Review and create the job trigger\n\nAfter you review the JSON-formatted summary of the job settings you just\nspecified, do the following:\n\n1. Click **Create**.\n\n2. In the **Confirm job or job trigger create** dialog, click\n **Confirm create**.\n\n Allow a minute for Sensitive Data Protection to create the job trigger.\n\nRun the job trigger and view results\n------------------------------------\n\nTo trigger a job immediately, do the following:\n\n1. On the **Trigger details** page, click **Run now**.\n\n This operation might take some time to complete.\n2. After the job that you created runs once, do the following:\n\n 1. In the **Triggered jobs** section, select the job ID of the triggered job\n in the **Job ID** column.\n\n 2. On the **Job details** page, view the job results.\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 job trigger\n\nIf you created the job trigger in an existing project and you no longer need\nthe job trigger, follow these steps:\n\n1. In the Google Cloud console, go to the Sensitive Data Protection page.\n\n [Go to Sensitive Data Protection](https://console.cloud.google.com/security/sensitive-data-protection;source=7)\n2. If necessary, select the project in which you created a job trigger from the\n Google Cloud console toolbar.\n\n3. Click the **Inspection** tab, and then click the **Job triggers** tab. The\n Google Cloud console displays a list of all the job triggers for the\n current project.\n\n4. In the **Actions** column for the job trigger 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\n templates](/sensitive-data-protection/docs/creating-templates-inspect).\n\n- To add actions you want Sensitive Data Protection to take after a trigger job\n completes, see [Add actions](/sensitive-data-protection/docs/creating-job-triggers#add-actions).\n\n- To specify the types of sensitive data you want to scan for, see [Configure\n detection](/sensitive-data-protection/docs/creating-job-triggers#configure-detection).\n\n- To create a BigQuery dataset in a project, see [Creating\n datasets](/bigquery/docs/datasets)."]]